ALDSP 3.0 -- create and return key

I have a situation where the client needs to be able to generate a key for new records prior to sending to the server. Trust me, the client needs the key before a new record is inserted.
Is there a way to get the key that DSP would generate using a sequence number for my physical service? That is to say, under normal circumstances I use DSP to generate the key from a sequence and stick it in the new record. In this one situation, the client needs this information in advance, and I want to use the same sequence for it. Ideally I would like to just call a function in DSP to retrieve the key for the physical service. If necessary, I would create a new physical service to retrieve it.
Thanks!
Jeff

Generating globally unique keys is hard work. You need to ensure they are unique between threads, servers - even domains, and over server restarts - it's not as simple as myKey++. So instead of re-inventing an Oracle Sequence, we'll let you create a physical data service that does ... SELECT MYSEQUENCE.nextval from DUAL.
Also - you have a corner case - where your client needs the unique number before the update takes place. Most applications are happy to have it after - in which case ALDSP will do everything for you if you configure the element to use the autoNumber type=sequence property.

Similar Messages

  • InDesign CS5 - Enter and Return keys give unexpected results

    I've been using CS5 for just a few days (Mac Pro, Mac OS X 10.6.3). I've noticed that the Enter and Return keys aren't always behaving as expected. Enter doesn't give me a column break, shift-Return doesn't give me a line break but a new paragraph, and more often than not I can't select the default option in a dialog with either Return or Enter. I've just read cpsid_84345, which says this is an issue in German and Swedish language versions, but I'm using English. The 7.01 update doesn't seem to be available. Any advice?

    That the KBSC files are XML doesn't guarantee faultless migration from one version to the next, probably because Adobe just forgot to cope with importing KBSCs from previous versions. It's great that InDesign offers you such flexibility with the KBSCs, but it's terrible that the implementation has been so sloppy in at least the three last versions (maybe earlier versions, too, but I try to repress the memories).
    Some people have been asking Adobe to make KBSCs scriptable. This would enably you to maintain a small database with KBSCs which a script could read and feed into a new version of InDesign, or redo a KBSC file after it has become corrupt, or whatever minor or major mishap.
    The more people ask for this the better: go to http://www.adobe.com/support/feature.html and request script access to the KBSCs.
    Peter

  • Backspace and return keys make phone inoperable

    Whenever I try and try to make a correction using the backspace, the backspace does not stop and erases the entire message. Or if I hit the return key, it doesn't just return to the next line, but repeatedly returns making an infinite number of new lines.
    Basically this problem makes the text, messaging, emails and so on useless - I can read things, but can't use the key board at all.
    I have tried every setting I can find on the phone, nothing seems to correct this.
    What is the fix?
    Solved!
    Go to Solution.

    I had a similar problem with the backspace and the letters A and P it was so annoying.  
    The fix is simple:
    Go into Settings > Accessibility > Magnify > OFF
    This should solve the problem.  If not then you have a different kind of issue.
    Hope it works

  • Create and set key TNS_ADMIN?

    1. Create a directory to be used for the Oracle Net configuration files, and set
    the TNS_ADMIN variable to point to this. It doesn’t matter where the direc-
    tory is, as long as the Oracle user has permission to create, read, and write it.
    On Linux:
    mkdir /u01/oracle/net
    export TNS_ADMIN=/u01/oracle/net
    Ensure that all work from now is done from a session where the variable has
    been set.
    On Windows:
    mkdir d:\oracle\net
    Create and set the key TNS_ADMIN as a string variable in the registry in
    the Oracle Home branch. This will typically be
    HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb1g_home1
    OK...in my little window CLI window I did the mkdir. HOW..HOW do I create and set the key TNS_ADMIN as a string variable. I have tried a few ways but I don't think i am doing it correctly. Please help.
    Donna

    Ed is actually one of the nicer, more helpful people here. Please understand, there are a lot of posts from people who expect volunteers to do their work for them, including students who expect people to do their schoolwork for them. That is highly discouraged. We do want to help, so that often winds up being a pointer to how to find the answer (the "teach a person to fish" idea). Please don't take it personally. There are nasty and rude people here, but they normally pop up reactively, in response to obvious abusers. What is obvious to some people is not to others.
    When someone asks for more information, you should give it, they are trying to help, not generally being passive-aggressive. See http://www.catb.org/esr/faqs/smart-questions.html
    People are here for all different reasons, and there is a lot of depth to their experience. You have a learning curve ahead, both for how to deal with Oracle and how to do deal with online communities. Patience, dedication and hard work pay off. Most have made the mistakes you are going to make, so consider advice, even apparently rude advice, helpful.
    You only have to create one account. You then log on using it again. It actually spreads across many different sites (this is called SSO, Single Sign On).
    Edit: By the way, sb gave the correct answer 5 minutes after your first post.
    Edited by: jgarry on Oct 30, 2012 10:57 AM

  • My return and shift key stopping working

    my return and shift key stopping working. It wont go to the next line or function as an enter.
    Now, most of the time it wont do anything but if you push it several times it will type a 0p or /- or control volume the instead. I checked the keyboard setting and voicecontrol and reset it to default and updated software for system but no resolve. How do I fix this?

    Hi -- I have this problem too. I cleaned out the keyboard, did an SMC reset, a PRAM reset, and also followed the steps I could follow from this article, linked to in the answer to another question:
    http://support.apple.com/kb/ts1381
    no luck with any of it. Could we please have some advice targetted at the specific problem of nonfunctional shift and return keys on a MacBook Air?
    In the meantime I'm using only the left-side shift and have downloaded and installed KeyRemap4MacBook and remapped my backslash key so it issues the "return" command. A clunky work around but it seems to do the trick, at least.

  • Return key won't work

    The return key will not function under one profile on my intel Imac. Enter key works fine and return key works under other profiles. Any thoughts on what is changed in the one profile to prevent it from working? Thanks in advance.

    Hello and Welcome to Apple Discussions ...
    Repair Disk Permissions.
    Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select FirstAid, then click: Repair Disk Permissions.
    Reset the System Management Controller: http://support.apple.com/kb/HT1543
    From the Apple Menu click Software Updates. Make sure you are up to date.
    Try a different USB port.
    If your iMac is under warranty, and nothing helps... take it in for service.
    Carolyn

  • Packages and returned objects

    Hello,
    I have several packages, one of which (call it package A) has three classes that are basically just structure classes(call them classes x, y, and z). Then in another package (package B), i have a function that creates and returns an object that is of class x type. this works just fine.
    my problem comes when i have to use JNI to retrieve the object of type x. the following function call works fine (i think, doesnt return null):
    jobject jPRData = env->CallObjectMethod(obj, mid, toTN);
    now, i want to get the fields from this object. my problem is that ive tried to read it and it crashes.
         jobject jPRData = env->CallObjectMethod(obj, mid, toTN);
         if(jPRData == NULL){
              cout << "jPRData== null" << endl;
              killJVM();
         else
              cout << "found object method" << endl;
         jclass myClss = env->GetObjectClass(jPRData);
         if(env == NULL)
              cout << "env == NULL " << endl;
         else
              cout << "env okay" << endl;
         if(myClss == NULL)
              cout << "myclss is NULL" << endl;
         else {
              cout << "calling getfield" << endl;
              jfieldID myFid = env->GetFieldID(myClss, "clli", "com/intec/plantrecords/PairData");
              //CRASHES BEFORE RETURNING HERE
              cout << "back from getfieldid" << endl;
              if(myFid == NULL) {
                   cout << "couldnt find field" << endl;
         }the error i get is:
    Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
    at getPairData(SByte* )
    at main(Int32 argc, SByte** argv) in c:\documents and settings\..
    but i have tested each item to see if they are null and they arent. just playing around i tried using the variable cls instead of myClss. and it just returns saying that it cant find the field. which is expected because its a different class reference. but i dont know why it is crashing w/ myClss.
    uhmmm....help!? please... :)

    just realized there was a mistake but even corrected it still crashed
    jfieldID myFid = env->GetFieldID(myClss, "clli", "com/intec/plantrecords/PairData");
    should be
    jfieldID myFid = env->GetFieldID(myClss, "clli", "Ljava/lang/String;");
    but i did change the way i found the class of the object. i used FindClass instead and it doesnt crash anymore. gotta convert data to c types and check values.

  • A, delete a d return keys not wirking

    My A, delete and return keys are not working

    Hi s.darge,
    Thanks for visiting Apple Support Communities.
    If some keys are not working on your MacBook, this test can help to isolate the cause:
    Some keys don't work as expected
    From the Apple menu, choose System Preferences.
    From the View menu, choose Speech.
    Click the Text to Speech tab.
    If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
    Click the Universal Access pane in System Preferences, click the Keyboard tab.
    Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
    In the Universal Access pane, click the Mouse tab, and make sure Mouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, see Unable to type while Mouse Keys is enabled in Mac OS X.
    If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
    If the issue persists, use Keyboard Viewer to help isolate the issue:
    Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
    Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
    Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
    From the Input (flag) menu, choose Show Keyboard Viewer.
    If the keyboard is connected and detected by Mac OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
    Start from the Mac OS X Install Disc, choose Terminal from the Utilities menu and test the keys which were previously not working.  If the keys work while started from the Install disc, then the keyboard itself is working correctly.  Use Mac OS X: How to troubleshoot a software issue to isolate the software issue that may be causing the keys to not respond.
    You can find the article with these steps here:
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    Best,
    Jeremy

  • Keypad, lock key and front keys not responding

    Ever since about last week, the keys on my Torch have not been responding. The touch screen and the phone itself still works properly except I cannot type with the keypad, cannot lock the phone with the lock button and cannot use the "Call, Off, and return key". The scroller works once in a while. The strange thing is that all those buttons seem to work occassionally. Whenever I turn on my phone, everything works fine for a couple hours and then after that, the buttons just don't work. Also, if and when I am able to use the buttons, the camera screen would open by itself for no reason. I am sure that I did not click the camera button on the side of the phone. 
    I thought that the problem had come up because I had used my phone when my hands were wet, but I already spoke with an At&t worker and after checking my phone, she said it didn't seem to be because of water damage. I didn't drop my phone in a bucket of water or anything and it seems kind of extreme to have become damaged because I used it when my hands were slightly wet. 
    Does anyone know what the problem is, or have a similar problem? 

    I am having the same problem!!! What I usually do is swipe my fingers through all the buttons of the keypad and that does it but it is really frustating and I am afraid that it will eventually damage the board... I need a solution too!

  • Return key not creating a new line when using the horizontal text tool

    Going through the adobe after effects 'classroom in a book' examples - when writing a line of single line using the horizontal text tool pressing return does not create the next line underneath, the cursor stays on the same line?
    Anybody out there had this problem?

    Hi Bill
    Thanks for replying!
    My OS is windows 7. I think it is the first time I have needed to put more than one line of text in an after effects layer. I am new to CS5.5 - after effects and I'm going through an adobe tutorial  'classroom in a book' series book.
    I thought about using a paragraph text box as you suggest but could not find the function in the tools menu.
    I have since tried clearing the cache out and restoring default layout but with no joy.
    I have used the return key for multiple line text in premier pro and it works perfectly ok.
    Cheers,
    Alan

  • LOV problem ... returning display-value and not key-value

    Hi. Sorry for my broken English.
    I have a problem with pop-up dynamic LOV.
    I have a simple form called Form A containing item_code and item_name. Users can create, update and delete new item by using this form.
    Another form called Form B has a field called item_code, and the item_code field is a dynamic pop-up LOV field and a query for this LOV is like this;
    select item_name d, item_code r from item_master order by item_code;
    When i create the new record in Form B and use LOV to find and get the item code, LOV works fine
    and it returns key-value to the item_code field.
    But when i try to update the record (I have a link from report page to Form B), value of the item_code field is not the key-value from LOV, but is a
    display-value from LOV.
    Any ideas?
    Thank you.

    Well, from what you have described, this is working exactly as it should. Form B's LOV is intended to retrun the key value but should show the dispaly value. When you go from the report to the form, the key value is being passed (or should be depending on your code) and Form B ought to show the display value.
    So, in short, I would say that Apex is doing what it should. Unless I misunderstand something.
    Bruce

  • What is the diffrence  between "Key to Select" and "Selected Key" while creating Radio  Buttons?

    While creating radio buttons there is a confusion regarding two properties "Key to Select" and "Selected Key".Can anybody explain it with example?
    Thanks,
    Vimal

    Hi Vimal,
    Please find my explanation as below
    Key to Select: This is the unique key for each radio button to identify which one is selected
    Selected Key: This holds the "KEY" of selected radio button
    Example:
       Let us say we have 2 radio buttons : Male & Female
         Create a context attribute SELECTED_KEY of type STRING.
         Create an action ON_SELECT for radio button select event
         Now,
         the properties for "MALE" radio button as below
              KEY_TO_SELECT = 'M'
              SELECTED_KEY = "bind to the context attribute SELECTED_KEY
              OnSelect = 'ON_SELECT'.
         The properties for 'Female" radio button as below
              KEY_TO_SELECT = 'F'
              SELECTED_KEY = "bind to the context attribute SELECTED_KEY
              OnSelect = 'ON_SELECT'.
    If we select radio button 'Male', we get the key as 'M' and for 'Female' radio button 'F'.
    check inside the event handler method ONACTIONON_SELECT, you get the 'KEY' of selected radio button.
    So, the context attribute 'SELECTED_KEY'  gets filled with the key of selected radio button
    Hope this helps you in distinguishing the 'KEY TO SELECT' & 'SELECTED KEY' .
    Regards,
    Rama

  • Creating a function and return something from an XML file

    Hi!
    I'm working with timeline actionscript. I want to create a function that loads my xmlfile and returns an xmlobject with the file's content.
    This is what I got so far:
    my_btn.addEventListener(MouseEvent.CLICK, getXML("myxml.xml")); //1067: Implicit coercion of a value of type void to an unrelated type Function.
    function getXML(fn:String):void{
         var infoLoader:URLLoader = new URLLoader();
         infoLoader.addEventListener(Event.COMPLETE, xmlLoaded);
         infoLoader.load(new URLRequest(fn));
         var myXML:XML = xmlLoaded(); //1136: Incorrect number of arguments.  Expected 1.
         trace(myXML);
    function xmlLoaded(e:Event):XML{
         return e.target.data;
         //trace(e.target.data);
    Can anyone take a look and perhaps point me in the right direction?
    Thanks

    I have never used a listcomponent, so I can only help with the steps before filling it with data.
    I think you should at start of your application load the XML with filenames and just after it's completed, e.g. in Event.COMPLETE handler, load all other XMLs looping through filenamesXML, like this
    var filenamesXML:XML;
    var XMLsToLoad:uint = 0;
    function filenamesXMLLoaded(e:Event):void
         filenamesXML = XML(e.target.data);
         XMLsToLoad =  filenamesXML.filenames.children().length();
         for (var i:uint =1; i < filenamesXML.filenames.children().length(); i++)
                  getXML( filenamesXML.filenames.children()[i] ); // the function from my previous post, don't forget to implement it
    //modify the minor xml load handler from the previous post
    function xmlLoaded(e:Event):void
         var loadedXML:XML = XML(e.target.data);   
         xmlArray.push(loadedXML);
         XMLsToLoad--;
    //assign the one click handler to all buttons, a loop here would be quite handy
    function clickHandler(e:MouseEvent):void
         if (XMLsToLoad == 0) //check if all xmls have been completely loaded
              switch (e.target.name) // swith by clicked button's instance name
                   case "button_1":
                        // here you have to implement supplying listcomponent with data, I think a loop again will be a good idea
                        break;
                   case "button_2":
                        // ibid.
                        break;
    Regards,
    gc

  • How to create and execute a function whose return value is  a table

    hi folks ,
    i would like know how to create and execute a function whose return value is a table ,
    am new to pl/sql ,
    my statement for the function is
    SELECT ct.credential_code, c.expiration_date
    FROM certifications c, credential_types ct
    WHERE ct.crdnt_id = c.crdnt_id
    AND c.person_id = person_id;
    i would like to have the result of the above query as return value for the function.
    Thanks in advance ,
    Ashok.c

    hi Ps ,
    Can you please do small sample ,
    that would help me in clear understanding
    thanks in advance
    ashok.c

  • How to Create a Class, do something, and return the name of the child class

    Hello Java Experts,
    I am relatively new to using java. Particularly when it comes to creating something on my own (ie without some of the good samples sun and o'reilly provide!).
    Here is what I am trying to learn how to do:
    I want a class, I am calling in Message. The Message
    class with have various message types. I know what I want to call these message types: one example is what I will call a "ZeroSpace" ("0 143321 4 070302") message, another type is BracketHex, and yet another is BracketNN ("[99]").
    I will test a string (which will be a message received via a serial port, java serial, etc). Then after testing the string (like "0 143321 4 070302"). I will look for the "0" and the space (chr(32)) and want to return ZeroSpace as the message type. Not a string "ZeroSpace". Something like an enumeration in C or Delphi Pascal (ordinal list??)
    the hierarchy is like this: class Message msg;
    msg zsp = new ZeroSpace();
    msg bhex = new BracketHex();
    etc. Depending on the message type I what to do different processing - something like class Shape, and Circle, Square, etc are shapes, but their areas are different, etc
    any tips will help!
    Thank you
    eric w. holzapfel

    one way is to make Message an abstract class, make it a factory, eg with public static Message Create( String str ) method. have it check the string in determining the subclass to instantiate and return. eg if begins with "0 ..", then return new ZeroSpace( str ), where ZeroSpace extends Message. similar for BracketHex and BracketNN.

Maybe you are looking for

  • How can I execute Stored Procedures in PARALLEL and DYNAMICALLY ?

    Hi  I have a stored procedure. It can be executed like this exec test @p = 1; exec test @p = 2 exec test @p = n; n can be hundred. I want the sp being executed in parallel, not sequence. It means the 3 examples above can be run at the same time. If I

  • Can't drag photos to desktop

    I often drag photos out of iPhoto onto my desktop, for various reasons, to work with them. I've done this for forever. All of a sudden, with a certain set of photos, it won't let me do this. When I try to place them on my desktop, instead of getting

  • Changing the account name

    When I setup my new Mac, I created the same account name as my old Mac. This is creating problems during my migration.  How do I change the main account name?

  • Very long search times from an IMac running 10.6.7 Snow Leopard when searching for files on a windows 2003 server

    The issue is as follows: The Imac is connected to the  windows 2003 server via SMB type connection. There are four sub folders in the main directory. We go to one of the sub folders in this case Server. We go to search window and type the file name t

  • G5 eats RAM

    About 3-4 months ago I began having problems with dual 2.0 G5. The HD went berzerk. I also niticed that I was having RAM problems. This showed up first as kernal problems, then checking the system setup it showed RAM slots empty. I ordered and instal