Parentid evolution

Hello,
On a web screen, in a drop-down menu, of a table, I want to select “En-Tête nommé”.

The “Select Item” function does not work on this site.

The only things that change are parentid and id and this can vary between 2 connections to the site.
But between 2 records in the table the difference on the same connection is fixed.

Example :
2nd record ==> parentid = DWT444
3rd record ==> parentid = DWT515 ==> parentid2 + 71
4th record ==> parentid = DWT586 ==> parentid3 + 71

Other connection:
2nd record ==> parentid = DWT1012
3rd record ==> parentid = DWT1068 ==> parentid2 + 56
4th record ==> parentid = DWT1124 ==> parentid3 + 56

Also I would like:
select the 2nd record and have its parentId
select the 3rd record and have its parentId
Do the subtraction between the 2 to know about this connection how much it evolves between 2 records
On each of the following records, change the parentid of this difference.

Example :
2nd record ==> parentid = DWT444
3rd record ==> parentid = DWT515 ==> parentid2 + 71
4th record ==> parentid = DWT586 ==> parentid3 + 71

Other connection:
2nd record ==> parentid = DWT1012
3rd record ==> parentid = DWT1068 ==> parentid2 + 56
4th record ==> parentid = DWT1124 ==> parentid3 + 56


_________________________________________________________________________________________________________________________________________

So

  • How to take and display write line the parentid value of record 2 ? it will be the same for 3!

  • What is the syntax of the variable?

<webctrl parentid=‘{{Ecart}}’ tableRow=‘11’ tag=‘TABLE’ colName=‘De’ isleaf=‘0’ rowName=‘En-tête nommé’ tableCol=‘1’ />
<webctrl class=‘ZWidgetTitle’ tableRow=‘1’ tag=‘TD’ aaname=‘En-tête nommé’ id=‘’{{Ecart}}‘+_title’ isleaf=‘1’ parentid=‘{{Ecart}}’ tableCol=‘3’ />

Thanks in advance

@tpdemontfort

Ypu can remove the parent id and id …aaname should suffice

Cheers

Hello,
It’s not OK it stay on the 2 nd row :frowning:

Hi @tpdemontfort ,

Try using Find element activity configured with a dynamic selector and pass the element as input to the click activity.

If you share the selector as text we can help further.

Thanks,
Gautham.

Thank you for showing interest in my topic.

At first click “Objet”

<uix:NClick ActivateBefore="True" ClickType="Single" DelayAfter="1" DisplayName="Click 'Objet'" sap:VirtualizedContainerService.HintSize="354,65" sap2010:WorkflowViewState.IdRef="NClick_39" KeyModifiers="None" MouseButton="Left" ScopeIdentifier="90687162-9835-4ed3-b412-e0aea3caf08b" Version="V3">

<uix:NClick.Target>

<uix:TargetAnchorable BrowserURL="https://zimbra.free.fr/zimbra/mail" CvElementArea="573, 576, 136, 23" CvType="InputBox" DesignTimeRectangle="575, 579, 113, 18" DesignTimeScaleFactor="1" ElementType="Text" FullSelectorArgument="&lt;webctrl css-selector='body&amp;gt;div&amp;gt;div&amp;gt;div&amp;gt;table&amp;gt;tbody&amp;gt;tr&amp;gt;td&amp;gt;div&amp;gt;fieldset&amp;gt;div&amp;gt;table&amp;gt;tbody&amp;gt;tr&amp;gt;td&amp;gt;div&amp;gt;table&amp;gt;tbody&amp;gt;tr&amp;gt;td&amp;gt;table' idx='27' tableCol='1' tableRow='1' tag='TABLE' /&gt;&lt;webctrl class='ZWidgetTitle' tableRow='1' tag='TD' /&gt;" FuzzySelectorArgument="&lt;webctrl tag='TABLE' /&gt;&lt;webctrl class='ZWidgetTitle' type='' tag='TD' aaname='Objet' check:innerText='Objet' /&gt;" Guid="062a78f5-baf7-47a1-b1ba-03d043e276ef" InformativeScreenshot="116104e1f3c0110e454fe99dda86c3ed.png" ScopeSelectorArgument="&lt;html app='chrome.exe' title='Zimbra: Préférences: Filtres' /&gt;" SearchSteps="FuzzySelector, CV" Version="V3" Visibility="Interactive">

<uix:TargetAnchorable.Anchors>

<scg:List x:TypeArguments="uix:ITarget" Capacity="3">

<uix:Target CvTextArea="545, 393, 64, 11" CvTextArgument="Nom du filtre" CvType="Text" DesignTimeRectangle="545, 388, 70, 21" ElementType="Text" FullSelectorArgument="&lt;webctrl parentid='ZmFilterRuleDialog_content' tableRow='2' tag='TABLE' /&gt;&lt;webctrl tableRow='1' tag='TD' /&gt;" FuzzySelectorArgument="&lt;webctrl parentid='ZmFilterRuleDialog_content' tag='TABLE' /&gt;&lt;webctrl type='' tag='TD' class='' aaname='Nom du filtre :' check:innerText='Nom du filtre :' /&gt;" SearchSteps="FuzzySelector, CV" />

<uix:Target CvTextArea="695, 428, 155, 11" CvTextArgument="suivantes est/sont satisfaite(s) :" CvType="Text" DesignTimeRectangle="695, 423, 157, 22" ElementType="Text" FullSelectorArgument="&lt;webctrl parentid='DWT295' tableRow='2' tag='TABLE' /&gt;&lt;webctrl id='DWT295_2' tableRow='1' tag='TD' /&gt;" FuzzySelectorArgument="&lt;webctrl parentid='DWT295' tag='TABLE' /&gt;&lt;webctrl id='DWT295_2' type='' tag='TD' class=' DwtCompositeCell' aaname=' suivantes est/sont satisfaite(s) :' check:innerText='suivantes est/sont satisfaite(s) :' /&gt;" SearchSteps="FuzzySelector, CV" />

