Common Function for All Types of Dropdown Field and Edit Fields in My Application

Common Function for All Types of Dropdown Field and Edit Fields in My Application

<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>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us