質問

Please help, Oracle form expert!

I created a master-detail form, and the user now wants to add a control to populate records on it--open items, closed items or all items.

I created a new Data Block that has one Item (Radio_Group), and laid out 3 Radio Buttons OPEN, CLOSED & ALL that should match a table column with values like 'Sent1, Sent2, Sent3, Reviewed' for OPEN, 'Rejected, Declined' for CLOSED and ALL should cover both of them.

On Radio_Group Property_Pallete, Item Type: Radio Group; Subclass Info:RADIO_GROUP; Mapping of Other Values: Open; & Initial Value: Open

For 3 Radio Buttons, Label & Radio Button Value are the same: Open, closed & ALL.

On the WHEN-RADIO-CHANGED, I wrote:

IF :RADIO_DISPLAY.DISPLAY = 'OPEN' THEN

   SET_BLOCK_PROPERTY('CCR_MANAG_MAIN', DEFAULT_WHERE,
     'upper(ISG_STATUS) like ''SEN%'' or upper(ISG_STATUS) like ''%REVIEW''');
   GO_BLOCK('CCR_MANAG_MAIN');
   CLEAR_FORM('NO_VALIDATE');
   execute_query;

IFELS upper(:RADIO_DISPLAY.DISPLAY) = upper('CLOSED') THEN
    SET_BLOCK_PROPERTY('CCR_MANAG_MAIN', DEFAULT_WHERE
      ,'upper(ISG_STATUS) not like ''SEN%'' and upper(ISG_STATUS) not like ''%REVIEW''');
    GO_BLOCK('CCR_MANAG_MAIN');
    CLEAR_FORM('NO_VALIDATE');
    execute_query;

ELSE
    SET_BLOCK_PROPERTY('CCR_MANAG_MAIN', DEFAULT_WHERE,'');
    GO_BLOCK('CCR_MANAG_MAIN');
    CLEAR_FORM('NO_VALIDATE');
    execute_query;
END IF;

No compiling errors but Radio Buttons are not working. What I missed? Thank you.

役に立ちましたか?

解決

I believe your CLEAR_FORM('NO_VALIDATE'); is sending the cursor to the control block, then your execute_query is executed in the wrong block.

Try using CLEAR_BLOCK('NO_VALIDATE'); if clearing the fields is really necessary.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top