How describe model data and  get select in DB throw topLink.

Hello,
I have table from code
create table t_tree
id int primary key,
parent_id int,
value varchar2(255)
Alter table t_tree
add constraint constr_id_parent foreign key (parent_id) references t_tree (id)
I must get query
select level as lv,lpad('-@-', (level-1)*2)||value as MMM, t.* from t_tree t
connect by prior id=parent_id
start with T.PARENT_ID is null
How describe model data and get select in DB throw topLink.
Dema.

So you'll probably have to write a function which uses dynamic SQL to retrieve the desired message text, like this untested one:
CREATE OR REPLACE FUNCTION get_msg(p_db IN VARCHAR2,
                                   p_id IN NUMBER)
   RETURN VARCHAR2
IS
   msg_txt  VARCHAR2(4000);
BEGIN
   -- make sure p_db is a valid database link ...
   EXECUTE IMMEDIATE 'SELECT d_msg FROM msg@' || p_db || ' WHERE t_id = :id' INTO msg_txt USING p_id;
   RETURN msg_txt;
EXCEPTION
   WHEN NO_DATA_FOUND THEN
      RETURN NULL;
END get_msg;
/The you can update likeUPDATE mex
   SET t_msg = get_msg(db_id, t_id);Hth, Urs

Similar Messages

  • How do I store 4 hours of data and get it out of the "while loop" into a spreadshee​t file for documentin​g purposes? "See additional Text for additonal info"

    What a have is a VI that uses the following SUbvi's, starts with FP OpenVI, then FP Create TagVI, into a "While Loop" which contains a FP ReadVI outputting data into a Index ArrayVI outputting to a Display (DBL). This shows the output of a FP-AI-100 monitoring a 9v battery. I have to monitor this battery for a 4 hour period my problem is storing the 4 hours of data and getting it out of the "while loop" into a "Write to Spreadsheet File VI" all I seem to accomplish is just one data sample which I get into a spreed ship file with no problem. I just can't get 4 hours worth. By the way this is my first VI and I'm self
    trained so have mercy.

    I figured it out thanks.
    John Morris
    Glendinning Marine

  • How do I store 4 hours of data and get them out of the "while loop" into a spreadsheet file for documenting purposes? "See additional Text for additonal info"

    What a have is a VI that uses the following SUbvi's, starts with FP OPENvi, then FP Create Tagvi, into a "While Loop" which contains a FP READvi outputting data into a INDEX ARRAYvi outputting to a Display (DBL). This shows the output of a FP-AI-100 monitoring a 9v battery. I have to monitor this battery for a 4 hour period my problem is storing the 4 hours of data and getting it out of the "while loop" into a "Write to Spreadsheet File vi" all I seem to accomplish is just one data sample which I get into a spreed ship file with no problem. I just can't get 4 hours worth. By the way this is my first VI and I'm sel
    f trained so have mercy.

    I figured it out Thanks.
    John Morris
    Glendinning Marine

  • Something was hidden in a download and now these double green underlined hyperlinks show up everywhere, and pop ups too whenever I click on ANYTHING. I can't figure out how to find it and get rid of it.

    Something was hidden in a download and now these double green underlined hyperlinks show up everywhere, and pop ups too whenever I click on ANYTHING. I can't figure out how to find it and get rid of it.

    You installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised the value of Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • How to find date and time on photo taken by iphone?, How to find date and time on photo taken by iphone?

    How to find date and time on iphone's photo taken?

    in iPhoto no matter the source of the photo you see the information about th ephoto by selecting the photo and showing info (the get info button may be in a different location depending on the version of iPhoto you have)
    If you are not aking an iPhoto question but are asking an iPhone question instead then repost in the iPhone forum - iPhoto has no association with the iPhone
    LN

  • How to replace Bing and get Google back as my default search engine? I have already changed it in preferences and disabled extensions.  Nothing is working!!

    How to replace Bing and get Google back as my default search engine? I have already changed it in preferences and disabled extensions.  Nothing is working!!

    You installed the "Genieo" spyware/adware. There is an uninstaller, but as the developer is not trustworthy, you shouldn't rely on it. I suggest the tedious procedure below to disable Genieo.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Applications/Genieo.app
    Right-click or control-click the line and select
    Services ▹ Reveal
    from the contextual menu.* A folder should open with an item selected. Move the selected item to the Trash. You may be prompted for your administrator password.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.
    Repeat with each of these lines:
    /Applications/Uninstall Genieo.app
    /Library/Frameworks/GenieoExtra.framework
    /Library/LaunchAgents/com.genieo.engine.plist
    /Library/LaunchAgents/com.genieoinnovation.macextension.plist
    /Library/LaunchDaemons/com.genieoinnovation.macextension.client.plist
    /Library/PrivilegedHelperTools/com.genieoinnovation.macextension.client
    /usr/lib/libgenkit.dylib
    Note: Some of these items may be absent, in which case you'll get a message that the file doesn't exist.
    The following configuration file is either created or modified by the Genieo installer:
    /etc/launchd.conf
    The file is unlikely to be used by anything but Genieo or something equally undesirable. Unless you know you need it, delete it in the same way as above. Otherwise, edit it to remove the line that begins as follows:
    setenv DYLD_INSERT_LIBRARIES
    The above is not a file, but a line inside a file.
    Reboot. Safari should now launch without crashing. If not, stop here and post your results.
    From the Safari menu bar, select
    Safari ▹ Preferences ▹ Extensions
    Uninstall any extension you don't recognize. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    The Genieo installer may also install the "Silverlight" web plugin from Microsoft. If you have no use for that plugin, you should remove it according to Microsoft's instructions. Don't remove it if you subscribe to "Netflix."
    This procedure may leave a few files behind, but it should render Genieo permanently non-functional, as long as you never reinstall it.

  • Substacting two dates and get result in months

    Hi Friends
    I have to subtract two dates and get the difference in months. Here's the sample data:
    select DATE '2009-10-01' Date_value, 111 Cust_id,  DATE '2009-10-22' Open_date from dual
    union all
    select DATE '2009-10-01', 112 , DATE '2009-10-15' from dual
    union all
    select DATE '2009-10-01', 113 , DATE '2009-10-5' from dual
    union all
    select DATE '2009-11-01', 111 , DATE '2009-10-22' from dual
    union all
    select DATE '2009-11-01', 112 ,DATE '2009-10-15' from dual
    union all
    select DATE '2009-11-01', 113 ,DATE '2009-10-22'  from dualAnd here’s my query to get the difference in month:
    SELECT cust_id, date_value, open_date,
           ROUND (ABS (date_value - open_date) / 365 * 12) diff_in_months
      FROM tBut the output is unexpected:
    CUST_ID     DATE_VALUE     OPEN_DATE     DIFF_IN_MONTHS
    111     1/10/2009     22/10/2009     1
    112     1/10/2009     15/10/2009     0
    113     1/10/2009     5/10/2009     0
    111     1/11/2009     22/10/2009     0
    112     1/11/2009     15/10/2009     1
    113     1/11/2009     22/10/2009     0Ideally, the output should be as per the following:
    CUST_ID     DATE_VALUE     OPEN_DATE     DIFF_IN_MONTHS
    111     1/10/2009     22/10/2009     0
    112     1/10/2009     15/10/2009     0
    113     1/10/2009     5/10/2009     0
    111     1/11/2009     22/10/2009     1
    112     1/11/2009     15/10/2009     1
    113     1/11/2009     22/10/2009     1What is wrong in my query?

    Hi Centinul
    Found the resolution. When I use the following query, I get the perfect result:
    SELECT cust_id, date_value, open_date,
           ROUND (ABS (MONTHS_BETWEEN (open_date, date_value))) months,
           ROUND (ABS (date_value - open_date) / 365 * 12) diff_in_months,
           MONTHS_BETWEEN (date_value,ADD_MONTHS (LAST_DAY (open_date), -1) + 1 ) final_val
      FROM tAnd here's the output of all three columns:
    CUST_ID     DATE_VALUE     OPEN_DATE     MONTHS     DIFF_IN_MONTHS     FINAL_VAL
    111     1/10/2009     22/10/2009     1     1     0
    112     1/10/2009     15/10/2009     0     0     0
    113     1/10/2009     5/10/2009     0     0     0
    111     1/11/2009     22/10/2009     0     0     1
    112     1/11/2009     15/10/2009     1     1     1
    113     1/11/2009     22/10/2009     0     0     1

  • How to load data into html:select using Struts ?

    How to load data into <html:select> using Struts ?
    I can not load an array or collection (static or dynamic data) into drop down list control by <html:select /> Struts.
    please use:
    <html:select >
    <html:options />
    </html:select >
    Please help me. please detail it. thanks a lot.
    Message was edited by:
    tranminhman

    In order to load a collection or array of data you can use <html:select> with <html: options collection="" name=""/>
    here collection attribute refers to the Arraylist or Array of data and name is the name of the Form bean.
    Hope this helps...
    Chaitanya V

  • I would like to know how to cancel the signing of the match itunes, bought it thinking it would be a package of unlimited songs, how do I cancel and get refund?

    I would like to know how to cancel the signing of the match itunes, bought it thinking it would be a package of unlimited songs, how do I cancel and get refund?
    eu gostaria de saber como cancelo a assinatura do itunes match,pois comprei achando que seria um pacote de musicas ilimitadas,como faço o cancelamento e recebo reembolso?
    and i would like to know about the plan for take ilimited music?
    ATT,
    Bruno Riscado Dias

    Bruno Riscado Dias wrote:
    I would like to know how to cancel the signing of the match itunes, bought it thinking it would be a package of unlimited songs, how do I cancel and get refund?
    You can turn off iTunes Match by pulling down the Store menu and selecting "turn off itunes match." You'll need to contact iTunes Store support for a refund.
    Bruno Riscado Dias wrote:
    and i would like to know about the plan for take ilimited music?
    Apple has no "unlimited music" subscription plan avaiilable.

  • I've just upgraded to latest version of Firefox 4 and my Mac is only OSX.10.4.11 and it won't open. How do I downgrade and get old Firefox back. Don't want to lose all my bookmarks. Why was I able to install in the first place. Very frustrated!!

    've just upgraded to latest version of Firefox 4 and my Mac is only OSX.10.4.11 and now it won't open. How do I downgrade and get old Firefox back. Don't want to lose all my bookmarks. Why was I able to install in the first place. Very frustrated!!

    You can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
    You can trash Firefox 4.0 then re-install Firefox 3.6, it will use your existing bookmarks, passwords etc
    Mozilla are working to prevent Mac users with non-compatible systems from getting the notification about Firefox 4, and also not displaying the "Download Firefox 4" button on http://www.mozilla.com

  • I've bought an app called WhatsApp but I was not told that app doesn't work for ipod. So I would like to know how to turn back and get my money back.

    I've bought an app called WhatsApp but I was not told that app doesn't work for ipod. So I would like to know how to turn back and get my money back.

    Did you fail to look at the requirements before purchasing?
    All sales are final.  You can try contacting itunes support and asking for an exception

  • How do you date and time stamp iCal entries?  We share an event calendar and need to know when a new event was entered into iCal.

    How do you date and time stamp iCal entries?  We share an event calendar and need to know when a new event was entered into iCal.

    BKBK,
    Thank you for your response. That does adequately cover the
    client-originated sessions, but still leaves the ability I am
    looking for unavailable.
    It did serve to definitively answer my most pressing
    question, however, with this statement:
    Note: ColdFusion cannot create a session if an initiator
    application uses a SendGatewayMessage method to start an
    interaction with a client, such as an SMS user. In this case, the
    sending code must keep track (for example, in a database) of the
    messages it sends and their destinations. When a response event
    arrives, it can look up the origniatorID to determine whether it
    was in response to an outgoing message.
    I will play around with the Application scope to see if there
    might be a workable solution there.
    RLS

  • How to compare date and time together

    Hi,
    How to compare Date and Time together?
    For example in a database table there are two fields rundate and runtime.  I want to compare these two with perticular date and time in the program.  Like, I want to pull all the records where the records's date and time are less than a perticular date and time in the program.
    Hope the question is clear...
    Thanks.
    Kavita

    Hi Kavita
    There is no as such Date and Time Comparision FM in Standard SAP  But You can define your own like this
    <b>FUNCTION ZAV4_COMPAREDATETIME.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(DATE1) TYPE  DATS
    *"     REFERENCE(TIME1) TYPE  TIMS
    *"     REFERENCE(DATE2) TYPE  DATS
    *"     REFERENCE(TIME2) TYPE  TIMS
    *"  EXPORTING
    *"     VALUE(TWOISMORETOPICAL) TYPE  C
      twoismoretopical = ''.
      if date2 > date1.
        twoismoretopical = 'X'.
      else.
         if date2 = date1 and time2 > time1.
           twoismoretopical = 'X'.
         endif.
      endif.
    ENDFUNCTION.</b>
    Regards
    Mithlesh

  • How do you remove and get a new Apple ID on an iPod Touch?

    How do I remove and get a new Apple ID on my daughter's iPod Touch instead of my Apple ID that I use for my iPhone?  She is now able to get everything that I download and even see some text messages and all my contacts....and she is only 9!  I thought it was a secure way to allow her to have this but I've discovered other ways I can monitor her without her having exactly the same music, apps, texts, that I have. Please help!!

    No.
    Create a new ID for her:
    On here iPod go to
    - Settings>Messages>Send and receive and sign out your ID and sign into hers. Make sure that only her ID email address is listed.
    - Settings>FaceTime sign out of your ID and sign into hers hers. Make sure that under You can be reached at only her ID email address is listed
    - Settings>iCloud and sign out and sign in with hers
    - Setings>iTunes and App Store and sign out yur ID and sign into hers.
    - Apps are locked to the account that purchased them.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.

  • How can I find and get rid of key loggers on my iPhone and ipad

    How can I find and get rid of key loggers on my iPhone and ipad

    Why do you think you have them on there? Have you allowed someone to physically have each device and jailbreak it?

Maybe you are looking for

  • Need to increase no of lines in smartforms

    Hi, In the smartform for invoice customner wants to print address in detail. At present there are total four lines.Want to increase number of lines.What changes will be required to increase number of lines in address. Please help

  • Welcome Screen Just after Login

    Dear Team, I have one requirement where just after login to sap portal one image should be shown to all the user , Image is located in pdf format under Content Managment----> Explorer and select Startup folder When i am opening it is coming as http:/

  • A question from my textbook.

    I read up on a question from my textbook that has wording which confuses me... Here it is from Java Concepts by Cay Horstmann: "Implement a combination lock class. A combination lock has a dial with 26 positions labeled A....Z. The dial needs to be s

  • Cannot Start OAS proceses

    Hai, I face a problem which I can't start my application server. I go to application server manager and try to start my application server by select 'ALL' and press start After 'start' button was press, another windows apear and show the status of th

  • PDFReader Pro

    Having trouble opening a PDF file on the ipad with PDFReader Pro