Change Input Field View: Difference between revisions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
'Tips for developers working within the Sysgem Enterprise Manager (SEM) environment'. | 'Tips for developers working within the Sysgem Enterprise Manager (SEM) environment'. | ||
---- | |||
''Finding your way around the SEM development Interface'' | ''Finding your way around the SEM development Interface'' | ||
'''Dynamically Changing Fields in a SEM Input Form from the "Fields" script''' | |||
The purpose of the "Fields" script is to populate an input form before it is displayed, but not only can the text within a field be changed, but the characteristics of the field can also be changed. | The purpose of the "Fields" script is to populate an input form before it is displayed, but not only can the text within a field be changed, but the characteristics of the field can also be changed. | ||
| Line 16: | Line 19: | ||
'''Making a Field Read-Only''' | '''Making a Field Read-Only''' | ||
print "AA ! | print "AA ! \n"; # where "AA" is the field code of the required field | ||
'''Making a Field Read-Write''' | '''Making a Field Read-Write''' | ||
print "AA ~ | print "AA ~ \n"; # where "AA" is the field code of the required field | ||
| Line 41: | Line 44: | ||
'''Pre-Selecting Entries in a List Field''' | '''Pre-Selecting Entries in a List Field''' | ||
print "AA : 2nd entry | print "AA : 2nd entry,5th entry\n"; # where "AA" is the field code of the required field {on a List(multi-select) field} | ||
Latest revision as of 11:30, 23 July 2012
'Tips for developers working within the Sysgem Enterprise Manager (SEM) environment'.
Finding your way around the SEM development Interface
Dynamically Changing Fields in a SEM Input Form from the "Fields" script
The purpose of the "Fields" script is to populate an input form before it is displayed, but not only can the text within a field be changed, but the characteristics of the field can also be changed.
This section describes the possibilities for changing the input form from the Fields script before the form is displayed.
Adding Text into a Field
print "AA : text data\n"; # where "AA" is the field code of the required field
Making a Field Read-Only
print "AA ! \n"; # where "AA" is the field code of the required field
Making a Field Read-Write
print "AA ~ \n"; # where "AA" is the field code of the required field
Hiding a Field
print "AA - \n"; # where "AA" is the field code of the required field
Setting a List of Selectable Entries in a List Field
print "AA @ 1st entry\\2nd entry\\3rd entry\n"; # where "AA" is the field code of the required field
Adding Selectable Entries to an Existing Set in a List Field
print "AA + 4th entry\\5th entry\\6th entry\n"; # where "AA" is the field code of the required field
Pre-Selecting Entries in a List Field
print "AA : 2nd entry,5th entry\n"; # where "AA" is the field code of the required field {on a List(multi-select) field}
Making a Field an 'Optional' Field
Making a field an optional field puts a checkbox infront of the field which has to be selected to make the field active.
print "AA ? \n"; # where "AA" is the field code of the required field