Forum Discussion

kikaider69's avatar
kikaider69
Occasional Contributor
14 years ago

Have fields that are the same, do the same, and in the same page

I am trying to make the fields lunique. i attmpeted to have it recognize the filed and then select all the properties and move them to the left to make it unique.  that does not work.  The problem stems i have the same kind of project ids in the page but they do different things.  I am trying to make them unique  but its not working. help!!





There are several objects in the system that match the recognition attributes of the "formDailyProofsAndAudits" mapped object.


This may cause the "Object not found" error.


Objects




Sys.Process("iexplore").Page("https://soki-dev.mechpod.com/index.php").Panel("base").Panel("main").Panel(0).Form("upload_form")


Sys.Process("iexplore").Page("https://soki-dev.mechpod.com/index.php").Panel("base").Panel("main").Panel(0).Form("combined_feedback_3")


Sys.Process("iexplore").Page("https://soki-dev.mechpod.com/index.php").Panel("base").Panel("main").Panel(0).Form("combined_feedback_2")


Sys.Process("iexplore").Page("https://soki-dev.mechpod.com/index.php").Panel("base").Panel("main").Panel(0).Form("combined_feedback")



To solve the problem, you may need to modify mapping settings for the "formDailyProofsAndAudits" object or one of its parent objects.


See Help for more information

2 Replies

  • kikaider69's avatar
    kikaider69
    Occasional Contributor
    Forgot to add.



    I have 4 search fields on the same page and and 3 project fields that belong to 3 of the search fields.



    The objects are unique as indicated in previous post.  My problem is when I attempt to object spy any of the project fields, they come up with the same name mapping.



    So I need some way to make the name mapping unique



    steve
  • Hi Steve,



    Here's a copy from my reply to the support case you started regarding this:

    The problem here is not in the buttons themselves, it seems to be in the 'Aliases.iexplore.pageMechpodSystemsControl.panelBase.panelMain.panelPageWrap.formDailyProofsAndAudits' object. This object, according to its position, should correspond to 'Form("combined_feedback")', and this is the object you need to map uniquely. Check its properties first - it maps both 'Form("combined_feedback")' and 'Form("combined_feedback_2") because its recognition criteria meet them both. Then make sure that the advanced view mode is enabled in the Object Browser and find the difference between these two objects. That "combined_feedback_X" is a value of some of their properties, so find the property which contains this value. Most probably, this will be ObjectIdentifier since its value is in the name. If it is not, look for other differences, maybe, text caption or a project name displayed on the form or something similar.



    Once you find the appropriate property, add it to mapping of 'formDailyProofsAndAudits'. Then map the second form using the same property whose value will have a different index. After that, map the search button of this form to have two separate branches for each of them.