All,
I have a UX that I want to use to add new records to the database.
I want the new record to retain information in some of the fields from the existing record and present others as blanks to enter data in.
The UX contains a list and many fields databound to the underlying table all of that works well.
The method
{dialog.object}.newRecord({cloneExisting: flagClone, fieldsToNotCopy: ignoreList});
seems to be designed to do just what I want. However for me it is not working.
I put this in the onClick event of a button, with flagClone = true and an appropriate list of fields as shown below:
{dialog.object}.newRecord({cloneExisting: true, fieldsToNotCopy: ['GBSF','F_I_P_R','ITEM_DATE','TASK_CODE_NO']});
After saving and going to Working Preview, clicking on the button will work one time, allowing me to add one record.
after submitting that one record, it will not work again, in fact the button does nothing at that point.
There is no change to the input screen and nothing gets "dirty"
I have used the base form of this method {dialog.object}.newRecord(); and that works for adding multiple records in sequence as expected.
I am running AlphaAnywhere V12, Build 2999 System addins 4519, I applied patches today.
Windows 10
I will be happy to share screen shots etc.. just tell me what you wish to see.
A few questions:
1) Am i missing something here?
2) Are the field names case sensitive, All my fields are all lowercase with no spaces, I've tried both upper and lower case field names with the same bad result.
Thanks for the help
Kevin
I have a UX that I want to use to add new records to the database.
I want the new record to retain information in some of the fields from the existing record and present others as blanks to enter data in.
The UX contains a list and many fields databound to the underlying table all of that works well.
The method
{dialog.object}.newRecord({cloneExisting: flagClone, fieldsToNotCopy: ignoreList});
seems to be designed to do just what I want. However for me it is not working.
I put this in the onClick event of a button, with flagClone = true and an appropriate list of fields as shown below:
{dialog.object}.newRecord({cloneExisting: true, fieldsToNotCopy: ['GBSF','F_I_P_R','ITEM_DATE','TASK_CODE_NO']});
After saving and going to Working Preview, clicking on the button will work one time, allowing me to add one record.
after submitting that one record, it will not work again, in fact the button does nothing at that point.
There is no change to the input screen and nothing gets "dirty"
I have used the base form of this method {dialog.object}.newRecord(); and that works for adding multiple records in sequence as expected.
I am running AlphaAnywhere V12, Build 2999 System addins 4519, I applied patches today.
Windows 10
I will be happy to share screen shots etc.. just tell me what you wish to see.
A few questions:
1) Am i missing something here?
2) Are the field names case sensitive, All my fields are all lowercase with no spaces, I've tried both upper and lower case field names with the same bad result.
Thanks for the help
Kevin
Comment