Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » How to store value in variable(I want to get value from editbox and store it in variable.)
How to store value in variable [message #1737908] Thu, 14 July 2016 05:30 Go to next message
Aditya Mahakulkar is currently offline Aditya MahakulkarFriend
Messages: 3
Registered: June 2016
Junior Member
get-editbox -after [get-label "ID:"]
I want to get the text from the editbox and store it in variable $Item_ID
I want to use that id to find that item i just created,
Re: How to store value in variable [message #1738044 is a reply to message #1737908] Fri, 15 July 2016 10:14 Go to previous messageGo to next message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

You need to use global variables

"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
Re: How to store value in variable [message #1738045 is a reply to message #1738044] Fri, 15 July 2016 10:18 Go to previous messageGo to next message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

1.Declare the variable
global [val perspective "Initialized"]

2.To assign a dynamic variable override the global variable
global [ val perspective [get-table | get-property[concat [concat "getItems().TableItem[" $count ] "].getText()" ] -raw]  ] -override


"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
Re: How to store value in variable [message #1740309 is a reply to message #1737908] Thu, 11 August 2016 12:54 Go to previous message
Agustin Celentano is currently offline Agustin CelentanoFriend
Messages: 51
Registered: June 2015
Member
Try this:


get-editbox -after [get-label "ID:"] | let [val Item_ID -input true] {
// Here code to use the variable called "Item_ID" by $Item_ID
}

Hope it helps.

Agustin
Previous Topic:[SOLVED] Get the current time using RCPTT
Next Topic:[SOLVED] Unable to clear workspace when using an external JAR lib
Goto Forum:
  


Current Time: Thu Apr 25 08:58:58 GMT 2024

Powered by FUDForum. Page generated in 0.03316 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top