cancel
Showing results for 
Search instead for 
Did you mean: 

how to reset context variable in aplication for blackberry os 5.0?

Former Member
0 Kudos

Hello,

I usually reset the variables of type string of context like this:

wdContext.nodeGlobal.currentnodeGlobal.setattribute ("");

and it works perfectly for my blackberry with OS 4.0

but for blackberry OS 5.0 does not work, and I leave the old value without resetting the variable.

anyone know how I can reset a context variable for the blackberry with OS 5.0?

My intention is that if I have an input field mapped to an attribute "attribute" that has the text "this is my reason" and you need to leave empty for the user to enter a new value, I make .... setAttribute ("") and still see" this is my reason. "

Edited by: PaKaZo on Dec 29, 2010 12:46 PM

Edited by: PaKaZo on Dec 29, 2010 12:57 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185879
Active Contributor
0 Kudos

Hello,

Try using wdContext.currentABCElement().setAttribute1(null);

Regards

Nizamudeen SM

Former Member
0 Kudos

Hello Nizamudeen , thanks for answering.

I tried with "" and null but does not work.

Now I'm trying to create a node attributes only to reset and make wdContext.nodeNode.getContext (). reset () and wdContext.nodeNode.invalidate () but does not work either.

the only way I've found is with a ... setAtribute whitespace (""), but of course then I have to delete later and is very expensive

sorry for my english

Thanks