Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use same Action with different parent window
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
Hello!
I have in my application a customer dialog. This dialog will be call with different parents in my application.

For example:
Code:
a)
[b]Window("ApplicationName").[/b]Window("Customer").WinEdit("Name").Set "X"
b)
Window("Customer").WinEdit("Name").Set "X"

I will always use the same CustomerAction, so is there a simple way how i can do this?
Another question: Can i use the same Object Repository hierarchy - that all items in the customer-dialog are present only once!?

Thanks!
Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi,

Use descriptive programming here to identify win edit box and then enter teh value,
his will resolve your issue.
Reply
#3
Solved: 10 Years, 8 Months, 4 Weeks ago
Try only b option everywhere, it should work if we omit middle windows hierarchy.
Reply
#4
Solved: 10 Years, 8 Months, 4 Weeks ago
Quote:I will always use the same CustomerAction, so is there a simple way how i can do this?
If you meant , you dont like writing the same thing again and again,set it to an object

Code:
set Customer= Window("Customer").WinEdit("Name")

Now accordingly which parent window opens this window, you can write code as

Code:
Window("ParentName").Customer.Set "X"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to get the links which appears on mouse hover of parent link rajendra649 9 34,820 03-10-2017, 06:35 PM
Last Post: satish00k
  verify that parent properties match object currently displayed in your application. sona 0 2,937 02-21-2016, 12:00 PM
Last Post: sona
  How to write a script for fly out menus (Parent - Child - Sub Child) rajkumarsm 3 4,443 09-02-2014, 10:01 AM
Last Post: vinod123
  Is it possible to call Java window and Power Builder Window in 1 Action sbkhbk 0 2,440 06-05-2014, 08:18 PM
Last Post: sbkhbk
  exit parent functions as well Shridevi.Salagare 3 3,593 07-31-2013, 12:15 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)