Toolbar block trigger problem

Hi,
I have a toolbar block but I noticed that some triggers like pre-block or when-new-block-instance do not fire.. Anybody know why?
What I want to do is put code right after block is created in order to deactivate some buttons. Where can I do that from?
regards,
teo

I don't know if to mark this question as answered or not as I would love to have a definitive to the solution.
But...
It actually fixed it's self... which I can't explain... I'm guessing it's the good old ask for help on a forum after struggling for days to find a solution and it magically fixes it's self the moment you post asking for help.
It was a fresh install on the new MacBook Pro, all the updates so I'm not sure what caused it.
Thanks again for your help.

Similar Messages

  • Populate Series ID in header using block trigger

    Hi Gurus,
    I need your help.
    What is the correct block trigger that i should use in order to populate a series id in a field
    only when the NEW record button in the toolbar.
    Hoping for your reply.
    Thanks

    orville wrote:
    What is the correct block trigger that i should use in order to populate a series id in a field
    only when the NEW record button in the toolbar.
    Since you're using only the button to add a record, you can either include the code in your button trigger and initialize the ID or you can use the WHEN-NEW_RECORD-INSTANCE trigger and test the record status.
    Something like this:
    IF :SYSTEM.RECORD_STATUS IN ('CHANGED', 'NEW') THEN
      :BLOCK.SERIAL_ID := :SYSTEM.TRIGGER_RECORD;
    END IF;This is a simple example, you can further evolve the code to suite your requirements.
    Tony

  • How to activate JDBC debugging for SPRING 3.1? Oracle trigger problems ...

    Hi,
    I have some trigger problems. I created a trigger to update a certain column each time a new record is inserted or an existent record is updated. I use Oracle 10g. If I create the trigger and execute an insert query via the XE client everything works fine. However, when I use a spring 3.1 setup with Hibernate and OJDBC driver, I get an
    java.sql.SQLException: ORA-04098: trigger 'LOCALUSER_PROP_TRIG' is invalid and failed re-validation
    And if I execute a show error trigger query I get an invalid SQL query error.
    I can easily activate Hibernate debugging and I can see that the prepared statement by Hibernate is just fine, but I was wondering if I could see the full sql sent by the JDBC driver to the server. Maybe seeing the actual query sent to the server would provide new insight of what could be wrong in the Hibernate setup. Does any one what could be wrong and eventually how could setup jdbc to output debug info? Thanks a lot,
    Cristian

    Which platform is the database running on ??
    Other things you should check -
    when debugging the EJB, JDev
    3.1 looks through your IIOP connections to find the one to use.
    Make sure that the IIOP connection that JDev is using for the debugging matches the IIOP connection that the EJB client application is using.
    raghu
    null

  • Mutating DB Trigger Problem

    Hello all, i have a ' Mutating DB Trigger Problem' for the following Trigger :
    =============================================
    CREATE OR REPLACE TRIGGER ASSIUT.EMP_ATTENDANCEE_MONA
    AFTER INSERT
    ON ASSIUT.ACCESSLOG
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    V_COUNT CHAR(2);
    --V_COUNT_OUT CHAR(2);
    BEGIN
    IF :NEW.INOUT = 'IN' THEN
        INSERT INTO EMP_ATTENDANCEE (EMP_ID, DATE_IN ,DATE_OUT ,TIME_IN ,TIME_OUT)
         VALUES (TO_NUMBER(TO_CHAR(:NEW.employeeid,99999)),
                 TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'),       -- DATE_IN
                 NULL,
                 TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'),      -- TIME_IN
                 NULL );      -- TIME_OUT
                     SELECT COUNT(employeeid )
                     INTO V_COUNT
                    FROM ACCESSLOG
                    WHERE employeeid =:NEW.employeeid
                    AND LOGDATE =:NEW.LOGDATE
                    AND  LOGTIME  =:NEW.LOGTIME
                    AND INOUT ='IN';
                    IF V_COUNT > 0 THEN
         INSERT INTO ATT_INCOMPLETE  (  EMP_ID , ATT_DATE , ATT_TIME ,  ATT_FLAG)
         VALUES (TO_NUMBER(TO_CHAR(:NEW.employeeid,99999)),
                 TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'),       -- DATE_IN
          TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'),        -- TIME_IN
          1); -- check in
          END IF;
    ELSIF :NEW.INOUT = 'OUT' THEN
        UPDATE  EMP_ATTENDANCEE
        SET           DATE_OUT   =  TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_OUT,
                      TIME_OUT   =   TO_DATE(:NEW.LOGTIME,'HH24:MI:SS') -- TIME_OUT
        WHERE   EMP_ID           =   TO_NUMBER(TO_CHAR(:NEW.employeeid,99999))
        AND DATE_IN =  (SELECT MAX (DATE_IN )
                        FROM EMP_ATTENDANCEE
                        WHERE EMP_ID = EMP_ID
                        AND   DATE_OUT IS NULL
                        AND   TIME_OUT IS NULL ) ;
                  SELECT COUNT(employeeid )
                     INTO V_COUNT
                    FROM ACCESSLOG
                    WHERE employeeid =:NEW.employeeid
                    AND LOGDATE =:NEW.LOGDATE
                    AND  LOGTIME  =:NEW.LOGTIME
                    AND INOUT ='OUT';
                    IF V_COUNT > 0 THEN
    INSERT INTO ATT_INCOMPLETE  (  EMP_ID , ATT_DATE , ATT_TIME ,  ATT_FLAG)
         VALUES (TO_NUMBER(TO_CHAR(:NEW.employeeid,99999)),
                 TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'),       -- DATE_IN
          TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'),        -- TIME_IN
         0); -- check in
    END IF;
    END IF;
      EXCEPTION
       WHEN OTHERS  THEN RAISE;
    END EMP_ATTENDANCEE_MONA ;The above Trigger generates the following error:
    ORA-04091: table ASSIUT.ACCESSLOG is mutating, trigger/function may not see it
    ORA-06512: at "ASSIUT.EMP_ATTENDANCEE_MONA'", line 65
    ORA-04088: error during execution of trigger 'ASSIUT.EMP_ATTENDANCEE_MONA'i want an easy and a straight forward solution to this problem which occured on selecting or manipulating from the same table i triggered it.
    Best regards,
    Abdetu..

    Create a package
    CREATE OR REPLACE PACKAGE PK_TRIGGER IS
      PROCEDURE PR_BS;
      PROCEDURE PR_ARIU(i_vcType IN TABLE.COLUM%TYPE, i_nEmpId TABLE.COLUM%TYPE, i_vcLogDate IN TABLE.COLUMN%TYPE, i_vcLogTime IN TABLE.COLUMN%TYPE);
      PROCEDURE PR_AS;
    END;
    CREATE OR REPLACE PACKAGE BODY IS
      TYPE tData IS RECORD (
        vcType     TABLE.COLUMN%TYPE,
        nEmpid     TABLE.COLUMN%TYPE,
        vcLogDate TABLE.COLUMN%TYPE,
        vcLogTime TABLE.COLUMN%TYPE
      TYPE tDataList IS TABLE OF tData INDEX BY BINARY_INTEGER;
      lData tData;
      PROCEDURE PR_BS IS
      BEGIN
        lData.DELETE;
      END;
      PROCEDURE PR_ARIU(i_vcType IN TABLE.COLUM%TYPE, i_nEmpId TABLE.COLUM%TYPE, i_vcLogDate IN TABLE.COLUMN%TYPE, i_vcLogTime IN TABLE.COLUMN%TYPE) IS
        iPos PLS_INTEGER:=lData.COUNT+1;
      BEGIN
        lData(iPos).vcType:=i_vcType;
        lData(iPos).nEmpId:=i_nEmpId;
        lData(iPos).vcLogDate:=i_vcLogDate;
        lData(iPos).vcLogTime:=i_vcLogTime;
      END;
      PROCEDURE PR_AS IS
        CURSOR crCheck(i_nIdentnum IN NUMBER) IS
          SELECT 1
            FROM <YOURTABLE> A,
                 <YOURTABLE> B
           WHERE A.IDEN_NUM=B.IDENT_NUM
             AND (   A.BEGIN_DATE BETWEEN B.BEGIN_DATE AND B.END_DATE
                  OR A.END_DATE BETWEEN B.BEGIN_DATE AND B.END_DATE
        iPos PLS_INTEGER;
        nDummy NUMBER;
      BEGIN
        iPos:=lData.FIRST;
        LOOP
          EXIT WHEN iPos IS NULL;
          -- Do whatever you want with the data in the record
          -- Process next record
          iPos:=lIds.NEXT(iPos);
        END LOOP;
        lIds.DELETE;
      END;
    END;replace TABLE.COLUM%TYPE with appropiate table and column
    Now create a
    - Before Statement trigger on your table calling PK_TRIGGER.PR_BS;
    - After Insert on Update for each row Trigger calling PK_TRIGGER.PR_ARIU(...values...);
    - After Statement trigger on your table calling PK_TRIGGER.PR_AS;
    Hope the code compiles for i have no database at hand.
    Andreas

  • I'm having "blocked plugin" problems in mail after 10.7.5 update. Anyone else having this problem?  Fixes?      Thanks!

    I'm having "blocked plugin" problems in mail after 10.7.5 update. Anyone else having this problem?  Fixes? 
    Thanks!

    I'm having "blocked plugin" problems in mail after 10.7.5 update. Anyone else having this problem?  Fixes? 
    Thanks!

  • BT Toolbar installer - ongoing problem - STILL ONG...

    I have not had a reply to my last post in the thread:
    http://community.bt.com/t5/BB-in-Home/BT-Toolbar-installer-ongoing-problem/td-p/39872
    As the problem has returned with the newest version of the toolbar, I thought I would start a new thread using my last post to the above thread .
    In fairness I thought the problem had been sorted as a patch was issued for V:8.1.0.51, Build: 2009.9.20.2, so maybe the thread was no longer watched.
    To my amazement, this patch has not been incorporated in the latest version. Quite frankly I'm gobsmacked at the incompetence. Anyway, here it is:
    Have just installed the latest version of the BT Toolbar:
    V:8.3.3.42
    Build: 2010.11.15.1
    Although I had ticked "Automatically download and install toolbar updates" in my old version, I only found out about the new version by reading a post in "Answers". The links below refer to older "7" versions but following the links I came accross "download latest version" and discovered V:8.3.3.42. So it appears that the auto-update facility doesn't work either!
    http://social.answers.microsoft.com/Forums/en-US/InternetExplorer/thread/dd948e16-b74d-4e9c-a0fc-268...
    http://help.yahoo.com/l/us/yahoo/toolbar/basics/toolbarms-01.html
    Guess what? After a shut down and reboot, I had to sign in with my Windows Live ID - AGAIN!
    It would appear that the patch released to cure this problem in the old version has not been incorporated in the new version.
    Stroll on. I find it hard to believe that the newest version has been released with the same error!!!!!! 
    I have had to hack the registry to correct this - AGAIN
    Below is the post that explained the original problem. Although the numbers of the HKEY_USERS are slightly different now (HKEY_USERS\S-1-5-21-73586283-879983540-1606980848-1011), the problem remains the same. The toolbar installer changes AppData to =%AppData% instead of =%USERPROFILE%\Application Data.
    And I quote: 
    "When Yahoo toolbar gets installed it sets the following registry value:
    [HKEY_USERS\S-1-5-21-796845957-926492609-725345543-1003\Software\Microsoft\Windows\CurrentVersion\Exp lorer\User Shell Folders]
    AppData = %AppData%
    The problem here is AppData should actually be the following
    AppData = %USERPROFILE%\Application Data
    So when MSN or other apps that use that registry key go to save their data it gets lost.
    So the solution is simple, run regedit and go to
    [HKEY_USERS\S-1-5-21-796845957-926492609-725345543-1003\Software\Microsoft\Windows\CurrentVersion\Exp lorer\User Shell Folders]
    and set the value AppData to a data value of %USERPROFILE%\Application Data"

    Hi Smirnoff
    Thanks for flagging this issue - I'll raise this with the team and get back to you.
    Sorry you are still having a problem with this.
    Kerry
    Retired BTCare Community Manager - StephanieG and SeanD are your new Community Managers
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Pl/sql block on block trigger

    I have a pl/sql block in when-new-block-instance trigger on forms 10g.
    Basically, these trigger fires after user selection of the search criteria block.
    Exist one condition which is totaly important:
    One of the search criteria is a list of document type. So the user, can check one, all or none of the doc types.
    See this pictures:
    doc type options: TRRLS, ADS, SIQD
    If the user check only the TRRLS, the next block will display only the record match the doc type selected. If the user check none doc type, all the record will be displayed.
    For those purpose, in the trigger I talk before (when new block instance) in the results block, I use two cursors, one for all the record (if the user check none doc type). And the other cursor for the records with specific doc type.
    The first one works just fine, but the second one, do nothing. Part of the where in the cursor is the following:
    where ........... and
    dim.doc:typ IN (:global.doc_typ_where_clasue) and
    The value of the :global.doc_typ_where:clause is the list of all the doc type selected by the user. In example, if the user check TRRLS and ADS, the global variable will have 'TRRLS', 'ADS'.
    But it doesn't work..... I don't know why....
    Any idea to pass a list of doc to a cursor and use in a where clause dynamically.
    thanks a lot,
    abdel.

    If you search for "dynamic in list" on http://asktom.oracle.com/ you'll find a solution to exactly the same problem you're facing. The solution is:
    1. Strip the string into an array
    2. Use the array in the where clause.
    But maybe you can also create your own where clause and use that one by setting set_block_property( <block>, onetime_where, <where clause>)
    HTH
    Roel

  • Post query trigger problem in master detail oracle forms

    Hello experts,
                        I am new in oracle forms n using Fission middleware 10g with oracle forms 11g at windows 7 platform.
    I have made a master detail form using a tab canvas.There is a database column STUDENTID and it is in my student tab with a TBL_STUDENTENTRY data block.Now I Have an another tab named previous_education with TBL_STUDENT_PREVIOU_EDU datablock here there is also a database column STUDENTID and corresponding field in my  previous_education TAB under TBL_STUDENT_PREVIOU_EDU  datablock.Now i want to add a display item to show  student name corresponding to STUDENTID.For this I have tried to make a select query in TBL_STUDENT_PREVIOU_EDU data block POPST_QUERY TRIGGER.
    begin
    select STUDENTNAME into :TBL_STUDENT_PREVIOU_EDU.STD_NM   from TBL_STUDENTENTRY where STUDENTID=:TBL_STUDENTENTRY.STUDENTID;
    end;
    But, This trigger is not fired at runtime,Please suggest me what is going wrong and give me the solution.
    Thank You
    AADITYA.

    http://www.club-oracle.com/forums/post_query-problem-in-oracle-forms-t9751/#post23794 ,  This is the link at where  I have tried to show my problem with the help of an image,Please get the link:
    thanx
    regards Aaditya.

  • Post-trigger problem in master detail form.

    I have designed a master detail form having two data blocks.
    in detail data block there is a post-query.
    when i tried delete one record in master block
    an error occurred ie
    'frm-40654. Record is updated by another user
    re-query to see changes'.
    in detail block there are 3 non database items.
    when i delete the post-query trigger the record is deleting properly.but the post-query trigger is also needed to display the non database item values. please give me a solution to tackle this problem.

    Hi,
    Even though yout items are non-database items, when you assign a value to them forms sets the block status to "CHANGED".
    Add the following lines add the end of your post-query trigger to reset the block status to "QUERY"
    set_record_property (GET_BLOCK_PROPERTY('YOUR_BLOCK_NAME',CURRENT_RECORD)
    ,name_in('system.cursor_block')
    ,STATUS
    ,QUERY_STATUS
    Hope this helps,
    Hugo

  • Checkered / Block Screen Problems. What should I do?

    I have had my iMac G5 w/built in iSight for quite a while now and suddenly my screen has become quite erratic. The screen begins with just finder items such as the top toolbar, the dock, and application switcher checkering and then the entire screen starts to become checkered. This does not happen gradually, but suddenly. When first turning on the computer this block problem is not prevalent, but after a certain period of time the problem becomes visible. I don't know if this is an internal problem or what but I would like to know what I should do. Please see pictures posted below of my problem and hopefully somebody can point me in the right direction!! Thank you very much
    http://i255.photobucket.com/albums/hh128/chapwag1001/Picture1.png
    http://i255.photobucket.com/albums/hh128/chapwag1001/Picture3.png
    http://i255.photobucket.com/albums/hh128/chapwag1001/Picture4.png
    http://i255.photobucket.com/albums/hh128/chapwag1001/Picture5.png
    Thanks in advance!

    >CREATE DATABASE [@DBname]
    That does not work. You have to use dynamic SQL:
    http://www.sqlusa.com/bestpractices/dynamicsql/
    Kalman Toth Database & OLAP Architect
    IPAD SELECT Query Video Tutorial 3.5 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Post-change trigger problem

    I have problem with post-change trigger, i'm using Forms 10g
    I have two block, one is database block and the other is non-database block for example A is Nondatabase block and B is Database block, I have written commit_form built-in in Key-Next-Item of a item in B(database) block. When it is getting executed commit_form built-in firing the post-change trigger of a item in A(Non-database) block. I dont know why it is firing and I dont want the post-change trigger to fire (we are not assigning any value to that item in A block during commit_form).
    Can anybody help me on this..
    Regards
    Radha

    when you issue a commit_form, forms will validate all items in all blocks which re not valid at that moment. This also occurs for non-database-block.
    The question is why is the item not valid ? Are you putting something in it in some other trigger? If so, you could explicitly set the itemstate to valid with a
    SET_ITEM_PROPERTY('BLOCK.ITEM', ITEM_IS_VALID, PROPETY_TRUE);btw.. you should not use the POST-CHANGE-trigger for validations etc. its better to use the WHEN-VALIDATE-ITEM-trigger.

  • Mouse Leave Trigger Problem

    hi,
    I am using Oracle 9i Forms on windows 2000 Server.
    My Form [32 bit] Builder Version is : 9.0.2.7.0
    I am facing a problem using the WHEN-MOUSE-LEAVE Trigger.
    I have applied this trigger on an ITEM in a DATA BLOCK but the Trigger is not fired when i leave the item using the mouse.
    Can any one guide me, as i may be missing something important.
    Thanks.
    Samir Farooq.

    Are you running on the web ? Mouse movement triggers are disabled on web forms as they generate too much network traffic.

  • BAPI inside WF event trigger problem

    Hi Guys,
    Here's my problem:
    I'm triggering a WF from the Business objects BUS2032, event CHANGED (for sales orders). But the first step in the workflow is to block the order for delivery, so I'm using the BAPI BAPI_SALESORDER_CHANGE to modify the field delivery block of that sales order.
    The problem is that when the BAPI is executed, the event CHANGED from the BO BUS2032 is triggered, so the WF is triggered again, and so on...it's like a loop.
    So my question is, is there a way to modify the sales order inside the WF without triggering any event inside the WF?
    Thanks!

    Hi MatiasAZ,
      Change standard code to not trigger the event is not recommended.
      Alternatively,You can put a check in your workflow to complete itself if there is another workflow is running for the same sales order.
       Or you can also put filter function module on the event linkage via transaction SWETYPV not to trigger the event if there is a workflow running for that sales order.
      Transaction SWI6 can tell you that any workflow with specific object is running.
    Chaiphon

  • BFFA0020; Trigger problem?

    I am using labview to acquire a waveform generated by a function generator. I connect the function generator to the Tektroniks TDS 784D scope and connect the scope via GPIB to my computer. Somehow I cannot acquire the waveform. The error that I get is: 
    Tktds7x4 Configure Channel.vi<ERR>
    Driver Status: (Hex 0xBFFA0020) Unknown channel or repeated capability name.
    Secondary Error: (Hex 0xBFFC0006) Parameter 6 out of range, or error occurred while setting Parameter 6.
    Elaboration: Probe Attenuation
    I have no idea how I can solve this error/problem. I know that it goes wrong in the triggering but it should have a trigger. 
    The program I use worked before, but then I was using a GPIB to USB connector.
    Attached I send the block diagram of the program I use.
    Hope that someone can help me.
    Attachments:
    Lbvw Block diagram.PNG ‏71 KB

    It sounds like there is a configuration setting mistake, as the driver is giving the error.  It sounds like the probe value in your control is not in the range of accepted values.  
    Which version of LabVIEW are you using?  I'm using LabVIEW 2011 SP1 and when I installed the driver for your scope, it installed three example VI's:
    "TKTDS 7XX Getting Started.vi"
    "TKTDS 7XX Application Function.vi"
    "TKTDS 7XX Application Statistics.vi"
    Try running those examples and see if the error still occurs.  You could also try updating the scope driver, if its not the latest version.
    Product Support Engineer
    National Instruments

  • Which block trigger to use?

    I have a block.
    I wish that when a user click on a menu button, it will be brought to the form containing a block by using call_form function.
    and i wish that before the form gets to the block, i wish to see whether a parameter has any value in it.
    if it does not it will do something.
    Now the tricky issue is where i should put the trigger on the block?
    I tried WHEN-NEW-BLOCK-INSTANCE, POST-QUERY, PRE-QUERY... all do not work.
    Which trigger should i place on the block so that every time it displays itself, it will do that check of the parameter?

    before the form gets to the block, i wish to see whether a parameter has any value in itUse when-new-form-instance. You only need to check it once when calling the new form, not every time you get to the block.
    If you still have problems, post your code here, so we can see what you are doing to check whether a parameter has any value in it.

Maybe you are looking for

  • MY PHONE WON'T CONNECT TO BT OPENZONE FON BECAUSE OF BLANK POP UP PAGE

    Hi I have an iPhone 5 and I am trying to connect my phone to BT Openzone FON When I try to connect to the network a pop up appears where I have to fill in my details so I am able to use the internet connection But for a while now whenever the pop up

  • AIR iOS how to create folder in the documents directory

    Hi, I'm wanting to create a sub folder within the apps document directory that I can then save files into. I have the functionality in place to save the files, I just need to know how to create a sub folder first. Would anyone know if this is possibl

  • Cache XSLT in Servlets

    Guys, I have written a servlets which create an xml file .... depends on JSP form... i want to run my xslt on it and produce .csv and .html..... I have two xslt file... I was wondering if i can store xslt file in cache... because it's taking to long

  • Error when deploying ear to MAS managed AS 11g.

    I posted this on General, but, I guess this is the right forum for this. I used "asctl deployApp ..." to deploy ear to MAS mode AS11g and encountered a following error. Connected to: Oracle Fusion Middleware Administration Server Release 11.1.1.0.0 M

  • I need the serial number for a disc download of Adobe Acrobat XI.  Where do I get it?

    I need the serial number before I can finish the set up from a disc.  Information in the box shows a go to  www.adobe.com/go/get serial.  There is nothing there that helps me.  I can't find the serial number on any of the packaging.  How can I get th