boogray - Thursday, December 10, 2009 9:09 PM:
When I add an Item in a form, the user can select an item. But the item textbox just display the id of the item. I have seen the user item can display the Firstname+lastName in the item textbox. How can I make my own item textbox display other property in the textbox?
Thx
tstickel - Friday, December 11, 2009 8:59 AM:
What you must do is to edit the Itemtype definition of your item and set a "Keyed Name Order" value for your Firstname and Lastname properties. The "Keyed Name Order" takes integer values, so you could set the "Keyed Name Order" for Firstname=1 and Lastname=2. That would cause an Innovator textbox to display Firstname+Lastname in the textbox, instead of the Id. You would get the same result setting the "Keyed Name Order" for Firstname=10 and Lastanme=20. The absolute values do not matter; the property that has the lowest "Keyed Name Order" will appear first, and then the property with the next lowest value, etc.. But if you do not set "Keyed Name Order" for any properties for an itemtype, Innovator will just show the id.
Gorinich - Thursday, February 16, 2012 1:56 AM:
One more question. I have got 2 item types: Formator Tools(name: String,...), Vulcanization Parameters(formator: Item,...). For Formator Tools item type 'name' marked as keyed_name and for Vulcanization Parameters item type 'formator' marked as keyed_name. When I create 'vulcanization parameters' item and chose formator in textbox I see name, not id.
When I add Vulcanization Parameters item in Part Vulcanization Parameters(vulcanization_parameters: Item) item type as property, in textbox of this property i see id for Formator Tools item, but name needed.
How to display name instead of id in third item type?
Rahul. - Friday, February 10, 2012 5:49 AM:
Hi tstickel,
I use a "comment" column in Project Grid and use "Text" as its datatype. this textbox do all its functionalities means it saves message and show the message but there is one thing that in text box there are three buttons in which only one button has name "Reset" and rest of them are blank. I want to name them as their funtionality but don't know where to go and name these button.
Likewise when project is locked and i want see my comment then a new window open which has message and button ( without any label on it).
So . basically i want to know how to name these button.If you have any idea about this then plz share it.
Thanks
Rahul
tstickel - Tuesday, February 14, 2012 10:20 AM:
In 9.2.0 SP3 on my development platform the textbox window shows the 3 buttons with the correct labels: Save, Reset and Close. So the first thing I suggest is that you look at the code in ..InnovatorClientscripts extDialog.html. This is the web page that handles the textbox window and it should contain code like the following:
<input type="button" id="ok_btn" onclick="returnValue=ta1.value;window.close();" aras_ui_resource_key="textdialog.save_html_value" style="display:'none';">
<input type="reset" id="reset_btn" aras_ui_resource_key="textdialog.reset_html_value" style="display:'none';">
<input type="button" onclick="returnValue=undefined;window.close();" aras_ui_resource_key="textdialog.close_html_value">
The attributes labelled, aras_ui_resource_key, are used in setting the button labels. What appears to happen is that the javascript in textDialog.html indirectly calls ..InnovatorClientjavascriptPopulateDocsByLabels.js to parse out the label titles from the aras_ui_resource_key values.
So you might have inadvertently modified textDialog.html ???