Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dynamically display push button on a detail block - 10g

Darsh_Jan 31 2017 — edited Feb 13 2017

Hello,

I have a requirement where I must display a Push Button at detail level block as shown in the attached image.   The block is 100% display only. And it is being called by another form.

Number of records vary in this display only block. If there is only one record visible (as shown in image) then the Audit button nearby needs to be visible on the screen ONLY for that record.

My issue is that other buttons are also visble on the screen(in disabled mode, but still visible). As we can see from the image. This looks ugly.

If there are 7 records visible then all 7 buttons would be displayed. This is the functionality I want to achieve.

My issue is that how can I achieve abovem mentioned dynamic/run time display of the button that reflects as per number of records displayed on the form?

The button is also part of the same data block as the form and records. I tried putting button into a control block but that did not help either.

Here is what I have done so far.

1. By default button stays visible and enabled in property.
2. In Post-Query block level trigger, I issue following statements.

    SET_ITEM_PROPERTY('BLOCK.AUDIT_BUTTON', VISIBLE, PROPERTY_TRUE);
    SET_ITEM_PROPERTY('BLOCK.AUDIT_BUTTON', ENABLED, PROPERTY_TRUE);

However the issue is that the control stays at AUDIT_BUTTON and post query stops fetching next records.

This is where I am stuck.

How can I dynamically display Audit button that should be visible ONLY for number of records queried and displayed and how can I completely HIDE(make disappear) the disabled audit button.

Thank you
Darsh
   
  

This post has been answered by Manu. on Feb 1 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2017
Added on Jan 31 2017
26 comments
4,241 views