<p> Common Function for all types of Dropdown field and Edit fields in my application</p><p>Function FnSetDropDownField(argFieldDropName,ArgValue,WinDiagName)</p><p>Dim StrEnd, StrPageStart, strBrowStart, strPage, strBrow, MyStringValue, MyStringName, MyArrayName, MyArrayValue strEnd = ".*" strPageStart = "title:=.*" strBrowStart = "name:=.*" MyStringValue = argvalue MyStringName = argFieldDropName strPage = strPageStart&WinDiagName &strEnd strBrow = strBrowStart&WinDiagName &StrEnd</p><p>MyArrayValue = Split(MyStringValue, ";") i=0 For Each MyDefaultItems in MyArrayValue</p><p>'Array to read Name values MyArrayName = Split(MyStringName, ";")</p><p> set editFieldDropDesc= description.Create() editFieldDropDesc("name").Value = MyArrayName(i) editFieldDropDesc("class").Value = "FieldContentInput"</p><p>Set fieldColl = Browser(strBrow).Page(strPage).ChildObjects(editFieldDropDesc)</p><p>Testthis = fieldColl(0).getROProperty("MicClass")</p><p>' Loop to set or select based on Class Name... If fieldColl(0).getROProperty("MicClass") = "WebEdit" Then If fieldColl.count > 0 Then fieldColl(0).Set(MyDefaultItems) End If Else If fieldColl.count > 0 Then fieldColl(0).Select(MyDefaultItems) End If End If</p><p>If FnGetCompareDropDownFieldVal(MyArrayName(i),WinDiagName)=MyDefaultItems Then Passed "PASS: Field Set","Field " &MyArrayName(i) &" set correctly to = " &MyDefaultItems &"." FnSetDropDownField="TRUE" else WARN "FAILED: Field Set","Field not set correctly to, " &MyDefaultItems &"." FnSetDropDownField="FALSE" End If i=i+1 Next End Function</p><p>'*'**********************************************************************</p><p>Call the Function for a field: for example: FnSetDropDownField DataTable("FileIDField", dtLocalSheet),DataTable("FileIDField_Input", dtLocalSheet),"Feedback"</p><p>But when I use/call the same function for a field in a popup window, my function doesn’t work. Should I use the same function or modify it so that it works for everywhere in my app? Or should I create a new function. The spied the Field in the popup as its as below:</p>
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages2 Page
-
File Size-