[progress Communities] [progress Openedge Abl] Forum Post: Pass Extra Parameter To Callback...

  • Thread starter Thread starter gwf
  • Start date Start date
Status
Not open for further replies.
G

gwf

Guest
I have a series of fields, following this naming convention: field1InUse [checkbox] field1Label [text] field1Value [picklist] field 2 InUse [checkbox] field 2 Label [text] field 2 Value [picklist] ... and so on On a portal page, I want to loop through these fields in a given record to first check if field1InUse is checked (i.e., has a value of 1), then get field1Label and field1Value to build the HTML with. The loop will then do the same for field2InUse, etc. Example code I have tried looks like this: For one, at rbf_selectValue("SELECT field" + fieldNumber + "InUse FROM objectA WHERE id = 123456", function(checkbox) { var arr1 = [checkbox, fieldNumber]; return arr1; }); I get an error message that there is no close parenthesis ) after the arguments, although I am not sure why since there is one. And second, even if that works I am not sure this is the way to in essence pass two parameters to the callback function checkInUse which will test if field1InUse is checked and then, if so, create the second API call to return field1Label and field1Value. So how can I do this? Any help will be much appreciated! Thank you, Greg

Continue reading...
 
Status
Not open for further replies.
Back
Top