Probolem go_block

hello
every body....
I have to call block when validate record...
that block is on other canvas.....
so any one give me idea how i can call it...
I have simple requirement whenever i leave the record i have go to that page
which has that block every time....

Hi
I think you are trying to give Go_Block in record level trigger, it would not be possible since the focus is on the first block.
Why don't you try the Navigation Property on the First block, by setting navigation to next block.
So when user navigates to the last item of the first block control will go to next block and will automatically shows the new canvas .
Nilaksha.

Similar Messages

  • GO_BLOCK IF A FIELD VALUE HAS CHANGED??

    Hi Gurus,
    i have a block A with a date field and an amount field. And a separate block B with a date and an amount field.
    Block B
    01.01.04 100 €
    01.02.04 200 €
    01.03.04 300 €
    01.04.04 400 €
    If i put the date 01.02.04 in the Block A, i had to add all amounts which date in Block A is lower or equal the date in Block B. --> 300 €
    I could use in which trigger a go_block? To add the amounts? POSt-CHANGE;WHEN-VALIDATE dosen't working.
    THANKS in advance
    Wolfgang

    Hi Wolfgang,
    I'd rather use a record group that contained one column with all the dates and one with the accumulated amounts up to that date. Then you'll only need to look for the closest date older than your input date and read the accumulated amount.
    It requires a little more coding but it saves you the hastle of jumping between blocks, which isn't easy to to during validation.
    Greetings,
    Achim

  • Custom PLL with GO_BLOCK

    Hi
    please help or suggest.
    I'm setting a Delivery To Location on Purchase Order Distribution Block required, so that when users a trying to save the record a message should pop up notifying then that they must populate the DELIVERY TO LOCATION address field i've used the GO_BLOCK but im getting this error frm-40737: illegal restricted procedure go_block in WHEN-VALIDATE-RECORD trigger.
    Please help and see my code below.
    begin
         app_item_property2.set_property ('PO_DISTRIBUTIONS.DELIVER_TO_LOCATION',required,property_true);
         if name_in('PO_DISTRIBUTIONS.DESTINATION_TYPE') = 'Inventory' then
                app_item_property2.set_property ('PO_DISTRIBUTIONS.DESTINATION_SUBINVENTORY',required,property_true);
         end if;     
         if p_event_name = 'WHEN-VALIDATE-RECORD' then
               if p_block_name = 'PO_LINES' then
                   if name_in('PO_DISTRIBUTIONS.DELIVER_TO_LOCATION') is null  then
                             fnd_message.set_name('XX','XX_PO_DELIVER_TO_LOCATION');
                               fnd_message.error;                          
                               raise form_trigger_failure;
                   end if; 
                   if name_in('PO_DISTRIBUTIONS.DESTINATION_TYPE') = 'Inventory' and name_in('PO_DISTRIBUTIONS.DESTINATION_SUBINVENTORY') is null then
                             fnd_message.set_name('XX','XX_DESTINATION_SUBINVENTORY');
                               fnd_message.error;
                               raise form_trigger_failure;
                   end if; 
           end if;
         end if;
      exception
              when FORM_TRIGGER_FAILURE then
              Go_Block('PO_DISTRIBUTIONS');
                 IF NOT FORM_SUCCESS THEN
                      RAISE Form_Trigger_Failure;
                 END IF;          
              when others then
              Raise;
      end;     

    Lethu,
    you cannot use navigational triggers in WVR.
    Why can't you use forms personalization to achieve this?
    This is way simpler than modifying the custom.pll.
    HTH,

  • How to use GO_BLOCK in POST_CHANGE trigger?

    Hi All,
    I have a post_change trigger on a text item, I wanna change the background color (using visual attribute) of some items in another block according to the value of that text item mentioned.
    But when I put a value for the first time some backgrounds are changed and when I change the value the previous actions for backgrounds are still, How to clear the affect of all the previous changes of the value.
    I wrote this code on PST-CHANGE trigger on that item:
    BEGIN   
        GO_BLOCK('BLOCK1');   
        SET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM, VISUAL_ATTRIBUTE,'DISPLAY_ITEMS');
        LOOP
            NEXT_ITEM;
            SET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM, VISUAL_ATTRIBUTE,'DISPLAY_ITEMS');
            EXIT WHEN :SYSTEM.CURSOR_ITEM = 'BLOCK1.DATE_QUERY'; -- THIS IS THE LAST ITEM IN THE BLOCK
        END LOOP;
        IF :REP_SID = '01' THEN   
            SET_ITEM_PROPERTY('BLOCK1.SUS', VISUAL_ATTRIBUTE,'PAR_ITEMS');
        ELSIF :REP_SID = '02' THEN
            SET_ITEM_PROPERTY('BLOCK1.NAMEE', VISUAL_ATTRIBUTE,'PAR_ITEMS');
        ELSIF :REP_SID IN ('05','06','07','08','09','10') THEN
            SET_ITEM_PROPERTY('BLOCK1.VIS', VISUAL_ATTRIBUTE,'PAR_ITEMS');
            SET_ITEM_PROPERTY('BLOCK1.AT', VISUAL_ATTRIBUTE,'PAR_ITEMS');
        ELSIF :REP_SID = '20' THEN
            SET_ITEM_PROPERTY('BLOCK1.TOO', VISUAL_ATTRIBUTE,'PAR_ITEMS');
            SET_ITEM_PROPERTY('BLOCK1.DATE_QUERY', VISUAL_ATTRIBUTE,'PAR_ITEMS');
        END IF;
    END;
    The previous code gives me this error: Illegal restricted procedure GO_BLOCK. How to solve OR Is there another way to achieve the same purpose Plz?
    Thank you
    Note: I'm using Oracle DB 10G, Forms 6i

    use Key-next_item instead of POST_CHANGE.
    It will work.
    Also SET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM, VISUAL_ATTRIBUTE,'DISPLAY_ITEMS'); will not work
    You have to use
    Set_Item_Instance_Property( SYSTEM.CURSOR_ITEM, SYSTEM.CURSOR_RECORD,
            VISUAL_ATTRIBUTE,'DISPLAY_ITEMS');

  • Weird LOV behaviour - delay when go_block,go_item

    Hi,
    I have a lov and after the user selects a value I go to another block and execute a query. Problem is that after I check the return value of show_lov and find it true, it takes some 3-4 secoonds for the code to execute if it had a go_item or go_block statement.
    To understand it better:
    a := SHOW_LOV('LOV_ALL_EMP');
         IF a = TRUE THEN
    IF HERE I PUT A GO_ITEM OR GO_BLOCK STATEMENT (WHICH IS NEEDED TO EXECUTE QUERY THEN) I TAKE A 3 SECOND DELAY FOR SOME REASON (ONLY AT THE FIRST GO_BLOCK OR GO_ITEM IF I HAVE 2 OR MORE I GET THE DELAY ONLY AT THE FIRST. OTHER STATEMENTS DONT STUCK.
    ELSE
    IF USER DOES NOT SELECT A VALUE DELAY DOES NOT OCCUR EVEN IF I USE GO_BLOCK
    END IF;
    To put it more generally:
    When I execute a the first GO_ITEM or GO_BLOCK statement AFTER the call of a LOV it seems to stuck for a little.. Even if statement refers to the block already focused. Also for the delay to occur, user have to select a value from LOV i.e. if user does not select a value (and show_lov returns false) this delay does not happen. Why?
    Any ideas on this strange behaviour please?
    regards,
    teo

    Well Steve,
    seems it's something like that. What I did is to check if it is the same on other PCs in here and it is the same, but unfortunatelly I wouldnt have the opportunity to check it on an OS other than XP home. Laptop I use for testing over the Web has Win 2000 but I use PSTN there so speed is totally different and I can't tell if there's a difference.
    Anyway I really don't have too much time to lose on that (it seems tricky) and moreover I don't think I'm using LOV in this case cause UI seems too poor for my requirements so I'll do a 'LOV' by myself.. So I will abandon this although its interesting. If later on I find anything else or be able to test it on another OS I'll get back on this post.
    I really appreciate your interest.
    For the history:
    Forms 9i on AS9i
    Win XP Home on which lies the AS9i (same used as a client)
    DB server 9i on other PC in the LAN

  • I am getting frm :40737 because go_block

    Hello World,
    I have a form with master block and details , the detail block as a tabular.
    I want the detail block to track the changes on the master , like if the user updated on a particular item on the master the detail keep the username and date.
    i put the below code as a POST-TEXT-ITEM trigger on the item on the master
    DECLARE
    V_TOT_RECORD NUMBER := 1;
    V_COUNT NUMBER := 1;
    BEGIN
    V_TOT_RECORD := GET_BLOCK_PROPERTY('BLK2', QUERY_HITS);
    GO_BLOCK('BLK2');
    FIRST_RECORD;
    WHILE V_COUNT <= V_TOT_RECORD LOOP
    IF :BLK2.CFT_PROC_STATUS IS NULL THEN
         :blk2.cft_serial:=V_COUNT;
         :BLK2.CFT_PROC_STATUS:=:BLK1.CFU_STATUS;
         :BLK2.CFT_USER_ID:=:BLK1.CFU_USER_ID;
         :BLK2.CFT_DATE:=:BLK1.CFU_DATE;
    END IF ;
    IF V_COUNT = V_TOT_RECORD THEN
    EXIT;
    END IF;
    IF V_COUNT = V_TOT_RECORD THEN
    EXIT;
    ELSE
    NEXT_RECORD;
    END IF;
    V_COUNT := V_COUNT + 1;
    END LOOP;
    END;
    but i am getting this error
    FRM:40737 illegal restricted procedure GO_BLOCK in POST-TEXT-ITEM trigger.
    Help please

    but i am getting this errorFRM:40737 illegal restricted procedure GO_BLOCK in POST-TEXT-ITEM trigger.>
    Take a look at the Forms Help on the Post-Text-Item trigger to see which built-ins are allowed. Calling a Restricted built-in like GO_BLOCK in certain triggers could cause endless loops and other adverse side-affects. You could use a Zero (0) millisecond Timer to execute the restricted built-in(s) as this is a common work-around, but I would recommend you look into other alternatives to tracking these changes that don't required you to navigate between blocks.
    Why do you need to have the Detail block keep track of changes in the Master block? Also, it is always helpful to at least include your Forms version when asking a question. :)
    Craig...

  • Problem with GO_BLOCK

    I have a procedure where I initialize some globals variables. In an other procedure, first, I display the content of one of my globals variables and I can see it. Second, I call the GO_BLOCK built_in and after, I display again the content of the same global variable but it is empty !!! What was happening ?

    Maybe some code in a When-New-Bloc-Instance, When-New-Record-Instance, When-new-Item-Instance ?
    Open the PL/SQL search dialog box, enter your GLOBAL name and search into your module.
    Francois

  • Cannot use GO_ITEM, GO_BLOCK in POST-CHANGE

    It is quite difficult to control the flow if I cannot use GO_ITEM, GO_BLOCK in POST-CHANGE trigger, is there alternative way?

    This really is an old chestnut. In the days of character mode many people used to put such code in key-triggers, which meant large numbers of triggers, possible loopholes, and a nightmare when it came to conversion to mouse navigation.
    After using various methods in the past, I have now standardised on using a FORM-LEVEL WHEN-NEW-ITEM-INSTANCE trigger in all of my new forms. Although I originally did this because I wanted to highlight the current field, I have since found it very useful for doing other things. If I want to navigate as a result of WHEN-VALIDATE-WHATEVER I set a variable to the name of the item I want to go to (could use a global but I prefer packaged variables). The W-N-I-I trigger reads the variable and does the GO-ITEM (and of course nullifies the variable).
    I also agree with Steve, POST-CHANGE is oldy-fashioned and not really the right thing to use.

  • Go_Block problem

    hi to all
    using form6i and run in client server:
    i have a button and trigger when button pressed.
    go_block('a');
    go_Block('b');
    the problem is when i click the button only one block appear. my canvas type is stacked and i changed the width and height of every canvass so it will fit the two blocks in the screen ..

    Wich one do you see? Try a show_view('canvas name here') after the go_block.

  • GO_BLOCK restricted procedure

    Hi, everyone:
    I have a multirecord block (on the multiblock form). One of the columns of this block has an LOV attached. When the value (selection) of the LOV gets changed, I would like to scan all the records of this block and search for the existance of a certain value at least in one of them. For that I created a little function that uses GO_BLOCK(...) and then first_record, next_record etc. Unfortunately, I can't use this function within POST-CHANGE trigger (or WHEN-VALIDATE-ITEM trigger either), since GO_BLOCK is a restricted procedure. Could you please, help me with the workaround this problem (Timer solution will not help me).
    Thanks a lot!
    Best regards,
    Eugene.

    You can do this as if by magic without navigating anywhere by using calculation properties.
    Create a control block item into which you will copy your value whenever you want to do a search.
    In your multi row block create a calculation formula item. For the formula write a little function taking the control field and the search field as input parameters, and returning 1 for a match otherwise 0.
    In the control block create a calculation summary item
    which sums the formula item. If this is ever >0 you have found a match.

  • Go_block doesn't wait after execute query.

    Hi All,
    I have an issue with go_block and execute query sequence. I have a code
    snippet which is in a program unit called form key-exeqry trigger. As per
    the expected behaviour the cursor should wait on the block for user input.
    But it just shows the block with the details and moves to the next code
    after execute-query. I added few debug messages in when-new-block-instance
    and pre-query triggers for the block, but none of them get executed.
    This block is being displayed through an another flow and there it waits .
    Please help!!
    Thanks in advance
    Ashok
    if l_cnt >0 then
    message('condition matched');pause;
         l_where := 'acct_no = 1114';
         go_block('sel_acct');
         clear_block(no_validate);
    set_block_property('sel_acct',DEFAULT_WHERE,l_where);
    execute_query;
         message('after sel_acct');pause;

    > As per the expected behaviour the cursor should wait on the block for user input.
    You are confusing Enter_Query with Execute_Query.
    If you change your Execute_Query to Enter_Query, the process will stop and allow the user to enter query values. However, your next line,
    message('after sel_acct');pause;
    will never execute.
    But, you should NOT code the Enter_Query command in a process called by Key-Exeqry, since the user needs to press Key-Exeqry after he enters query values. Your process above should be initiated by a Key_EntQry trigger instead.

  • When-Validate-Item and Go_Block/Execute Query dilemma

    Hey there folks -- Probably not a surprise question on this forum. I did try to search for this and came up with a few posts but did not find any solutions. Hopefully, I was also doing the correct way to search on this forum. If this is a post for the nth time on this issue, I apologize.
    So, I have 2 blocks:
    1. Control Block that contains the STUDENT_ID field (Database Item = 'N')
    2. Database block that contains the STUDENT_ID field (Database Item = 'Y' and many other fields)
    My goal is do an Execute_Query if User enters the Student ID and either presses TAB or places the MOUSE in the database block and display the record if it exists. As we know, a Go_Block is not allowed in When-Validate-Item. So, I went one step further to "simulate" this. The problem is that I am still firing the Execute-Query when the record has already been retrieved. Here is what I have so far. So, the Key-Next-Item trigger works fine if User enters a Student ID and presses tab. It also works fine if User clicks on the STUDENT_BK as the When-New-Block-Instance trigger fires which in turn calls the Key-Next-Item. The problem occurs when after record has been retrieved and User clicks on control.student_id and then comes and clicks on the STUDENT_BK, the KEY-NEXT-ITEM trigger fires again.
    Suggestions or pointers would be more than welcome.
    Thanks!
    CONTROL.student_id.Key-Next-Item
      if :control.student_id is not null and :SYSTEM.BLOCK_STATUS != 'CHANGED' then
        next_block;
        clear_block(NO_COMMIT);
        execute_query;
      else
        show_alert('Please enter Student ID');
      end if;
    STUDENT_BK.When-New-Block-Instance
    go_item('control.student_id');
    do_key('next_item');

    Yeah... I wrote before I tried it out. The GET_ITEM_PROPERTY('ITEM', previousitem) didn't work the way I thought it did. After I posted that, I tried it out and it was a complete failure.
    I guess what I am thinking now, is in your STUDENT_BK block, do you only want to EXECUTE_QUERY if the :STUDENT_ID does not match the :CONTROL.STUDENT_ID? If that is true, then all you would have to do is to change your KEY-NEXT logic to include the
    if STUDENT_BK.STUDENT_ID != :CONTROL.STUDENT_ID then
      -- original logic
      go_item('control.student_id');
      do_key('next_item');
    end if;The more I think about it, this should work for you. You said that you had two requirements: Entered a student id in the control block and tabbed or entered the database block. If you add the check of the student id then that should take care of your second requirement. If they enter the database block and the id's don't match then it will execute the query, else they already have the record displayed for them so you don't need to do anything.
    Edited by: MLBrown on Nov 19, 2012 3:08 PM

  • Help: How to call go_block from an item level trigger?

    I am working on a form it needs to call go_block('blk_name') after a text item filled in data.
    I tried post_item and when_validate trigger, it gave me error:
    Illegal restricted procedure GO_BLOCK in POST_ITEM trigger, etc.
    Any suggestions?
    Thank you in advance.
    Jimmy

    Thanks Francois.
    I read Re: problems with GO_BLOCK from  post-text, when-validate-  triggers
    The form that I am working on requires that user put in an ID through a control item. Once the form see the ID changes, it conducts a query through a stored procedure to get the customer information need. User can make as many changes as s/he wants. Will timer_expires work?
    Thank you again.
    Jimmy

  • Facing probolem in s_tcode

    hi,
    after running su53 i am getting missing authorization of in object s_tcode and when i am trying to insert the same tcode it is showing, tcode does not exists.
    please let me know why i am not able to add that tcode even though it is there in missing authorization.
    regards,
    Tarun Chandel,
    SAP Basis Security Consultant
    <telephone_number_removed_by_moderator>
    Edited by: Julius Bussche on Aug 28, 2008 9:40 AM

    >
    Sneha Kulkarni wrote:
    > Try this method :-
    >
    > You can add missing tcode manually in S_TCODE authorization objects in authorization tab of the role.
    >
    > Hope this will work !!
    > Thanks,
    > Sneha
    Do not do this!
    Why do you think that in later releases SAP has locked S_TCODE from manual updating (unless you manually insert another instance of S_TCODE object)?
    We need to find the root of the problem before deciding what to do.  It may be that this additional t-code be added into SU24 for the original transaction or alternatively configuring SE97 depending on the situation....there are plenty of option depending on the actual cause.

  • E71 Bluetooth probolems

    I have an E71 and I am having bluetooth issues.
    This happened firstly using my Navman handsfree and now my handsfree through my Sony car stereo.
    It all conects up fine works great and then after about two weeks stops connecting when i get in the car.
    I can't get it to connect at all tried deleting the devices on everything and re pairing but it will no longer pair.
    I have paired another phone to the car stereo so it must be the phone. Is there anything i can do settings wise or does
    it sound like a repair is needed to the phone.
    Please help
    Thankyou

    I too am having problems with my E71 connecting to my Navman via bluetooth. All was fine for a couple of weeks, now I am unable to connect. If anyone could help that would be great...

