Re: How can I get the value of url passed vars?

"William L. Thomson Jr." <[email protected]> 05 Dec 2002 16:19:20 -0800
Newsgroups gmane.comp.java.jgenerator.devel
Message-ID <[email protected]>
On Thu, 2002-12-05 at 08:48, Dmitry Skavish wrote:
> William L. Thomson Jr. wrote:
> > I tried
> >
> > context.getValue();
> 
> It should work. In fact it does. :)
> If you cannot get the variable using this method, the something is wrong.

Nothing is wrong just me. I was doing 

context.getValue("my_var").equals("")
instead of 
context.getValue("my_var")!=null

> > using the context that is part of the doCommand function. Do I need to
> > get the context from the parentScript?
> 
> No, they all are linked together and delegate the request (getValue()) to its
> parent.

That's what I thought. Now how can I get params I do not know the name
of.

Is there a method or something I can call and get all in a enum or
something?

Basically if any var's are passed to the initial .swt I need to be able
to re-pass them to the swt when it is called again for the next set of
results.

And why I am asking do you know any good ways to dynamically determine
the width of a TextField based on the amount of text?

I almost have the height dialed in but and way off on the width?

I looked at the source behind the InsertTextCommand, but I can't seem to
get things right. I think it has to do with the scaling or something. I
will keep playing around until I get things the way I want them.

I am close, if I could just get a solid window of an hour or two
uninterrupted  I could get this object, and a project done.


-- 
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios Inc.
439 Amber Way
Petaluma, Ca. 94952
Phone  707.766.9509
Fax    707.766.8989
http://www.obsidian-studios.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf