Button Enable Field Command

34 views
Skip to first unread message

phillfri

unread,
Mar 20, 2014, 4:55:39 PM3/20/14
to sailfor...@googlegroups.com
I have a text field (PICID) on a form called "Matter".
The PICID text box is NOT checked as "Write Once - Disable after save".
PICID uses a Get Value From command to pull text from a Settings file field (EmployeeInfo).
When the Matter form opens, retrieves EmployeeInfo and PICID is grayed out/not accessible.
I assume this is a result of using the Get Value command?
But is this "protection" that is applied due to the Get Value command the same that is applied when one uses the "Write Once - Disable after save" option?

I really want to set PICID to "Write Once - Disable after Save".
But when I do that, and run Button commands (see below)
I seem to be getting inconsistent/unexplainable results
when I attempt use the Enable Field command to enable PICID.
Would this have something to do with the interaction between
the Enable Field command and the fact that the PICID is
being doubly protected because of (1) the Get Value command it uses
and (2) the "Write Once - Disable after save" option?

My Button on the Matter form has these commands in it.
[1] Save Entry: Matters
[2] Enable Field: Matters/PICID
[3] Go to List: Employees/Default Custom Menu
     In the Custom menu I have 3 commands set up for the "Show Form" (I deleted all other commands in all other custom menu options, except the rBack Action)
     [1] Save Entry: Employees
     [2] Save Entry: Matters
     [3] Return Back - No Check
.




Chris

unread,
Mar 21, 2014, 3:45:25 PM3/21/14
to sailfor...@googlegroups.com
Field Enable/Disable

A Field automatically get disabled when:
1) It has a Math Equation that is executed. (All of the values in the equation are valid)
2) When it's marked Write Once and you are viewing a saved entry and it has a valid value.
3) When a Get Value Connection Link is executed.

You can force it disabled with:
1) Button Command Disable
2) Button Command Force Value


My Button on the Matter form has these commands in it.
[1] Save Entry: Matters
Ok - Employees entry loaded from any Searches from Matters
[2] Enable Field: Matters/PICID
Not needed
[3] Go to List: Employees/Default Custom Menu
Context Switch to the list
All new versions for all the forms are loaded.

     In the Custom menu I have 3 commands set up for the "Show Form" (I deleted all other commands in all other custom menu options, except the rBack Action)
Show Form is another Context Switch
All new versions for all the forms are loaded.
Employees form is loaded and any Linked Forms are also loaded based on the entry selected.
     [1] Save Entry: Employees
Employee values saved.
Remote forms are searched and loaded
Any search and puts are saved to remote forms
     [2] Save Entry: Matters
This will cause Matters to search and load remote entries (Possibly the Employees) if you search to that from from matters.
I don't see why this is necessary
     [3] Return Back - No Check
Context Switch
Back to the list, any changes to Employees will show up in the list

Exit the list
Context Switch
Back to your Matters Form, reloading the record from the db and reloading the employees from the db due to the search links
PICD Disabled due to the Get Value


phillfri

unread,
Mar 21, 2014, 8:33:05 PM3/21/14
to sailfor...@googlegroups.com
Thanks for the explanation. Eventually I'll get the hang of how button commands work with context switching :>)
But for now I was able to implement a two button approach using the new Button Math command to create string content.
Albeit, I would still like to work out the use of Lists for picklists, if only for the use of the spy glass search function.
Maybe I'll be able to get it to work as more enhancements are built into the system.

Which brings me to another question that I will post separately because its a different subject.

Reply all
Reply to author
Forward
0 new messages