Ma version:
Forms [32 bits] Version 10.1.2.0.2 (Production)
Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
Ma question:
Est-ce possible de changer le texte d'un champ texte par le code et si oui comment?
J'ai trouvé pour un groupe d'option et un bouton:
if :b1.list_ch_langue = 'Français' then
:b10.c_block_title1 := 'Options d''impression';
SET_ITEM_PROPERTY('b1.c_print_pb', label, 'Imprime');
SET_ITEM_PROPERTY('b1.list_ch_langue', prompt_text, 'Langue :');
Set_Radio_Button_Property( 'RADIO_BUTTON_NOTES', 'RADIO_BUTTON_AUCUNE', PROMPT_TEXT, 'Aucune note');
Set_Radio_Button_Property( 'RADIO_BUTTON_NOTES', 'RADIO_BUTTON_OUVERTES', PROMPT_TEXT, 'Notes ouvertes seulement');
Set_Radio_Button_Property( 'RADIO_BUTTON_NOTES', 'RADIO_BUTTON_TOUTES', PROMPT_TEXT, 'Toutes les notes');
SET_ITEM_PROPERTY('b1.Notes', prompt_text, 'Notes sur le rapport');
else
:b10.c_block_title1 := 'Printing Options';
SET_ITEM_PROPERTY('b1.c_print_pb', label, 'Print');
SET_ITEM_PROPERTY('b1.list_ch_langue', PROMPT_TEXT, 'Language :');
Set_Radio_Button_Property( 'RADIO_BUTTON_NOTES', 'RADIO_BUTTON_AUCUNE', PROMPT_TEXT, 'Nothing Note');
Set_Radio_Button_Property( 'RADIO_BUTTON_NOTES', 'RADIO_BUTTON_OUVERTES', PROMPT_TEXT, 'Open Notes Only');
Set_Radio_Button_Property( 'RADIO_BUTTON_NOTES', 'RADIO_BUTTON_TOUTES', PROMPT_TEXT, 'All Notes');
SET_ITEM_PROPERTY('b1.Notes', prompt_text, 'Notes On the Report');
end if;
Merci à l'avance
Clément
Québec
Canada.
Partager