Skip to main content



      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 01:30 Go to next message
Eclipse UserFriend
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 06:14 Go to previous messageGo to next message
Eclipse UserFriend
You need to use global variables
Re: How to store value in variable [message #1738045 is a reply to message #1738044] Fri, 15 July 2016 06:18 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to store value in variable [message #1740309 is a reply to message #1737908] Thu, 11 August 2016 08:54 Go to previous message
Eclipse UserFriend
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 Nov 06 13:53:23 EST 2025

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

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

Back to the top