Q7

Try to get value from the first item.

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: ECL
  • Labels:
  • Test Mode:
    Manual

Description

https://www.eclipse.org/forums/index.php/t/826519/

I try get value from first item but I have difficulties.
I do it but i check all items Confused :

proc getReference {
    get-view "R├ęsultat Recherche Article" | get-table | 
         //error : Cannot convert value of type 'org.eclipse.rcptt.tesla.ecl.model.VerifyHandler'
        //select ".*" | get-property "getData().getProduit().getCodeInterne()" | let [val msg -input]{$msg}
        //error : Cannot convert value of type 'org.eclipse.rcptt.tesla.ecl.model.VerifyHandler'
        //get-item ".*" | get-property "getData().getProduit().getCodeInterne()" | let [val msg -input]{$msg}
        //check all items... it's not effective
        get-items | foreach {get-property "getData().getProduit().getCodeInterne()" -raw | let [val msg -input]{$msg}}
}

proc unArticle [] {
    initialiseRechercheArticle
    let [val ref [getReference | str]] {
        get-view "R├ęsultat Recherche Article" | get-button Quitter | click
        $ref
    }
}

show-alert [unArticle]

I tested select "." and get-item "." but rcptt generate an error: Cannot convert value of type 'org.eclipse.rcptt.tesla.ecl.model.VerifyHandler'

I suppose it is a solution:
get-property "getData().getProduit().getCodeInterne()" -raw | let [val msg -input]{$msg} | get 0

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    08/Oct/14 12:19 PM
    Updated:
    10/Oct/14 4:19 PM
    Resolved:
    10/Oct/14 4:19 PM