Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2002
    Posts
    121

    Question Unanswered: Canvas Views (hiding)

    Hello,
    The when-button-pressed trigger below does not work quite right. Specifically, the canvas view "can_pat" does not disappear even though it is programmed to do so at the end of the trigger. I thinks it's soomething simple, since I have an almost identical trigger elsewhere in my app but I can't see to figure it out. Any thoughts?.


    declare
    v_button_alert integer;
    --variable for alert message box.

    begin

    --Checks to see if any records have been altered.
    IF GET_RECORD_PROPERTY(GET_BLOCK_PROPERTY('results_bl k', current_record), 'results_blk', status)= 'CHANGED' THEN

    SET_ALERT_PROPERTY('alert_delete', alert_message_text, 'Save changes to records?');
    --Prompts the user to save the changes.
    v_button_alert := SHOW_ALERT('alert_delete');

    --Saves changes that have been made to any records.
    IF alert_button1 = v_button_alert then
    commit_form;
    clear_form;
    ELSE
    --Does not save any changes that have been made to the
    --records.
    clear_form(no_commit);
    END IF;
    END IF;

    --Clears form and returns user to the previous
    --canvas.

    set_view_property('can_pat', visible, property_false);
    set_view_property('canvas_move_delete',visible,pro perty_true);



    end;

  2. #2
    Join Date
    Jun 2004
    Location
    Liverpool, NY USA
    Posts
    2,509
    You need to navigate to an item on the canvas_move_delete before the view will change. Put the go_item at the end of the trigger.

    go_item('BLOCKX.ITEM24');
    Bill
    You do not need a parachute to skydive. You only need a parachute to skydive twice.

  3. #3
    Join Date
    Aug 2002
    Posts
    121
    Thanks, Bill it now works fine. Though the puzzling thing is that I have virtually an identical trigger eslwhere in my app and I do not need to navigate to an item on the other cavass in order for it to become visable. Weird?!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •