Passing of subfile row number not working for all users.
Posted: Mon Jun 13, 2011 1:45 pm
I'm experiencing a problem where the following logic works for some and not others. At first I thought it was a browser issue, but we're all on the same version of I.E. 8. I've written a program that displays documents in a subfile with virtual subfolders. Whenever a subfolder is clicked the documents within that folder is displayed. I'm using the following java script to pass the subfile row number the RPG program. However, when I execute the java script subfile row field S1Row is populated. When the script is executed by someone else it does not work. Please advise.
var nameId = this.id; var row = nameId.split(".")[1]; var docId = "S1OBJLNK." + row; var url = get(docId); var otype = "S1OBJTYP." + row; var typval = get(otype); changeElementValue("S1Row",row); if (typval != 'FLD') {window.open(url, "newin");} pui.click();
var nameId = this.id; var row = nameId.split(".")[1]; var docId = "S1OBJLNK." + row; var url = get(docId); var otype = "S1OBJTYP." + row; var typval = get(otype); changeElementValue("S1Row",row); if (typval != 'FLD') {window.open(url, "newin");} pui.click();