IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

authentic view capturing data with 'context' Options · View
msordo
Posted: Monday, May 20, 2013 7:47:39 PM
Rank: Member

Joined: 3/18/2013
Posts: 20
Hi,
I need to create an authentic form for creating rules. My schema is a grammar. Right now I'm starting with the basics and I need to create a form that allows me to create "variable assignments" of the form:

Identifier = Identifier | Value

<xs:element name="Assignment">
<xs:complexType>
<xs:sequence>
<xs:element ref="Identifier"/>
<xs:choice>
<xs:element ref="Value"/>
<xs:element ref="Identifier"/>
<xs:choice>
<xs:sequence>
<xs:complexType>
</xs:complexType>
</xs:element>

In my form I have:
Assignment: Identifier> (content) <Identifier = (the = is just for display purposes) >Identifier (content) <Identifier Value> (content) <Value


The Identifier>... <Value are the tags that I'm inserting in my form

What I need is, in authentic, when I click to insert an assigment, I get the first identifier, but then the second displays whatever I'm typing in the first one, and I don't get the option to choose between Identifier or value as to the item I want to assing to the first identifier.

Any suggestions? This is pretty basic I believe, but will help me getting started, since I need to navigate a grammar and be able to display next elements based on previous/current selected ones.
vlad
Posted: Monday, May 20, 2013 8:13:16 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
Attach ALL your files here for better understanding.
msordo
Posted: Tuesday, May 21, 2013 5:30:29 PM
Rank: Member

Joined: 3/18/2013
Posts: 20
Hi Vlad,
Thanks for your reply. Unfortunately, I'm not allowed to share the files. Any other suggestion(s)?
msordo
vlad
Posted: Tuesday, May 21, 2013 5:55:11 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
Create test files which you can share, but don't expect people to guess for you. Your explanation is very unclear.
msordo
Posted: Tuesday, May 21, 2013 6:20:43 PM
Rank: Member

Joined: 3/18/2013
Posts: 20
Thanks! I will create files and post.

File Attachment(s):
AssigmentExample.xml (3kb) downloaded 428 time(s).
AssigmentExample.xsd (62kb) downloaded 392 time(s).
AssignmentExample.sps (69kb) downloaded 433 time(s).
AssignmentExample.xslt (64kb) downloaded 418 time(s).


msordo
Posted: Tuesday, May 21, 2013 7:46:12 PM
Rank: Member

Joined: 3/18/2013
Posts: 20
Hi Vlad,
Here's the example.The template is for display, but I need to change it to capture information. I don't know how to replace the conditions in the template so I can navigate the schema and add things without getting an endless list of options (as I get right now if I click Autenthic. And that is not displaying ALL the options, because I have conditions inserted in the template and as far as I can tell they do not work in authentic)

Anyway, I need to get started and be able to create a template so assigments and reads of the form (see attached) can be created by a user, so they can navigate the underlying schema (grammar) without knowing about it. I'm not sure if that's possible.

Any help you can give so I can get started will be very much appreciated.

Thanks so much in advance,
Margarita

Files got attached to previous message!
vlad
Posted: Tuesday, May 21, 2013 8:29:32 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
Ok, I see your files now, but still no idea what you are trying to do. I'm guessing... again...: if you want to get rid of all those "add" suggestions, click in Design each template, for example, Is, and set Property/Authentic/show "add Name" to no.

This is my last attempt: EXPLAIN/ILLUSTRATE really your problem. Getting tired of guessing...
msordo
Posted: Wednesday, May 22, 2013 3:02:20 PM
Rank: Member

Joined: 3/18/2013
Posts: 20
I need to create a form in authentic so users can create data statements like an assignment or a read. The underlying schema is pretty much a grammar that validates the statements. So, for example, with this authentic form (TBD) I should be able to create an assignment in it's simplest form (Identifier, Value), or more complex ones like (Identifier, Identifier Where Apply Condition (in the attached example, this would be 5th assignment).

So, not fully knowing the extent of the functionality of Authentic, ideally I'd like to right click to get an "addAssignment", enter the Identifier, right click again and get prompted with the options of either entering a value (simplest valid statement according to the grammar), or a Where (meaning I'd like to add a condition to the statement). If I select the Where "node" the next options would be an Identifier and then Apply. At this point I can just add a single condition (e.g. EmpID EQ 123) or add an AND node for more than one condition.

Pretty much I'm navigating the grammar and at any given point I'd like to get offered the available options ahead based on the current node. Is this possible at all?

Hope this is clearer.

Thanks for your help.
vlad
Posted: Wednesday, May 22, 2013 5:40:45 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
You have two ways how to achieve this.

1. With built-in means by using Radio buttons for selection of the kind of entry you want in combination with the add links which are auto-created for you already now - by radio buttons you can ask user first what he wants and once selected and new element is created with add link - the radio buttons can disappear. No need for context menus with right-mouse click - everything is visible to your user.

2. If you want to completely customize user interface up to your taste, you can use Authentic Scripting

Unfortunately it is simply impossible to explain everything in this forum. You can either spend some time learning samples (StyleVision comes with a lot of very simple and few complex samples) and reading documentation, or you say you want to get a more or less ready-to-use SPS - in this case proceed with Altova Product Consulting - these guys know a whole lot and are eager to implement any design for you.
msordo
Posted: Thursday, May 23, 2013 6:38:09 PM
Rank: Member

Joined: 3/18/2013
Posts: 20
Thanks for you help!
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.