Hi All,
I have recently inherited responsibility for a rather complex web application used as part of my Business. I have a lot of experience working with MS Access including VBA and SQL but don't have any experience with JavaScript or Alpha in general.
I have watched a lot of the online tutorials for Alpha and am getting a good understanding of the way thing work and I have started to learn the JavaScript notation also.
I need to make a change to one of the main UX components in the project. This component consists of two lists, LIST1 and LIST5 both with detail views. Double clicking a line in LIST1 runs JavaScript code that copies information from the detail view of LIST1 (this is hidden) to LIST5, where is is visible and can be edited.
I expected this to be a simple case of using the for loop, selecting each record (so that the detail view textboxes are populated) then running double click action. Unfortunately, I have been unable to fine the appropriate code to select each line and populate the details boxes, as if it were clicked.
Can Anyone help?
Code so far:
var _List1 = {dialog.object}.getControl('LIST1');
for(i=0; i <_List1._data.length;i++) {
## UNKNOWN CODE
{dialog.object}.runAction('PreDoubleClick');
}
Thank you
Chris
I have recently inherited responsibility for a rather complex web application used as part of my Business. I have a lot of experience working with MS Access including VBA and SQL but don't have any experience with JavaScript or Alpha in general.
I have watched a lot of the online tutorials for Alpha and am getting a good understanding of the way thing work and I have started to learn the JavaScript notation also.
I need to make a change to one of the main UX components in the project. This component consists of two lists, LIST1 and LIST5 both with detail views. Double clicking a line in LIST1 runs JavaScript code that copies information from the detail view of LIST1 (this is hidden) to LIST5, where is is visible and can be edited.
I expected this to be a simple case of using the for loop, selecting each record (so that the detail view textboxes are populated) then running double click action. Unfortunately, I have been unable to fine the appropriate code to select each line and populate the details boxes, as if it were clicked.
Can Anyone help?
Code so far:
var _List1 = {dialog.object}.getControl('LIST1');
for(i=0; i <_List1._data.length;i++) {
## UNKNOWN CODE
{dialog.object}.runAction('PreDoubleClick');
}
Thank you
Chris
Comment