FK Arc Trigger

In the preferences there is an option "Data Modeler > DDL > Create Triggers for FK arc constraints".
I think Oracle recomments to use constraints instead of triggers where it is possible.
Can anyone from the Development team tell me why here is just the option to create triggers and not also the option to create table level constraints for FK arc constraints?
If it is possible I'd like to have this option. My suggetion is to use the following check constraint construction for creation:
nvl2(FK_IDx,1,0)+nvl2(FK_IDy,1,0)+...+nvl2(FK_IDz,1,0)=1
or with not only single FK columns:
nvl2(FK_IDx1,1,0)+nvl2(FK_IDx2,1,0)+nvl2(FK_IDy,2,0)+...+nvl2(FK_IDz,2,0)=2.
More abstract:
let n be the number of foreign keys in the arc
let IDik be the k-th column in the i-th foreign key
let IDiMax be the number of columns in the i-th foreign key
let ArcMax be the maximum of columns used in a foreign key in the arc
then the constraint should be
nvl2(ID11,1,0)+nvl2(ID12,1,0)+...+nvl2(ID1Max,ArcMax-1Max+1,0)+
nvl2(ID21,1,0)+nvl2(ID22,1,0)+...+nvl2(ID2Max,ArcMax-2Max+1,0)+
...+
nvl2(IDn1,1,0)+nvl2(IDn2,1,0)+...+nvl2(IDnMax,ArcMax-nMax+1,0)
=ArcMax
Please tell me if that would be possible (and maybe available in next Version) or why it is better to user triggers instead.
Thanks
/c

The Data Modeler forum is at:
SQL Developer Data Modeler

