Change label dynamically.

Oracle Application Express - web application development tool (antigamente conhecido como Oracle HTML-DB)
Post Reply
a664
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 6
Joined: Wed, 18 Nov 2009 11:59 am
Location: RS
Jeferson Romanini
Oracle Developer

Hello everyone ...

If it were possible I would like your help.

I am a beginner in Apex and would like to do something simple, but I am facing difficulties.

What I want to do is the following:
I have a group group, where there are some choice options.
I want the option chosen in Radio Group, be the label of a field below:

Ex:
Chosen option = "Valor1"
Label of the field = Value1

Thanks!
User avatar
stcoutinho
Moderador
Moderador
Posts: 850
Joined: Wed, 11 May 2011 5:15 pm
Location: são Paulo - SP

Hello A644,

I do not know if this solution would work, but you would need to be in version 4 of Apex.

For this you would need:

- Create Radio Button with the list of options;
- Create a hidden item in the form (Hidden Iten) to store the Label value.
Example: P1_ITEM_LABEL;
- Create the definitive item for which you want to dynamically change Label. The label of this item would be something like
& p1_item_label. (Note that you have to have the "&" at first and at the end the ".");
- Create a Dynamic Action that will be triggered by making a value change in Radio Button.
- When shooting this Dynamic Action, the hidden item is updated with the radio value, and the
page is updated (refresh). I could not tell if it would only be able to make a label refresh.

is one more suggestion and I could not ensure that this would work properly.

Maybe forists can give other suggestions.

Hugs,

Sergio Coutinho
a664
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 6
Joined: Wed, 18 Nov 2009 11:59 am
Location: RS
Jeferson Romanini
Oracle Developer

Hello Sergio ...

Yes, my version is the 4.
I will take a test with your tips.

Thank you!
a664
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 6
Joined: Wed, 18 Nov 2009 11:59 am
Location: RS
Jeferson Romanini
Oracle Developer

Sergio ...

I ended up finding a link, which explains what you want to do.
https://forums.oracle.com/forums/thread ... 0&tstart=0

Thanks for the attention.

strong embrace
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests