We have a custom form made on the UD01 table to collect data. The toolbar and tree view are hidden leaving a blank page. so no save button.
I have an update button that is set to enabled = false on load and is not set active until the proper data is entered.
The lost focus event of all the required fields checks that they are all valid and then enables the update button.
all of the validation is in the form so all of your UDs would be available.
If you want, I will send the file to you and you can use it as an example.
Greg
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Friday, May 08, 2015 9:13 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Method of adding code to the save button?
The radio buttons do not have to default so if the field is blank you can fault on that.
From:
vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Friday, May 08, 2015 1:24 PM
To: vantage
Subject: Re: [Vantage] Method of adding code to the save button?
Greg, the problem with this (as I tried), is that I'm trying to do this on an added record. The customer_UD (in their example) doesn't exist yet.
I can't do ttcustomer_UD, it won't validate.
Any other thoughts?
Charlie, that could work, but how do I force it to be entered? The end goal is to ensure someone has either checked or not checked it consciously - and that we're not just accepting a default of "not checked".
Ken Williams
Vice President, Administrative Services
Intermountain Electronics - Power, Automation, and Process Systems
Office: 435-613-4817 | Mobile: 801-918-7318
kwilliams@... | www.ie-corp.com
On Fri, May 8, 2015 at 12:14 PM, Gr eg Payne gpayne@... [vantage] <vantage@yahoogroups.com> wrote:
Here is a sample from epicweb on _ud. It is written for updates, but the sysrowid to foreignsysrowid is the key
Greg
=========================================================
Summary: BPM - update an extended ud column with a BPM
Book: Support Solutions
Page: 14313MPS
< /p>
PAGE: 14313MPS
PROBLEM DESCRIPTION:
I am using extended ud tables and I want to use a BPM to change one of the columns that I added; when I use the BPM wizard, the extended ud columns aren't showing up.
PROBLEM RESOLUTION:
At this time, you have to use ABL code to do the join with the _UD table by using the sysrowid of the parent and the foreignsysrowid on the _ud table. For example, if you added some columns to the customer table and you wanted to update customer_ud.shortchar999, you could do so with the ABL code below.
FOR EACH ttcustomer WHERE ttcustomer.rowmod = 'u'.
F OR FIRST customer_ud WHERE ttcustomer.sysrowid = customer_ud.ForeignSysRowID EXCLUSIVE-LOCK.
IF avail customer_ud THEN DO:
ASSIGN customer_ud.shortchar999 = 'value goes here'.
END.
END.
END.
ADDITIONAL INFORMATION:
It is currently impossible to determine on server side whether a particular UD field was changed or not - there is no RowMod in the ttUserDefinedData table. At the moment that type of evaluation could really only be done from the UI side with a UI customization.
VERSIONS:
9.05
KEYWORDS
BPM
extended ud
From:
vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Friday, May 08, 2015 1:35 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Method of adding code to the save button?
For the yes and no, why not use radio buttons rather than check boxes. Using the Radio buttons, you populate one field with the result and when an option is selected, the other options are switched off. With a default set you can act on the one field rather than worrying about two different fields.
;
From:
vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Friday, May 08, 2015 12:04 PM
To: vantage
Subject: [Vantage] Method of adding code to the save button?
We have a custom form I'd like to intercept the save button to do some data validation and verification. For example, we have "does x need to happen" with both a "yes" and a "no" checkbox. To ensure someone fills it out and isn't simply skipping it, I want to make sure one, and only one, of these check boxes is selected.< o>
Similar, we have categories where they have to select one of a few options via checkbox, and then depending on what they selected they need to fill out a separate related field.
Unfortunately, I can't do these through a BPM because we have a bunch of Extended UD fields that are not available in the ABL script editor. Unless someone knows how to access the ttXXX_UD fields?.
Ken Williams
Vice President, Administrative Services
Intermountain Electronics - Power, Automation, and Process Systems
Office: 435-613-4817 | Mobile: 801-918-7318
kwilliams@... | www.ie-corp.com
CONFIDENTIALITY NOTICE
The information contained in this communication, including attachments, is privileged and confidential. It is intende d only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible
for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at
727-578-6280 and immediately delete the communication.
"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported
to foreign persons without prior approval form the U.S. Department of State."
CONFIDENTIALITY NOTICE
The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at 727-578-6280 and immediately delete the communication.
"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."