Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » How to add a new variable in the "Variables" wizard?(How to add a new variable in the "Variables" wizard?)
How to add a new variable in the "Variables" wizard? [message #1707171] Wed, 02 September 2015 18:38 Go to next message
Nazul IslamFriend
Messages: 1
Registered: April 2011
Location: Canada
Junior Member
Hello,

Greetings.

I would like to know where the variables listed in "Variables wizard" are defined? Is there a configuration page in the installer?

How to add/remove/modify variables in the wizard?

Thanks,
Nazul
Re: How to add a new variable in the "Variables" wizard? [message #1707193 is a reply to message #1707171] Thu, 03 September 2015 02:49 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Nazul,

How variables are declared and used is explained in
https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Declaring_and_Using_Variables .

If you describe in more detail what exactly you're trying to achieve I can possibly give more specific advice ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper




Am 03.09.2015 um 03:32 schrieb Nazul Islam:
> Hello,
>
> Greetings.
>
> I would like to know where the variables listed in "Variables wizard" are defined? Is there a configuration page in
> the installer?
>
> How to add/remove/modify variables in the wizard?
>
> Thanks,
> Nazul


Re: How to add a new variable in the "Variables" wizard? [message #1748180 is a reply to message #1707193] Sun, 20 November 2016 18:11 Go to previous messageGo to next message
Artem Kovalev is currently offline Artem KovalevFriend
Messages: 25
Registered: April 2016
Junior Member
Hello,

I have a same problem.

I try to create my custom variable and to display in the Variables Page of installer. But my attempt failed. Please see attached file.

What am I doing wrong?

Thanks,
Artem.


Re: How to add a new variable in the "Variables" wizard? [message #1748188 is a reply to message #1748180] Mon, 21 November 2016 06:18 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
You've defined user.name to have the value ${scope.user.name} and scope.user.name is an induced variable that will have the value of the name property of the User scope. As such, even if the variable user.name is used in some task (as ${user.name}) it will already have value defined and will not be prompted. You could change your definition so that ${scope.user.name} is the default value of the variable. In this case (assuming ${user.name} is used in some task), the value will be prompted, but the field will have ${scope.user.name} as the initial value.

When editing a project setup, be sure to use the Outline view. In the "Unresolved Variables" group in the outline, you'll see the list of variables that will be prompted. It will also show you variables that are used but are undeclared; that's generally an authoring problem because those will be prompted but won't have a nice label and description to explain to the end user the purpose of that variable's value.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to add a new variable in the "Variables" wizard? [message #1749514 is a reply to message #1748188] Wed, 07 December 2016 16:32 Go to previous messageGo to next message
Artem Kovalev is currently offline Artem KovalevFriend
Messages: 25
Registered: April 2016
Junior Member
Hi Ed,

Thanks for help, but problem is not resolved.
See the screenshot in attached file.

It is a bug ? Or I'm wrong?

Thanks,
Artem

[Updated on: Wed, 07 December 2016 16:46]

Report message to a moderator

Re: How to add a new variable in the "Variables" wizard? [message #1749566 is a reply to message #1749514] Thu, 08 December 2016 08:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
In your screen shot you have {$user.fullname}. No doubt you intended ${user.fullname}.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to add a new variable in the "Variables" wizard? [message #1749594 is a reply to message #1749566] Thu, 08 December 2016 13:20 Go to previous message
Artem Kovalev is currently offline Artem KovalevFriend
Messages: 25
Registered: April 2016
Junior Member
A lot of thanks, I inattentive.

My problem was solved.
Previous Topic:[Closed] Prevent Installer from Update
Next Topic:Uninstalling all JPA plugins from eclipse
Goto Forum:
  


Current Time: Fri Apr 26 03:06:53 GMT 2024

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

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

Back to the top