<uix:Target CvTextArea="572, 746, 156, 11" CvTextArgument="Ne pas appliquer d'autres filtres" CvType="Text" DesignTimeRectangle="571, 740, 158, 23" FullSelectorArgument="&lt;webctrl parentid='ZmFilterRuleDialog_stop_control' tableRow='2' tag='TABLE' /&gt;&lt;webctrl tableCol='3' tableRow='1' tag='TD' /&gt;" FuzzySelectorArgument="&lt;webctrl parentid='ZmFilterRuleDialog_stop_control' tag='TABLE' /&gt;&lt;webctrl type='' class='' tag='TD' aaname='' check:innerText='Ne pas appliquer d&amp;apos;autres filtres' /&gt;" SearchSteps="FuzzySelector, CV" />

</scg:List>

</uix:TargetAnchorable.Anchors>

</uix:TargetAnchorable>

</uix:NClick.Target>

<sap:WorkflowViewStateService.ViewState>

<scg:Dictionary x:TypeArguments="x:String, x:Object">

<x:Boolean x:Key="IsExpanded">False</x:Boolean>

<x:Boolean x:Key="IsPinned">False</x:Boolean>

</scg:Dictionary>

</sap:WorkflowViewStateService.ViewState>

</uix:NClick>

And i Click

                                      <uix:NClick ActivateBefore="True" ClickType="Single" DisplayName="Good Click 'En-tête nommé'" sap:VirtualizedContainerService.HintSize="434,197" sap2010:WorkflowViewState.IdRef="NClick_51" KeyModifiers="None" MouseButton="Left" ScopeIdentifier="90687162-9835-4ed3-b412-e0aea3caf08b" Version="V3">
                                        <uix:NClick.Target>
                                          <uix:TargetAnchorable BrowserURL="https://zimbra.free.fr/zimbra/mail" CvTextArea="585, 646, 76, 12" CvTextArgument="En-tete nomme" CvType="Text" DesignTimeRectangle="582, 645, 108, 16" DesignTimeScaleFactor="1" ElementType="Text" FullSelectorArgument="&lt;webctrl parentid='DWT684' tableRow='11' tag='TABLE' /&gt;&lt;webctrl class='ZWidgetTitle' tableRow='1' tag='TD' /&gt;" FuzzySelectorArgument="&lt;webctrl parentid='DWT684' tag='TABLE' /&gt;&lt;webctrl class='ZWidgetTitle' type='' tag='TD' aaname='En-tête nommé' check:innerText='En-tête nommé' /&gt;" Guid="d4d00703-8820-4f86-9f96-6bcf8dc186d9" InformativeScreenshot="46da4063a6b9fe443f763263fb7d9b09.png" ScopeSelectorArgument="&lt;html app='chrome.exe' title='Zimbra: Préférences: Filtres' /&gt;" SearchSteps="FuzzySelector, CV" Version="V3" Visibility="Interactive">
                                            <uix:TargetAnchorable.Anchors>
                                              <scg:List x:TypeArguments="uix:ITarget" Capacity="2">
                                                <uix:Target CvTextArea="545, 393, 69, 11" CvTextArgument="Nom du filtre :" CvType="Text" DesignTimeRectangle="545, 388, 70, 21" ElementType="Text" FullSelectorArgument="&lt;webctrl parentid='ZmFilterRuleDialog_content' tableRow='2' tag='TABLE' /&gt;&lt;webctrl tableRow='1' tag='TD' /&gt;" FuzzySelectorArgument="&lt;webctrl parentid='ZmFilterRuleDialog_content' tag='TABLE' /&gt;&lt;webctrl type='' tag='TD' class='' aaname='Nom du filtre :' check:innerText='Nom du filtre :' /&gt;" SearchSteps="FuzzySelector, CV" />
                                                <uix:Target CvTextArea="695, 428, 155, 11" CvTextArgument="suivantes est/sont satisfaite(s) :" CvType="Text" DesignTimeRectangle="695, 423, 157, 22" ElementType="Text" FullSelectorArgument="&lt;webctrl parentid='DWT295' tableRow='2' tag='TABLE' /&gt;&lt;webctrl id='DWT295_2' tableRow='1' tag='TD' /&gt;" FuzzySelectorArgument="&lt;webctrl parentid='DWT295' tag='TABLE' /&gt;&lt;webctrl id='DWT295_2' type='' tag='TD' class=' DwtCompositeCell' aaname=' suivantes est/sont satisfaite(s) :' check:innerText='suivantes est/sont satisfaite(s) :' /&gt;" SearchSteps="FuzzySelector, CV" />
                                              </scg:List>
                                            </uix:TargetAnchorable.Anchors>
                                          </uix:TargetAnchorable>
                                        </uix:NClick.Target>
                                        <sap:WorkflowViewStateService.ViewState>
                                          <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                            <x:Boolean x:Key="IsPinned">False</x:Boolean>
                                          </scg:Dictionary>
                                        </sap:WorkflowViewStateService.ViewState>
                                      </uix:NClick>

But afterward, the more it goes, the more lines to insert it takes time and in the end it gets lost :frowning:

Hi @tpdemontfort ,

Perhaps try using the Find Image and Click Image combination. You can indicate which place or image you want to click upon.

Thanks,
Gautham.