How can i control weather a custom transaction is executed

How can i control whether a custom transaction containing delete sql statement is executed using the results of a record set?
The custom transactions dialog does no allow me to use anything more than sql and has no conditions so i cannot control flow their.
Triggers seem not to be able to access record sets defined on the same page and internally seem able to perform select staments but unable to return result sets.
Please help if you can ?

What exactly are you trying to do?
The following partial code-snippet checks a value on a form and performs a sql select query if a condition is met, it could perform any valid sql...
//start GWB_SetSubscribedToThread trigger
function GWB_SetSubscribedToThread(&$tNG) {
//Get the current values from the form
$threadid = $tNG->getColumnValue('NbForumMessageID');
$userid = $tNG->getColumnValue('CreatedBy');
$subscribed = $tNG->getColumnValue('Subscribe');
//Check current subscription
$query = "SELECT ms_RandomKey FROM messagesubscribe WHERE ms_MessageTypeID = 1 AND ms_ThreadID = " . $threadid . " AND ms_UserID = " . $userid ;
// This syntax doesn't work for some reason??
//$result = $tNG->connection->execute($query);
//This syntax does work
$result = mysql_query($query);
if (!$result) {
$message = 'Invalid query: ' . mysql_error() . "\n\n";
$message .= 'Query String: ' . $query;
$message = nl2br($message);
die($message);

Similar Messages

  • How can I control the EJB's Transaction with entity bean

    If I use entity bean, the Transaction is managed by container.and I want to create JDBC Connection by myselft ,not the Datasource,how is the transaction is controlled by the container,if transaction is not controlled ,how can I control it??

    Hi,
    If you want to control the transaction your self then you need to use javax.transaction.UserTransaction interface and methods defined by it.
    Hope this helps
    Vishal

  • How can I control the Product Category in the Pre-select screen

    Dear ,my expert :
       I  work in ROS scenario . In my case ,the supplier can select Product Category A, Product Category B,and Product Category C when they  filled the data in the  registration scren . And the purchaser A just is responsibility for the Product Category A ,and the purchaser B ,C are the same situation .
      So ,my question is :
       1,How can I control the Product Category in the Pre-select screen? I mean that the Purchaser A can just select the   Product Category A in the Pre-select screen .
       2,You know the supplier select two category  is one BP in the system ,So if the purchaser A accepe the supplier ,the purchaser B will find the status is "accepted ",So the purchaser B will be confused about it .
       SO ,in my case ,any one has the suggestions ,any link welcome .
       Bestregards
      alex

    Hi Alex,
    As per standard SRM solution, this is not supported. Purchasers who accept new suppliers, accept them on the whole and not for any specific product category. There is no such thing as Purchaser being responsible for specific prod category in ROS.
    What you could do however is to build a custom workflow to achieve it. You could have category approvers after the purchaser has accepted the supplier. Based on the category provided by the supplier in the reg form, you could route these suppliers to appropriate category approvers.
    Regards,
    Nikhil

  • How can i control concurrent programs?

    Hi
    When ruinning GL & OPM concurrent programs, de-grades server peformance. How can i control it? I want to restrict the user not to submit or does not run during office-hours. How can it be achieved?
    Regards
    Ariz

    Ariz,
    Please mention the application release, the database version and the OS.
    Was the performance accepted before? If yes, what changes have been done recently?
    Is the issue with standard or custom concurrent programs? Also, please mention the concurrent program names (if possible).
    Do you run "Gather Schema Statistics" concurrent program on regular basis?
    To find out why those concurrent program affects the performance, enable trace as per (Note: 296559.1 - FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12) and generate the TKPROF file.
    You could schedule the concurrent program to run at certain times -- See "Oracle Applications System Administrator's Guide Documentation Set" for details.
    Oracle Applications Documentation
    http://www.oracle.com/technology/documentation/applications.html
    Regards,
    Hussein

  • How can we control the standard filed using CUF?

    Hello
    We use SRM Server 5.5 (SP 07)
    We want to make the Price field as display on shopping cart screen.
    We created CUF for PR type. We have PR01 and PR02.
    If PR type is PR01, we want to make Price field as display.
    So We tried to use BBP_UI_CONTROL_BADI. But this BADI is not working.
    We found notes for this badi and applied this note to our system.
    Notes number:
    1053594
    1046796
    1040879
    1058238
    1021742
    But we still have problem. The parameters IS_HEADER and IS_ITEM are not filled.
    How can we control price field as display, when we choose the PR type with PR01?
    Thank you,
    Best Regards,
    SH.

    Hi,
      You can use the BADI BBP_DOC_CHANGE_BADI along with BBP_UI_CONTROL_BADI.Check the Transaction type calue in BBP_DOC_CHANGE_BADI  badi and acc set a flag(using SET stmt) and pass this flag to the BBP_UI_CONTROL_BADI(using GET parameter) and then change the Field property for PRICE field.
    BR,
    Disha.
    Pls reward points for useful answers.

  • How can I control the workflow in the award the Rfx response

    HI,Experts :
       I work in SRM 7.0 ,RFx scenario .
      In  my case ,the supplier submit his RFX response according the RFX ,and the purchaser awards this response .
    There are  3 steps workflow for one type RFX response,and 4 steps workflow for another RFX Response .So ,I know I just can use the standard transaction type for the RFX Response .SO ,How can I  control the workflow in this case .
      Bestregards
      Alex

    Hi,
      If i understand your question correcly,   you have to determine the  process schema definition dynamically based on the transaction type.. then you can configure the process level ( 3 or 4 ) based the process schema definition..
    Saravanan

  • How can I control selection on a PDF

    I have Acrobat Pro 9 Pro build 9.4.6 and am constantly exporting documents from indesign to .pdf, and also building docs in the 'combine' feature from mixed pages. 
    While everything seems to go reasonably well, I have a few problems that are due either to my ignorance, or bugs.
    1.  The biggie; How can I control what I select, for the purpose of copying, moving and deleting?   When I drag the touch-up object tool over my selection, it selects what it wants to most of the time; sometimes it selects (i.e., puts a light blue box around) the entire page, instead of my selection (no pages are scanned).  There are very few instances when I get exactly what I want; there are usually a few lines above or below, no matter how careful I am in my selection.  The funny thing is that this is not a constant; sometimes, the tool works perfectly!  and I have my heart in my mouth every time I really need it to work, hoping that it will not force me to go back to Indesign to make minor corrections.   Perhaps my problems are connected to options I select when exporting my indds, but I've tried checking, clearing, and selecting various combinations and nothing seems to work.
    Sometimes, the text selection tool is strange; a wide blue swath develops over the selected text, even though it is still usually possible to  edit the text in this condition.  And BTW, is there anything to do about the fact that some text can't be edited at all because a suitable font replacement can't be found?  Can't a font be added somehow that will take care of this?
    2. Headers and Footers; fairly effortless, but if the footer contains two rows and I want them centered, the second row looks centered in the preview but not in the doc.  I have to go back to the footer dialog and guesstimate how many spaces to place before the second row to get it to look centered.  Also, is there any way to place a logo in a header?  That would be one of my requests for the next version of Acrobat, if not.
    3.Hyperlinks; they don't always work,even though I check Hyperlinks in the Export settings.  Sometimes yes, sometimes no.
    4.  Typwriter toolbar; it also seems to offer font and size changes whenever it feels like it, and I've tried all different orders of typing, selecting, etc.

    It's me again, sorry!  I wanted to save what I'd written, and my message popped up to the board.
    Thank you for any advice anyone has!
    PS  My indd and acrobat are the same version, as they came in the same package (CS4).  Windows XP sp3.
    Oh, one more thing I just remembered, as long as I'm complaining; sometimes if I place an object (the logo) and copy it to another page, it disappears on the original page, as if I've cut it.  Any fix for that?  (strange how I can edit tmy 'reply' but not my original post...well, at least I found where to ask a question fairly quickly!)

  • How can I control the zoom on my mac mouse?

    How can I control the zoom function on my mouse? In the middle of working on things my hand will rub the mouse by accident and all of a sudden the context within the screen is large. I have no idea of how to work this feature on my mouse and most times to get it to return to normal, I have to escape out of the work I am performing.

    If you are pressing the "Control" button on the Mac keyboard, scrolling up will zoom in and scrolling down will zoom out. You can disable this if it annoys you through System Preferences > Universal Access. If you are using Mountain Lion, it would be System Preferences > Accessibility.
    Uncheck the in the "Seeing" or "Zoom" section that says "Use scroll gesture with modifier keys to zoom".  It may be slightly different if you have an older OS X version. I have Mountain Lion and am going off of memory on the older versions.

  • How can I control a button from one swf file to another swf file?

    Hi,
    I have a main.swf file. From that file I am accessing the external.swf file which is an external file.
    Now, how can I write code on my main.swf file for the button which is on my external.swf file?
    Activities.MainPanel.close_btn.addEventListener(MouseEvent.CLICK, btnClickClose);
    Activities.MainPanel.close_btn (This buttons is actually on external.swf file, but I want to write code on main.swf file to execute it on external.swf) how can I control one swf button on other swf file?
    Thanks.

    Here's some example code that you should be able to adapt to your needs.
    // create a new loader object instance...
    var loader:Loader = new Loader();
    // make the download request...
    var request:URLRequest = new URLRequest("external.swf");
    // add a complete event listener to the loader
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    // start the actual loading process...
    loader.load(request);
    // create a new empty movieClip instance, you will put the loaded movie into this movieClip once its loaded
    var externalMovie:MovieClip;
    // this function is called when the download has finished and the file is ready to use...
    function completeHandler(event:Event):void {
       // set the contents of the loaded movie to the new empty movieClip...
               externalMovie = MovieClip(event.target.content);
       // add this new movie to the display list...
       addChild(externalMovie);
    Now you can refer to the loaded movie with the instance name "externalMovie". So if, for instance, you want to address a button in the loaded movie, you could write something like this on the main timeline:
    externalMovie.addEventListener(MouseEvent.CLICK, btnClickClose);
    function btnClickClose(event:MouseEvent):void {

  • How can i control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?

    Sup buddies,
    How can I control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?
    As the project grows in size the load time increases. How does one control not loading all images ,divs,elements etc. until they're
    needed on the timeline? For example some sections are off and only become visible when recalled. My projects slowly grow in size so loading
    all images , is counter productive . My other option would be to create separate htmls but that breaks the seamless user experience .
    TY...Over N Out... 

    hello, kiwi
    quote: "Is there an easy way to burn a completed project to DVD, but keep only the (lo res, lo size) previews on my hard drive?"
    yes.
    maybe,...
    1. you might think of making DVD backups first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    or,
    2. bring in the photographs to hard drive first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    the low rez Previews will stay in Aperture but the high quality Versions will be exported onto DVDs and gone from the hard drive (if you delete the originals).
    another way would be to export small about 50-70 pixel wide high quality jpegs to a folder on your Desktop and import & keep these in Aperture Library as a reference. make metadata to show where the original Project DVDs are stored and DVD filing system used.
    victor

  • How can I control how many times an individual photo is shown?

    How can I control the frequency of each photo on apple tv?

    Welcome to the Apple Community.
    Photos in slideshows will only be showed once until the slideshow repeats. If you want it to show more than once you will need to duplicate it.
    Photos in screensavers show randomly.

  • How can I control an iPad from a touch screen which is mirroring the iPad screen

    How can I control an iPad from a touch screen which is mirroring the iPad screen.
    This is a very important application for disability students who wish to use iPad apps but do not have sufficient fine motor skills to use the small screen of an iPad but could use a large format display touch screen.
    There must be a way.?????????? Help!!
    Peter Niass
    [email protected]

    Have a look here
    http://www.macstories.net/iphone/the-external-touchscreen-that-can-control-an-ip hone/

  • How can I control my fan speed?

    How can I control my fan speed on my macbook pro? I use SMC for gaming and streaming video from the internet when using my Mac OS, but I partitioned my drive and installed Windows 8 in order to play a different game (not a huge game) and the computer heats up dramatically when playing on Windows through Boot Camp to the point that it freezes every time (it never does this when playing a mac game or streaming on the normal partition Mac OS).
    Any suggestions or programs to control fan speed of the mac from windows?

    Get a cooling pad.  That will much better than trying to constantly adjust fan speeds.
    Ciao.

  • How can i control my mini mac with my ipad on diferent wifi networks?

    How can i control my mini mac with my ipad on diferent wifi networks?

    Go to my pc, splashtop, team viewer or any of the several remote desktop apps in the store.

  • How can I control my my mac mini with my macbook air (no wifi)?

    How can I control my my mac mini with my macbook air (no wifi)? Also...what is the best method (less lag) for screen sharing? 
    I own a mac mini Quad Server 2.0 i7 and I use it for audio production.  It's great but I need to travel with it. I was hoping some form of screen sharing could be useful using the macbook air to control the mac mini.  Therefore, I'd be using the stronger processor of the mac mini but would still be using the keyboard and trackpad from the air. 
    My two problems: 
    1.  I can't depend on wifi to make this happen. Wifi is not always available when travleing.  What would be the best way to configure a LAN connection?
    2.  The less lag the better for screen sharing.  Which apps are fastest?
    Thanks in advance.

    Both of your devices have WiFi built in. Here is Apple Support's solution:
    http://support.apple.com/kb/TA25616?viewlocale=en_US&locale=en_US

Maybe you are looking for