Similar Messages

  • SQL Data Modeler bugs (or only misused?)

    Hi,
    I think I ran into some modeler bugs and missing features ...
    BTW: is there a place where all the known bugs are listed?
    * although "no action" was selected in "General Options - Model - Relational" for foreign keys all the foreign keys are created with
    "not deferrable" (well, why not, if it makes the modeler happy) and
    "on delete set null" (thats not what I'd call "no action")
    * DDL statements for indexes lack the schema name
    * newly generated foreign relations are not always displayed in the relational model
    * DDL preview for syncing physical model with relational does not (always) work (well - so far it worked once)
    steps taken: File - Import - Data dictionary, selected objects for import, correct target model chosen, "swap target model" checked
    * foreign keys in unique constraints are always set to "not null" (in logical and physical model)
    * no trigger/constraint created for ARCs (I am not sure about this, but IIRC I did not see anything making an ARC really work)
    Or do ARCs simply not work yet?
    * modeler hangs sometimes (e.g. when opening "Save as" dialog etc.)
    * dialogs are opened outside visible pane when the position of monitors is changed (the dialogs seem to remember their last position)
    * sequences (physical model withing relational model) are loosing their user
    * missing multi schema capabilities :-(
    * the layout capabilities - pardon my french - suck
    Especially that the boxes and lines seem to wander around from one usage to the next (entities aligned with grid - next start the entities are no longer aligned).
    And if you ever need to save/export the model somewhere else all the references stick to a single connection point.
    Not to mention a simple move of a box ...
    Thank you for your effort
    Peter
    Edited by: stueckl on Sep 3, 2009 9:41 PM

    Hi Philip,
    sorry for not answering quite a time ...
    Just some prerequisites ;-) ...
    - Target database: Oracle 10g R2 (10.2.0.4)
    - Modeler version 2.0.0 build 570
    - model creation method: logical model, relational model, (physical model), Database objects
    - OS WindowsXP German, SP3
    - JDK Sun Java 1.6, build 1.6.0_16-b01
    * nullable FK column in unique keys
    meanwhile I found out, how to achieve that - but IMHO the steps to take are quite cumbersome
    1) make a FK relation with "target optional" checked on the Cardinality page of the FK properties
    2) open entity properties, check attributes of FK column (it says: nulls allowed - the checkbox cannot be changed)
    3) got to unique identifiers page and add a unique identifier
    4) open the unique identifier property dialog and add the foreign key
    5) close both property dialogs
    6) reopen the entity property dialog, check attributes of FK column (it says: no nulls allowed - the checkbox cannot be changed)
    7) check the FK properties: it still says: target optional (it is checked)
    8) check the graphical representation of the FK key: dashed line at target entity (meaning: optional)
    9) create the relational model: the FK column is created with "not null"
    10) go back to logical model
    11) change FK property to: target mandatory (uncheck "target optional")
    12) create relational model
    13) change FK property to: target optional (check "target optional")
    14) create relational model
    15) SUCCESS! the foreign key column is now nullable
    BUT: you never ever must change ANY of the entities properties or you must redo steps 11 to 15
    * "no action" of FKs
    I will look into that. Thanks for the suggestions.
    * DDL statements for indexes
    Sorry for being imprecise ... I was talking about automatically generated indexes (for unique and foreign keys).
    Those don't show up in the index listing of the tables in the physical model (probably, because they are automated).
    But why do I have to set the default schema for indexes again? The tables get the schema information for the default schema (General Options - Model - Physical) but not the indexes :-(.
    Generated DDL snippet:
    CREATE TABLE ZCBC1ST1.ZCBRAGIT_AGENDAITEM ( ...
    CREATE UNIQUE INDEX ZCBSAgIt_U1X ON ZCBC1ST1.ZCBRAGIT_AGENDAITEM ( ...
    Same for FK indexes. And the unique index property page in the physical table section does not let me specify a schema owner (OK for me, because the unique key is created by an "alter table" statement).
    * ARC trigger
    My bad - I only checked "DDL preview" of the table, which doesn't show the ARC trigger. The complete generation does. Sorry.
    * "missing multi schema capabilities" and "sequences loose owner"
    Please excuse a newbie blush.
    I just found out I can change the table owner using the physical model capabilities (I guessed I used way too long PowerDesigner V6 ;-) ).
    BUT ...
    The newly created user does not "survive" a "save all - close all - open" sequence on "Physical Models" ... only closing the app or saving the Oracle10g physical model makes the user persistent.
    And also ... if the new table or sequence owner is the first in the drop down list on the property dialog, the user is replaced by an automatically created new user (e.g. User4, User5, and so on).
    Example:
    * I have three defined users and the standard "MDSys" and "Public".
    * My three users are named ZCBC1ST1, ZCBCCore and ZCBCDial (those names are because i need to follow naming rules).
    * ZCBC1ST1 is my default physical model user, which was set in "General Options"
    * ZCBC1ST1 is the first in each drop down list.
    * I have some sequences named Seq1, Seq2, Seq3 and Seq4
    * Seq1 was given to ZCBC1ST1, Seq2 to MDSys, Seq3 to ZCBCCore and Seq4 to ZCBCDial
    * saved and closed the Oracle10g physical model and reopened it
    * Seq1 now has User4, but the other have still the users they were attached to
    The same applies to tables - I am unable to give a table to the first entry of the user list.
    Solution I found to this problem ...
    1) remove the default physical user in "General Options" (and never ever set it again)
    2) create a explicit user (with the name of the prior default user)
    3) manually reattach all objects to this user sigh
    4) so far not a problem with automatically generated indexes, because they don't use the default user anyway
    * newly generated FKs not shown in relational model
    I had this odd behaviour several times.
    1) Logical model: adding a new FK relation
    2) giving the reference-column a pretty relational name
    3) generating the relational model
    4) rather often the new column shows up in the relational model but the arrow for the new foreign key does not.
    5) only after i open the properties dialog of the missing foreign key the arrow is shown in the model
    6) happens often to sub-models - less often to the top-model
    * model syncing (Oracle10g with modeler)
    As Ms. Harper stated in one of her posts (and she even made a video tutorial IIRC) it should be possible to sync a Modeler model with the Oracle10g contents.
    AFAIR the tutorial showed only how to sync the model with the contents but not vice versa.
    I tried to achieve this checking the "swap target model" check box (that's the important thingy) of the import dialog. Everything worked fine besides there is only a preview of DDL statements available but no "Merge" or "Create DDL Statement". And exactly that preview doesn't seem to work anymore. No matter what objects I select, I am unable to see any DDL statements to upgrade the Database.
    I don't know why, but it worked again just before. I will keep an eye on this. ;-)
    So much for now ...
    Thank you for your effort
    Peter
    Edited by: stueckl on Sep 9, 2009 1:03 PM

  • SQL Developer - Data Modeler - Trigger for FK arc constraints

    In the preferences there is an option "Data Modeler > DDL > Create Triggers for FK arc constraints". I think Oracle recomments to use constraints instead of triggers where it is possible. Can anyone from the Development team tell me why here is just the option to create triggers and not also the option to create table level constraints for FK arc constraints? If it is possible I'd like to have this option. My suggetion is to use the following check constraint construction for creation: nvl2(FK_IDx,1,0)+nvl2(FK_IDy,1,0)+...+nvl2(FK_IDz,1,0)=1 or with not only single FK columns: nvl2(FK_IDx1,1,0)+nvl2(FK_IDx2,1,0)+nvl2(FK_IDy,2,0)+...+nvl2(FK_IDz,2,0)=2. Please tell me if that would be possible (and maybe available in next Version) or why it is better to user triggers instead.
    Thanks
    /c

    The Data Modeler forum is at:
    SQL Developer Data Modeler

  • Arc is not implemented for SQL Server 2005 physical model

    I added the Arc in my relational model, which is supposed to provide that references are mutually exclusive (so only one refering column can be not null). However there is not any implementation for this in the SQL Server 2005 physical model. The SQL code generated simply ignores the Arc and allows any values for the columns covered by Arc. If we check Oracle physical model. then it generates some trigger, which controls how many columns have values assigned - this is actually an implementation of Arc. But there is nothing of this kind for SQL Server model...
    By the way, implementing this Arc by trigger looks like to heavy approach. The very simple table level check constraint will do the same job. But this is a different subject though.
    Edited by: Otbl on Nov 3, 2011 7:34 PM

    Hi Dmitry,
    it's fixed in Data Modeler 3.1 EA2.
    Philip

  • DM 3.0.0.665: How to remove arc from relational model

    When creating an arc in the logical model, "engineering to relational" will update the relational model so "DDL Preview" shows DDL for two triggers that enforce the arc.
    After removing the arc from the logical model and "engineer to relational" I still see the trigger code in "DDL Preview", as if the arc is still there.
    Where can I see the arc in the relational model, and how do I remove it from the model?
    / Marc de Oliveira
    Edited by: marc66 on 2011-03-01 06:49

    Marc,
    you can see the arc on diagram - probably it's hidden. You can move some of parent tables and probably it'll appear. If still invisible then you can create subview and put child table and two parent tables on it - arc should appear and you can delete it.
    Philip

  • Is it possible to trigger a webcam?

    I am trying to make a breakdown experiment
    where a high voltage RF pulse is sent of a set of electrodes in front
    of a viewport. My pulse is typically about 100mS. I want a cheap/simple
    way to see if I have an arc (to correlate that with my other signals).
    I think a webcam will have as much resolution as I need. Does anybody
    knows if I can trigger the webcam using labview (or some other
    program). I can use a second trigger before the power pulse as needed,
    but I don't know if those libraries mentioned in other posts allow the
    control of the webcam to capture images using a trigger event, and/or
    how many FPS can I obtain from a webcam.
    Basically, I am thinking of sending a pulse, letting the webcam to
    capture frames for say 0.5-1 second. And display the images captured,
    so I can save or whatever. I am not interested in analysis. The
    contrast should be good, light (arc) and darkness (no arc). Could
    anybody recomend a camera that works. I want something as simple to
    setup as possible, I don't know if there is a preferable model or
    something. For example, I was thinking of the Logitech QuickCam Pro
    4000, or the Phillips Vesta PCVC 680K which seems to be the favorite of astrophotographers (good sensitivity in low light conditions).
    Thank you very much for any help.
    Darien

    What immediately comes to mind with a web cam is that at high
    resolution the frame rate is liklely to be 15 frames per second, that
    means that you could typically expect about two or three frames of full
    resolution data. I have had higher but it's unstable more often than
    not and easily stopped by any other activity on the USB bus.
    As far as triggering is concerned I guess you just aquire data in a
    circular buffer and have an external trigger start and if necessary
    stop the aquisition into the circular buffer.
    If you use a video camera you should get better contrast range, higher
    dynamic range, significanlty better focul distances and shutter speed
    control. Also if you use firewire you will get all the frames. You
    could also record the data without the computer as a high voltage spike
    of the type you are describing is likely to stop or ruin just about
    everything electronic not within a faraday cage, this could be
    challenging when you are tyring to put a hole in the cage to poke a
    camera through!
    I guess you have some specially coated glass for that?

  • Isolating/manipulating joined arcs in Flash

    In illustrator when using the pen tool and drawing
    arcs/curves, you may connect a series of curves and manipulate
    individual curves without affecting the ajdoining curve. I
    accomplish this by drawing curve #1 , selecting the end anchor
    point of that curve, press the option button, then drag a new curve
    using that end anchor point as the beginning point of the new
    attached arc or curve. All the preceding arcs are attached as a
    single object but I can manipulate each arc individually. How is
    this accomplished in Flash? If I attempt this in Flash I get the
    change direction icon and I lose one of the 2 handles on the
    previous curve!

    As kglad said, pay attention to the 4th frame in a button. There are 4 frames. First is the "off" state, second the "mouse over" state, third the "mouse being pressed" state and lastly the "hitarea". For each of these frames (states) it's up to you to put the right graphics in, if you wish to use buttons.
    The 4th frame of a button (or again, the "hitarea") is where you want to place an object that covers the area where you want the button to be triggered when your mouse enters it. That's the frame (in each separate button) you want to draw an outline of each region. You do not put the stroke in that frame or it will be considered a valid "hitarea" and when you roll over the stroke it will trigger the button. Right-click in that frame in the timeline and "insert a blank keyframe" to remove the stroke from it and then draw your region in that 4th frame. So keep your "hitarea" frame to just the area you want to trigger the button.
    Once the button is triggered via rolling inside the "hitarea" you defined above, it will show whatever you put in frame #2 or a button (the "mouse over" state). That's where you want to put a stroke that's highlighted in some way to indicate to the user the stroke is assigned to that region.
    Some old but valid button information from Adobe:
    http://helpx.adobe.com/flash/kb/create-buttons-flash.html

  • Big Bang-XPower II - how to prevent ARCING?

    Hello everyone,
    1st post, hopefully have placed this in the appropriate section.
    Any day now the Big Bang XPower II should arrive. My primary concern stems from multiple reviews claiming that the gatling style heatsink arcs with the MOSFETs, causing potentially not only complete motherboard failure, but sparks, smoke and (apparently even) fire.
    My question is what would be the best course of action to take in order to prevent this from happening? Would coating the heatsink with some sort of insulation be a good idea? This board looks fantastic; I just don't want it to sizzle and fry >_>

    For starters, it seems from comments of various different people all over the internet that this is indeed a problem and not something made up. I'm not sure that the cause is certainly the heat-sink.
    Knowing MSI, they shall indeed replace the board if it dies because of this. There are however MSI support people across various countries that lack what it takes to realize that the board is to blame here and not a user error, thus declining any RMA request (at least locally). Being a bit more aggressive, or even better, contacting MSI support from the internet will make things easier (RMA will most likely be accepted in that case).
    If you use DIY water-cooling on your system then the best approach is to change the heat-sinks with water-cooling blocks and be done with it.
    If you use air cooling or a CPU-only water-cooling solution then your only choices are two. You either use another heat-sink (possibly a 3rd party one... too bad that I don't think any exist for the XPOWER II) or you don't use a heatsink at all (you remove the existing one).
    All that while assuming that the cause is the heat-sink of course.
    Now, not using a heat-sink (if it is the cause of the problem) sounds like a bad choice by people not familiar with the components of the board. However, the transistors on the VRM have integrated over-temperature protection in them that always kicks in by design (it even kicks is if there is an over-temperature condition on something next to them, but they don't turn the system off in that case cause they don't reach their internal OTP limit). The board also uses a vast amount of phases.
    The things above mean that you can take off the heat-sink without making the system kill itself. Worst case scenario is hitting the OTP limit of the transistors and making the system turn off (or under-clock) under overclocking conditions.
    Now, you might be wondering why the transistors (the driver MOSFETs) with the integrated OTP did not save those boards since the problem is related to them. Well... it's not. The arc sort of creates a short circuit between the input and the output of the power supply (the VRM is essentially a power supply). No protection of any kind can exist there due to the severe lack of space it would need compared to the available space.
    From the 4 screenshots I've seen so far from boards having this problem the arc seems to happen next to the tantalum input capacitors, before the MOSFETs so the MOSFETs can't offer any kind of protection (PWMs aren't able to offer any help either in that case, no matter the protections the have).
    Something final regarding this problem is that the temperature on the affected area (which is close to some of the MOSFETs) is way above 100 degrees Celsius whenever signs of the problem are observed, since it manages to trigger the OTP indicator of MOSFETs placed quite some millimeters away. All that while the system is not stressed at all.
    This is literally THE clue to the fact that something is not right. If the VRM over-temperature LED on the board lights up (or the MSI software shows a VRM over-temperature warning) while the CPU runs at stock settings then your board is affected and you should take measurements before it dies (be it heatsink removal/replacement of board RMA).

  • Getting error message FRM-40700:No such trigger: SPECIAL20

    Hi,
    We have designed a custom report (Quote) and would like to use Special Menu's(Reports Menu) to open this custom Report. When I try to open this Report using
    REPORTS->Quote, The Report is opening seccuessfully but i am getting following error message at the bottom of screen bar.How can I clear this message ?
    FRM-40700:No such trigger: SPECIAL20
    The code which I wrote in the custom.pll is
    IF (form_name = 'OEXOEORD') THEN
    -- Enable View Order Report -- V1.4 --
    if (event_name = 'WHEN-NEW-FORM-INSTANCE') then
    app_special.instantiate('SPECIAL20', 'View Order Report');
    app_special.enable('SPECIAL20',PROPERTY_OFF);
    else
    if (event_name='WHEN-NEW-BLOCK-INSTANCE') THEN
    if block_name='ORDER' then
    app_special.enable('SPECIAL20',PROPERTY_ON);
    else
    app_special.enable('SPECIAL20',PROPERTY_OFF);
    end if;
    end if;
    end if;
    if (event_name='SPECIAL20' and block_name='ORDER') then
    param_to_pass1 := name_in('ORDER.HEADER_ID');
    select order_number into param_to_pass2 from oe_order_headers_all where header_id=param_to_pass1;
    editor_pkg.report(BSI_Quote(param_to_pass2), 'Y');
    null;
    end if;
    end if;
    Please give me valuable inputs on this issue.
    Thanks,
    HTH

    Hi,
    your package " app_special" does a call to "execute_trigger('SPECIAL20');" ,
    but there is no trigger with this name in your form. ( perhaps an Menu-item exists with this name.)
    Lock for "execute_trigger" in:
    app_special.instantiate('SPECIAL20', 'View Order Report');

  • How do I use a push button digital trigger with my 6034E DAQ board?

    I am only a Lab View toddler.
    I am currently using a push button, wired to PFIO/TRIG1 and DGND, with a anolog trigger. However noise is causing my program to be triggered. I was told that a digital trigger would help to reduce the random triggering. How do I create a push button digital trigger?
    Thanks

    implement a schmitt trigger.
    Struggling with Labview wrote in message
    <[email protected]>...
    >I am only a Lab View toddler.
    >I am currently using a push button, wired to PFIO/TRIG1 and DGND, with
    >a anolog trigger. However noise is causing my program to be triggered.
    >I was told that a digital trigger would help to reduce the random
    >triggering. How do I create a push button digital trigger?
    >Thanks

  • Link to trigger a .pdf or .doc file to show in presentation

    I would like to add a link that would trigger the showing of a .pdf file or a .doc file within the presentation itself. I can do this in powerpoint. There must be some way to do this in Keynote, but I can't figire out how to do this. Thanks for any ideas.

    Keynote does not allow links to anything but other Keynote presentations, websites, or email. However, you can use Expose or Command-Tab to quickly switch to a PDF or Word file.

  • Error in execuitng a trigger

    I am getting the following error in executing while executing the "dropping the trigger " , "creating a trigger " . or executing any stored proc .
    Please advise .
    I am on 10g Release 2 on Redhat linux .
    SQL> drop trigger logon_trigger ;
    drop trigger logon_trigger
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01008: not all variables bound
    ORA-06512: at line 21

    I was able to resolve this by setting a undocumented parameter "_system_trig_enabled"=FALSE .
    But , I have a logon trigger . If I set this to FALSE , logon trigger does not kick in .
    How to have a logon trigger working and to avoid this error ?
    QL> drop table t;
    drop table t
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01008: not all variables bound
    ORA-06512: at line 21
    SQL> alter system set "_system_trig_enabled"=FALSE;
    System altered
    SQL> drop table t;
    Table dropped

  • Error while creating a simple trigger in Oracle8i Lite

    Hi,
    I have Oracle8i Lite release 4.0.
    I want to create a simple trigger on 8i Lite.
    first I created .java file and got the .class file after successful compilation.
    The .class file is sitting in my local C:\ drive.
    I have a table having only two columns in 8i Lite and the structure is
    TABLE : SP
    ACC_NO NUMBER,
    ACC_DESC VARCHAR2(20)
    Then I issued the command :
    SQL> ALTER TABLE SP ATTACH JAVA SOURCE "JournalInst" in '.';
    After that getting the following error :
    alter table sp attach java source "JournalInst" in '.'
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-8028] error in calling a java method
    Following is the cause/action for the error code :
    POL-8028 Error in calling a Java method
    Cause: Most commonly refers to a problem when converting between Java and Oracle Lite datatypes.
    Action: Check the calling parameters.
    I can't understand where I am wrong ?
    Could anybody help me out ?
    Here is my source code of .java file
    import java.lang.*;
    import java.sql.*;
    class JournalInst {
    public void INSERT_JOURNAL(Connection conn, double AccNo, String AccDesc)
    System.out.println("Record Inserted for :"+AccNo +" "+AccDesc);
    Thanks in advance for solutions.
    Sarada
    null

    I just started with 8i Lite, but as far as I know 8i Lite does not support PL/SQL code.
    So you have to write your triggers and stored procedures in Java.
    Ciao

  • Issue in Invoking an Updatable View with Instead of Trigger

    Hi,
    I am trying to insert a record using Updatable View with Instead of Trigger. When i try to save the data, i get the below error:
    java.sql.SQLException: ORA-01403: no data found
    ORA-06512: at line 1
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1075)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3887)
    at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9323)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1508)
    at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:172)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:432)
    at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:8566)
    Can someone help me resolve this issue?
    Also it would be great if you can share Sample codes for Invoking an updatable view with instead of trigger on Save/commit.
    Regards,
    Jeevan

    As a trigger is executed in the db and not in your app it's really hard to help as you did not give any useful information.
    Have you read this blog http://stegemanoracle.blogspot.com/2006/03/using-updatable-views-with-adf.html ?
    Timo
    Edited by: Timo Hahn on 22.09.2011 09:15
    And my friend google also found http://technology.amis.nl/blog/1447/adf-business-components-resfresh-after-insertupdate-and-instead-of-triggers

  • Multiple Rows Update / Refresh Toplink Query when database trigger involved

    Hi everybody!
    I have two easy troubles for you; the platform is the same as the SRDemo Toplink version.
    1.     Multiple Rows Update: I want to update with mergeEntity method, multiple rows for an isolated table; that method receives a parameter that I try to bind with the iterator "dataProvider" but it only merges the first row, not all, any other combination returns an error.
    What I want to do is to have a form (like tabular forms in Apex) that lets me update multiple rows in a single page. ¿May anyone tell me how to do it?
    2.     Refresh Toplink Named Query: I have a list on a page with two columns. From another page, a button does an action that fires a database trigger that updates one of the columns on the list´s page. When I go back to the list, it is not updated; however, the CacheResults´s property is set to false on the iterator.
    Thanks in advance,
    Alejandro T

    I didn't use it (yet), but - you might take a look. You'll find a [url http://www.oracle.com/technetwork/developer-tools/apex/application-express/apex-plug-ins-182042.html]Timer plug-in on this page. It is a dynamic action which allows you to periodically fire other dynamic actions in the browser. For example use the timer to refresh a region every five minutes. You can perform any dynamic action you want using this infrastructure.So I was thinking: you might use it to run a dynamic action which would check whether something changed in that table (I suppose you'll know the way) (for example, a database trigger might set a flag in some table, timestamp or similar), and - if you find that something really changed - refresh the page.
    As I said, I never used it so that's pure theory. Someone else might know better, though.

Maybe you are looking for

  • FTP_CONNECT: User ------- has no access authorization for computer -------.

    Hi, could anyone please help me resolve the following issue: When i run the code below, it comes back saying "could not connect to "host". When tried to run in debug or test the FM "ftp_connect" it says "user ..... has no access authorization for com

  • Next to Only Export Base-level Transaction Data from BPC 7.5 NW

    Hey Experts, I've finally got a Export process configured out of Data Manager that is just about right.  However, when I run it, we're getting both base-level trasnaction data and records at the parent level for 2-3 dimensions which we need to specif

  • Aperture Library location...

    Help needed, please - I have Aperture and library running on my hard drive and a lot of images are now in place. I have also bought a 500gb external drive. What I want to ask is: Is it possible to move Aperture to my 500gb? Is it advisable to do that

  • Error : Error when generating text environment .

    HI All, I've got error : Runtime Errors         TEXTENV_INVALID          Exception              CX_SY_LOCALIZATION_ERROR The exception, which is assigned to class 'CX_SY_LO caught and therefore caused a runtime error.                  The reason for

  • Please Help: Siteminder cannot access LDAP

    We have installed Siteminder6 on Windows exactly according to the manual. However , when we are on "Policy Server Management Console" testing the LDAP connection, an error "LDAP error 32, no such objects" displays. We never see this error for lower S