Maybe you are looking for

  • IPod App quits unexpectedly after upgrade to OS4...?

    Does anyone know what to do about this: iPod App starts up and stays on screen for 2-3 seconds and then just quits. Also my podcasts from previously are no longer there - that's ok with me but may not be a good sign...? Thanks for any advise!

  • How to burn decent resolution slide show onto DVD ?

    First of all I'm a newbie to this (PS8 Elements and Premier). I have a slide show with music in "Slide Show Editor". When I view this slide show in 'Full Screen Preview" I see a decent resolution but when I burn the slide show onto a DVD the resoluti

  • Logic Pro 9 asking for original serial number

    Hi Having Logic authorization problems. I just bought a new macbook pro. I cloned the harddrive my old macbook (running Logic 9 in OSX Lion) and then cloned to the new macbook pro. Whn I try to open Logic Pro 9 - it asks for a serial number. When I e

  • There was an error in my update, now my iphone isn't even letting me restore to my old back up.  Agh...help :(

    I was updating my iphone through my itunes and part way through the update it said there was an error.  It put me in to some recovery mode immediately following that but wouldn't let me restore it to my back up I had done just prior to it.  I have lo

  • Adding Premade buttons in CS5

    Hello,i'm pretty new over here and i have an problem.I'm currently using Adobe CS5 Dreamweaver and i cannot add the flash buttons which i remember were included into dreamweaver mx400 so i took a look over my cs5's directory and found these buttons :