Coding of in-built proc execute_query ??

Hi Friends.....
I wanna know the in-built code for the procedures execute_query & commit_form
is it possible to find all the in-built procedures code in oracle forms ??
thanks in advance,
Regards,
Santosh.Minupurey

Oracle doesn't divulge source code. What specifically is it you want to know about the execute_query call? Maybe I can tell you in general terms what is going on. It would probably help to know why you need this level of knowledge. The idea with Forms is that you don't have to know these things to develop an application.

Similar Messages

  • Control Block

    Hi all,
    I have a control block with one item and a push button.
    and i have another block that one is a base table block. i need to display records in the base table block using the control item and a push button. What coding i should write for this.
    Thanks

    Hello,
    Please be more specific on what you want to accomplish. For example, do you want your users to display the records in the base block when they click on the button in the control block (in this case, attach a when-button-pressed to the button and use the built-in execute_query for example).
    Second, what is the use of the item you have in the control block. Do you use it to hold a value that is going to be used in a WHERE condition for example ?

  • "Portable" way to do message passing between threads?

    (I posted this on the Apple Developer Forums already, but since that forum is only accessible to registered and paid iPhone developers, I thought it would be nice to put it here as well so as to get some more potential eyeballs on it. I apologize if this kind of "cross-posting" is not kosher/is frowned upon around here.)
    Hey everybody,
    "Long-time listener, first-time caller," heh.
    I've been working for the past 2-3 months on my very first iPhone app. Actually, what I've been working on is a framework that I plan to use in an iPhone app of my own but which I am also trying to write for the "lowest-common-denominator" so that I (and others) can use it in other apps written for both Mac and iPhone.
    Not only is this my first time writing an iPhone app, it is my first time writing for any Apple platform. In fact, it is my first time using Objective-C, period. I cannot stress this enough: I am a "n00b." So go easy on me. I also have not worked with threading before this, either, on any platform, so the learning curve for me here is rather significant, I'm afraid. I am NOT afraid of either taking the time to learn something properly OR of rolling up my shirtsleeves and working. However, on account of my experiences so far, I am finding myself (not to flame or anything!) quickly becoming frustrated by and disillusioned with not so much Objective-C itself, but the Foundation frameworks.
    So with that said, read on, if you dare...
    The basic idea behind my project is that the framework I am writing will present an API to developers which will allow them to write client apps that interact with a particular network appliance or network-aware embedded system. I already have my basic set of classes up and functioning, and the framework works to my satisfaction both on MacOS and iPhoneOS. The platforms I am targeting are MacOS X Tiger 10.4 and later, and iPhoneOS, and up until this point, I've managed to keep a codebase that works on all of the above.
    What I wanted to do next was add some multithreaded goodness to the mix. (Woe is me.) I have asynchronous network socket I/O working within the main thread, and it, in fact, works a treat. In my test app on the phone, I've managed to keep the UI nice and responsive by using the main thread's runloop efficiently. But even though TCP async I/O works fine within the main thread, I want to be able to split out and offload the processing of any data received by the app from the appliance to its own thread. (It is possible, and even desirable, for an application using this framework to be connected to multiple appliances simultaneously.)
    My idea, in order to try to keep things as simple and as clean as possible, was to implement a wrapper class that presented my other main class as an "actor." So, rather than instantiating my main class, one would create an instance of the wrapper class which would in turn control a single instance of my main class and spawn its own thread that the network connection and all data processing for that particular connection would run within.
    (I hope I'm making sense so far...)
    Out of the gate, writing a subclass of NSThread sounds like the logical design choice for an "actor-type" thread, but because I was trying to maintain Tiger compatibility, I stuck with +detachNewThreadSelector:etc.
    Once I decided to pursue the actor model, though, the main problem presented itself: how to best pass messages between the main thread and all of the "actor" threads that might be spawned?
    I stumbled upon -performSelector:onThread:withObject:, and knew instantly that this was exactly what I was looking for. Unfortunately, it doesn't exist on Tiger; only its much more limited little brother -performSelectorOnMainThread:withObject: does. So I kept looking.
    All of the pre-Leopard documentation, tutorials, and sample code that I read indicated that to pass messages between threads, I needed to basically pretend that the threads were separate processes and use the expensive Distributed Objects mechanism to get messages back and forth. Unfortunately, even if that WAS a desirable option, iPhoneOS does not have any support for DO! Grrr...
    Finally, I thought I found the answer when I ran into a third-party solution: the InterThreadMessaging library from Toby Paterson (available @ http://homepage.mac.com/djv/FileSharing3.html). In this library, the author basically implemented his own version of -performSelector:onThread:withObject: called -performSelector:withObject:inThread:. Sounds close enough, right? And actually, it is pretty darn close. It's made to do exactly what it sounds like, and it does it in a platform-neutral way that works on pre-Leopard systems as well as iPhoneOS, using Mach ports instead of DO.
    (...wellll, ALMOST. I discovered after I built a small test app around it that it actually isn't "iPhone-clean." The author used an NSMapTable struct and the NSMap*() functions, which don't exist in iPhoneOS, and he also implemented the handlePortMessage delegate method, but although iPhoneOS has NSPort, it DOESN'T have NSPortMessage. GAAARGH. So I took the time to replace the NSMapTable stuff with NSValue-wrapped objects inside of an NSMutableDictionary, and replaced the handlePortMessage method implementation with a handleMachMessage method, which took some doing because I had to figure out the structure of a Mach message, NO thanks to ANY of the available documentation...)
    Once I started using it, though, I quickly discovered that this implementation wasn't up to snuff. My "actor" class and my main thread will be passing a ton of messages to each other constantly whenever there is network activity, and with InterThreadMessaging, I found that whenever activity started to ramp up, it would collapse on itself. This mostly took the form of deadlocks. I found a note that someone else wrote after experiencing something similar with this library (quoted from DustinVoss @ http://www.cocoadev.com/index.pl?InterThreadMessaging):
    "It is possible to deadlock this library if thread A posts a notification on thread B, and the notification on B causes a selector or notification to be posted on thread A. Possibly under other circumstances. I have resolved this in my own code by creating an inter-thread communication lock. When a thread wants to communicate, it tries the lock to see if another thread is already using the InterThreadMessaging library, and if it can't get the lock, it posts a message to its own run-loop to try again later. This is not a good solution, but it seems to work well enough."
    So I tried implementing what he described using a global NSLock, and it did help with some of the deadlocks. But not all. I believe the culprit here is the Mach ports system itself (from the NSPortMessage documentation for -sendBeforeDate:):
    "If the message cannot be sent immediately, the sending thread blocks until either the message is sent or aDate is reached. Sent messages are queued to minimize blocking, but failure can occur if multiple messages are sent to a port faster than the portís owner can receive them, causing the queue to fill up."
    InterThreadMessaging in fact calls -sendBeforeDate: and exposes the deadline option, so I tried setting a really short time-to-live on the Mach messages and then intercepted any NSPortTimeoutExceptions that were thrown; upon catching said exceptions, I would then re-queue up the message to be sent again. It worked, but Performance. Was. A. Dog. At least the message queue wouldn't be full indefinitely anymore, causing the main thread to block, but during the whole time that these messages were expiring because the queue was full and then being re-queued, either the main thread was trying to send more messages or the actor thread was trying to send more messages. And as far as I can tell, the Mach ports queue is global (at the very least, there is seemingly only one per process). The message would get through with this model...eventually.
    JUST IN CASE the problem happened to be something I screwed up as I was rewriting portions of the InterThreadMessaging library so that it would compile and work on the iPhone SDK, I substituted in the original version of the library in my Mac test app to see if any of these problems became non-issues. I found that both versions of the library -- mine and the original -- performed identically. So that wasn't it.
    Finally, in frustration I said, "screw it, I'm going to try it the Leopard way," and replaced all of the method calls I was making to InterThreadMessaging's -performSelector:withObject:inThread: with calls to Foundation's native -performSelector:onThread:withObject: instead, changing nothing else within my code in the process. And wouldn't you know: IT WORKED GREAT. Performance was (and is) fantastic, about on-par with the non-threaded version when only dealing with a single connection/instance of my class.
    So, in the end, I was able to do nothing to salvage the InterThreadMessaging implementation of cross-thread method calling, and as far as I can tell, I'm out of (good) options. And thus my mind is filled with questions:
    How is the Leopard -performSelector:onThread: method implemented? I'm guessing not using Mach ports, given that I didn't have the same blocking & deadlocking problems I had with InterThreadMessaging. Is it possible to re-implement this Leopard+ method in a similar manner as a category to NSObject under Tiger? Or is it possible, perhaps, to increase the size of the Mach ports queue so that InterThreadMessaging works at a sane level of performance? Or -- I'm getting desperate here -- is there any way that I could trick -performSelectorOnMainThread: to target a different thread instead? (I am assuming here that -performSelectorOnMainThread is implemented under-the-hood much like the new -performSelector:onThread: is implemented, but with a hard-coded NSThread pointer built-in to the code, and that the new method just exposes a more flexible interface to what is basically the same code. I'm probably wrong...) Is there another third-party library out there that I've missed that fits my requirements for being able to do message-passing between threads in an efficient and portable manner?
    I refuse to believe that there is no way for me to maintain compatibility with all of the platforms I wish to support without having to resort to making preprocessor #ifdef spaghetti out of my code. And there SURELY has to be a better way of doing cross-thread message passing in Tiger without using Distributed Objects, for Pete's sake! Is this really how people did it for years-on-end since the dawn of NeXT up until the advent of Leopard? And if there really, genuinely wasn't another alternative, then what is up with the lack of DO in iPhoneOS?? Does Apple seriously intend for developers who have good, solid, tested and working code to just chuck it all and start over? What if there was some aspect of DO that previous implementations relied upon that cannot be recreated with simple -performSelector:onThread: calls? (I don't know what those aspects would be...just a hypothetical.) I mean, I can understand needing to write new stuff from scratch for your UI given how radically different the interface is between the Mac and iPhone, but having to reimplement back-end guts such as something as elemental as threads...really?!
    I do laud the inclusion of the new method in Leopard as well as the new ability to subclass NSThread itself. But for those of us that need to support Tiger for one reason or another, some of these restrictions and omissions within iPhoneOS seem like rather pointless (and frustrating) roadblocks.
    As I hope is obvious here, I have tried to do my homework before throwing up my hands and pestering y'all. If you have the patience to deal with me, please tell me what I am missing.
    Thanks for taking the time to read,
    -- Nathan

    Thanks again for your patience. Comments below.
    etresoft wrote:
    It is pretty unusual that anyone would want to call perfomrSelector on any thread other than the main thread.
    What I described in my original post was not a worker thread, but an "actor."
    It is hard for me to answer this question because there are so many options available to do "message passing". The fact that you think there are so few tells me that you really aren't sure what you need to use.
    I didn't say there were few options for message passing. I said there were few options for message passing that fit my criteria, which are that any potential solutions should both A) work efficiently and with good performance, and B) be available both pre-Leopard AND on the iPhone. -performSelector: ain't available before Leopard. Distributed Objects is overkill. Kernel Mach messages apparently have a high overhead, too, as my experience with the third-party library I wrote about in my original message shows.
    ...consider notifications.
    I thought notifications couldn't be posted across threads, either. How do I post a notification to another thread's default notification center or notification queue from a different thread?
    The notification center is owned by the process. Each run loop can listen for just the notifications it wants. You don't "pass" or "send" notifications, you run then up the flagpole for all to see.
    I am aware of how to use notifications. The documentation for NSNotificationCenter clearly states that "In a multithreaded application, notifications are always delivered in the thread in which the notification was posted, which may not be the same thread in which an observer registered itself."
    So, again, I don't see how one thread can post a notification in such a way that the observer's registered method is executed in another thread (posting notifications "across threads"). This probably isn't a big deal if you are using mutexes (assuming you don't actually care which thread carries out the task associated with the notification posting), but as I said before, this is not what I'm after.
    I don't know what you are really after.
    Allow me to attempt to explain a second time, in a more concise fashion.
    My app will have multiple, persistent TCP connections open, one connection per remote device. The user will be able to select a task to execute on a particular device that we have a connection open to, and get back from the application real-time updates as to the progress or results of the execution of that task. In certain cases, the length of the task is infinite; it will keep executing forever and sending back results to my application which will update its display of the results every second that ticks by until the user STOPS that particular task.
    This can be done simply using async I/O in the main runloop, sure. But if I were going to thread this so that I could be processing the results I've received back from one *or more* remote devices while also doing something else, given that I will only have one (persistent) connection open to any given remote device that I'm interacting with (that is to say, I won't be opening up a separate TCP session for every single task I want to execute on a single device simultaneously), it makes sense _to me_ to implement this as I've described: with every connection to each remote device getting its own thread that lasts for the lifetime of the TCP session (which could be the entire time the application is running, times however many devices the user wishes to be connected to while in the app). I won't be spawning a new thread for every task the user wishes to ask a remote device to do.
    This is why (I think) I need bi-directional messaging between the main thread and each of these threads dedicated to a given remote device that we have an active session with/connection to. The main thread needs to be able to tell remote device X (which already has a running thread dedicated to it) to do task A, and then get real-time feedback from that remote device so that the main thread can be displaying it to the user as it is coming back. Same with remote device Y running task B, simultaneously. At any time during the execution of these tasks, the user needs to be able to tell my app to stop one of these tasks, and the main thread needs to send that message to one of the remote devices via that device's dedicated thread.
    This is why I am talking about this in terms of the "actor model," and not the "worker thread model," because the former model seems to fit what I want to do.
    -- Nathan

  • CLOB problem in 9.0.4

    hi all,
    I recently converted two LONG columns to a CLOBs. there is no default value on either of these columns.
    The forms properties for the CLOBs are data type: LONG, max length : 32000, data length semantics: NULL
    During testing, I found that any data entered in the form field, would not be saved to the DB, even though all indications were a good save/commit. the data seemed to disappear.
    a direct update statment via sql*plus updates the CLOB without any problems.
    Luckily, i received in oracle insert error. the HELP menu, display errors showed me why the data was disappearing. forms was sending an EMPTY_LOB no matter what is typed into the field. please see below. the save is working, however forms insert is not using the data from the form, it is submitting EMPTY_CLOB()!!
    i have searched everywhere to find the EMPTY_CLOB() statment. it does not exist in the form or attached libraries ( or on the database fo that matter).
    does anyone have any ideas for me, on finding it, or preventing it.
    INSERT INTO bg_bug(LOGGED_BY,BUG_SEQ_NUM,BUG_DESCRIP,STATUS_CODE,STATUS_CHANGE_DATE,PROJ_CODE,MODULE_NAME,SEVERITY_CODE,ASSIGNED_TO,LOGGED_DATE,tech_liaison,REQUESTOR,DUE_DATE,LOCK_BUG,LOCKED_BY,PRIVATE_BUG,PRIVATE_BY,MOO,moo_history,developer_comment) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17,:18,EMPTY_CLOB(),EMPTY_CLOB()) RETURNING ROWID,LOGGED_BY,BUG_SEQ_NUM,BUG_DESCRIP,STATUS_CODE,STATUS_CHANGE_DATE,PROJ_CODE,MODULE_NAME,SEVERITY_CODE,ASSIGNED_TO,LOGGED_DATE,tech_liaison,REQUESTOR,DUE_DATE,LOCK_BUG,LOCKED_BY,PRIVATE_BUG,PRIVATE_BY,MOO,moo_history,developer_comment INTO :21,:22,:23,:24,:25,:26,:27,:28,:29,:30,:31,:32,:33,:34,:35,:36,:37,:38,:39,:40,:41

    I have a problem when passing a CLOB value from FORMS to a backend procedure.
    I have coded a back-end proc to accept CLOB data and update a table. In the Forms, I have code in the POST-INSERT (since I have made CLOB column as non-database item) trigger to get the CLOB item of the block and invoke the backend procedure passing the clob as a parameter.
    On testing, I found that the data updated in the table by the proc is[b] JUNK.
    To narrow the problem, I have used dbms_lob.read in back-end proc to read the clob value in to another varchar variable and this varchar variable contains the correct data. So, the data passed from the front-end to back-end seems to be okay. But, instead of varchar, if I copy data into another CLOB variable using dbms_lob.copy in back-end proc, and display this variable, I find junk value. Similarly, the clob data getting into the clob field of the table is junk.
    So, there seems to be some charset(??) conversion problem between client CLOB and Server CLOB. Not sure how to resolve this.
    Could someone please advise?
    Code Snipplet
    POST-INSERT on forms
    ==================
    declare
    vCmttext CLOB;
    msgendtag VARCHAR2(100) CHARACTER SET vCmttext%CHARSET:= '</ichicsr>';
    begin
    dbms_lob.createtemporary (vCmttext,TRUE,10);
    dbms_lob.open (vCmttext,1);
    dbms_lob.write(vCmttext,length (msgendtag),1, msgendtag);
    AS_TEST_LOG_UPD(id,seq_nbr,vCmttext);
    end;
    BackEnd Proc
    ==========
    CREATE OR REPLACE PROCEDURE AS_TEST_LOG_UPD(vid varchar2, vSEQ_NBR number,
    vCommenttext TEST_LOG.CMNT%type)
    AS
    l_text_buffer varchar2(100);
    l_text_amount BINARY_INTEGER := 100;
    vComment1 clob CHARACTER SET vCommenttext%CHARSET;
    amt INTEGER := 3000;
    BEGIN
    dbms_lob.read(vCommenttext, l_text_amount, 1, l_text_buffer );
    DebugProcFunc('clob.txt',l_text_buffer); --- This Prints the correct data
    dbms_lob.createtemporary (vComment1,TRUE,10);
    dbms_lob.open (vComment1,1);
    dbms_lob.copy (vComment1,vCommenttext, amt, 1, 1); -- Copy the Client CLOB to server CLOB
    dbms_lob.read(vComment1, l_text_amount, 1, l_text_buffer ); --- This Prints the JUNK data
    DebugProcFunc('clob.txt',l_text_buffer);
    Update TEST_LOG Set
    CMNT = vComment1 -- Updating the Junk data
    Where ID = vid and SEQ_NBR = vSEQ_NBR;
    END;
    Thank you,
    Beena

  • Recent Places list under Save As...

    When I do a Save or Save As..... the Mac window usually defaults to a folder location for placing the file. Maybe the last folder I was in. When you click on the Folder pop-down window you see the path to the current folder.. .But you also see a list of folders and locations called RECENT PLACES. Can someone help with this? I am frequently saving emails and word docs back and forth to different locations. But when I do so, my Recent Places list does NOT show the recent folders I've been to. It presents some folders, all right, but I cannot figure how it has selected those. (If you type "Recent Places" into the Mac's built-in HELP search window, it produces no text!) How do you control this feature -- set default folders, control how many recent places are shown, and in what order? (the kinds of things we used to do with Boomerang!) I found a November 2005 post here where someone suggested removing some "Launch Service" pref files that are supposedly in the Caches folder. Not on my mac they aren't. Help anyone? A tech note somewhere on this OS feature?

    Hi, David.
    You wrote: "I am frequently saving emails and word docs back and forth to different locations. But when I do so, my Recent Places list does NOT show the recent folders I've been to."How this list is handled appears to be a function of the given application, not a System-wide function.
    For example, in one application I use, the list under Recent Places shows folders into which I've recently saved documents edited in that application. In the case of TextEdit, I can't determine exactly what logic it's using to populate Recent Places.
    As you note, it's undocumented in Mac Help. The only documentation I've found for this is in the Apple Human Interface Guidelines, in the section concerning "Dialogs," where it is defined for both the Open and Save dialogs as:"...the five most recent folders the user opened or saved documents to..."and where it is further qualified by"Note: Recent Places (in the Where pop-up menu of a Save dialog) does not record folders selected in Choose dialogs."This may explain the behavior I've observed in TextEdit where the Recent Places are not folders in which I saved TextEdit documents, but other folders where the Save dialog was used in other applications. This list also differs from the Finder > Go > Recent Folders list.
    Since the behavior can be customized at the application level (per the developer documentation) this would also appear to explain why, in some applications, I see a list of Recent Places that is specific to that application.
    You wrote: "How do you control this feature -- set default folders, control how many recent places are shown, and in what order?"Bottom line: it does not appear to be something you can tailor. "Recent Places" either:
    - Works in an application-specific way, defined by the developer through customization of the dialogs and coding.
    - Is built, by default, based on other locations from which/to which you've opened/saved files using the Open/Save dialogs.
    If you want to create a set of locations that will work across the Open and Save dialogs in all applications that use such, add those folders to your Finder Sidebar. You can then select them from the Sidebar that appears in the Open and Save dialogs.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Query in item problem

    Hellou everybody.
    I need your help. I am using forms 6i and i have a block with some non DB items. But items are synchronize with DB items for viewing results. I use this items for diplaying results from DB tables. In enter query mode i write condition in this text items and execute query.
    My problem is that i have text item which is VARCHAR2 type and I need to enter the condition for example > 1000. But i don't know how to convert this field to number. When i execute query under char type it not work properly (other result). I tried to change data type to number but i can't because it's not alowed to mixed types.
    select * from table_name where pag_cis > 100 - i need this
    select * from table_name where pag_cis > '100' - i have this
    Can you help me???

    You may use the set_block_property procedure built-in and the 'default_where' property so as to execute the query using the contents of your item (with the name of column , of course).
    Afterwards , you navigate to the db items block (with go_block('blockname')) and execute the query (built-in 'execute_query').
    Hope it helps
    Sim

  • Query in Item Reservations Report

    Hi all,
    Can i know what the 'Remaining Quantity' in the Item Reservations Report mean.Also let me know when the same column will be affected and how.
    ie.When can reserved quantities and remaining quantities vary in the report?
    Regards,
    Bala.

    You may use the set_block_property procedure built-in and the 'default_where' property so as to execute the query using the contents of your item (with the name of column , of course).
    Afterwards , you navigate to the db items block (with go_block('blockname')) and execute the query (built-in 'execute_query').
    Hope it helps
    Sim

  • Tab Pages in Form

    I have 2 tables their structure is as follows:
    1- Dept_id, Dept_name
    2- Emp_id, Ename,Sal,mgr,hiredate,Dept_id
    Now i want a Multiple tab page in my form if I click on Sales all the employees working in sales department should be displayed automatically likewise when I click on Accounts tab all the employees working in relevant department should be displayed automatically......how can I achive this ??? any advise or help highly appreciated

    Hello,
    Use the trigger: WHEN-TAB-PAGE-CHANGED to detect which tab you are switching to.
    Then for each tab, change the block property using: SET_BLOCK_PROPERTY built-in and change the property DEFAULT-WHERE to the one that gives you the employees working in sales etc...
    To get that when you enter the tab page, use the built-in EXECUTE_QUERY
    Hope this help

  • Unable to deploy java

    Hi everyone i am not able to deploy java . Please do guide me.i am using sccm2012 r2
    https://social.technet.microsoft.com/Forums/systemcenter/en-US/af6d3a92-ab97-406b-a1c6-67b64b2c65e2/java?forum=configmgrgeneral#af6d3a92-ab97-406b-a1c6-67b64b2c65e2

    If I were you I would ditch the transform unless you know it works perfectly.
    Have you tested your installation locally on a machine without using configuration manager?
    properties of an installer that are in capital letters are public properties and can be specified at the command line without the need for a transform.
    eg msiexec /i "Javamsiname.msi" IEXPLORER="1" MOZILLA="1" JAVAUPDATE="0"
    ALLUSERS="1" /qn
    Requirements for disabling Java have changed a lot over the past several releases.
    Things like JAVAUPDATE="0" don't work any more.
    Java now has a hard coded expiration date built into the application. If you download the latest version of Java and forward the time on the device 30 days + past
    the expiration date then Java will prompt and tell you its out of date even if you have the latest.
    There is a baseline URL you can block which gives +30 days post expiration.
    There is a way to fudge the update notification but its a pain especially if you have users on both x86 and 64bit platforms.
    I have not looked at the latest version, 755 was the last one I did so who knows it may have changed again.
    Test your installation at the command line locally on a workstation and get that working, then simply add it into Configmgr.
    https://www.java.com/en/download/faq/release_changes.xml
    "a secondary mechanism expires this JRE (version 8u25) on February 20, 2015. After either condition is met (new release becoming available or expiration date reached),
    Java will provide additional warnings and reminders to users to update to the newer version."

  • APPLE publishes 10 point Trouble Shooting Basics for FCPX

    Odd, because they can fix some of this, other aspects are built on users method and set up. At least it gives a glimmer of hope that they are listening to feedback from the feedback forms or in fact,they just know inherently at this point. There are issues. For me, I get it, it's new software (new software is never perfect even years later) but what I don't get is the "speed" or lack of speed in regards to fixing specific functions or even basic functionality
    I love the software, use it, but like many, it's frustrating
    3/14/2012
    http://support.apple.com/kb/TS3893

    None of this is new. ALL of it is general guidelines. No matter WHAT software one was using, these tips should be heeded or there will be problems.
    Problem is, even with all of these guidelines adhered to 100%, the underlying problems of the software (especially the last 03 incremental update) will not go away. They are coding issues and "built in." Take it or leave it.

  • Cannot update table data based on values of numeric fields

    I have a button on a form with two numeric fields: P11_numeric1 and P11_numeric2.
    I want to be able to either run a stored procedure or execute the update logic. We're on apex 4.0.
    I tried the follow syntax in a process run by a button:
    begin
    schema.procname(:P11_numeric1,:P11_numeric2);
    end;
    And nothing happened.
    If I try to run the proc in toad with hard coded parameter values, the proc works.
    I tried this:
    begin
    update schema.tablename
    set value=:P11_numeric1
    where id=:P11_numeric2;
    commit;
    end;
    And this doesn't work.
    I tried:
    begin
    update schema.tablename
    set value=1
    where id=2;
    commit;
    end;
    And that worked, so I assume the issue is with getting the numeric field values. Am I using incorrect syntax?

    I'm on apex 4.0.2 btw. I had two main problems: 1) the process that my procedure was in was in a sequence number lower than the MRU process sequence number. I didn't want to use the MRU so I changed it to being called by ajax calls only (which I don't have on the page, effectively not firing this process on page submit). Changing the sequence number of the process call to the procedure higher then allowed me to run the stored procedure.
    The next problem was that the fields weren't being passed into the proc.
    It looks like the type of the field made a bit of a difference to sending in the parameter for the procedure. The data is either integer or numeric and if the fields were set to a text field, and the proc was changed to accept varchar2 data and convert using to_number in the proc that the data was accepted and was fine. For the integer fields, I was able to (and wanted to) change the field type to display only as this is a read only screen with an button to save the data. For the numeric fields, for some reason the display field type did not allow the field value to be passed to the stored proc.
    I'll take a look at the session values not getting set but has anyone heard of that happening to display only fields with numeric data specifically?

  • How do i "play all" from a Playlist

    I'm a 1st time iTunes user trying to organize my music.  I want to setup a category for 'piano' music and created a new playlist.  But I don't see how I can 'play all' the music in that in one session.   Is there a way to 'play all' in a Playlist?
    Jim

    When you access the metadata for an album, you can obviously pick a genre from the dropdown that appears when you click on the up/down arrows next to the genre field:
    The values listed are the ones built-in to iTunes plus any you've defined yourself.  However, instead of picking one of these values, you can click in the field itself and start typing.  Initially iTunes will try to match what you type to an existing genre (so when you type "P" it'll select "Podcast") but keep typing until you've completed the new genre:
    Now, having entered this once "by hand", your new genre is added to the dropdown for future selection:
    You can now define a smart playlist that uses this new genre, as described in my previous comments.  Whether this is then recognized by the Bose system I don't know - its not technology I'm familiar with, though I would assume that it would be picking up "genre" as a piece of metadata from the iTunes library and/or media files and would just use whatever values it finds there.  The only exception I can think of is that the Bose system is somehow "hard-coded" to iTunes' built-in genres only (which would be a pretty dumb thing to do, but ......).

  • A Form when modified crashes - toggling runtime parameters temporarily solves problem

    A form is running in Forms 6i. Problem arises whenever user gives us requirement to modify it. Whatever modification we do, the form stops running. In fact it crashes and control goes back to Windows. That is the calling ( menu) form also exits.
    However we toggle/change following runtime parameters thru
    Tools --> Preferences --> Runtime and it temporarily solves problem.
    Buffer Records in File & Array Processing.
    However it is not fixed what combination of above parameters actually solves problem. We keep on trying and eventually it is solved.
    We want to know waht is this problem and how to resolve it.
    Note: The form is developed using SQL for purpose of insert/update/select. Built-in EXECUTE_QUERY is not used in this form.
    Pl. help.

    I don4t know if this can help, but
    we had problems with database links
    if we defined as db.world
    we must put exactly as db.world.
    When we use only @db it hanged up.
    Out of this we didn4t have similar problems .

  • Good Reading material

    I would be grateful if anyone could suggest good reading material
    or any other sources of information for Developer 2000. I am new
    to this area and will using forms to build a front-end, which
    will basically be a query tool for signalling data that we
    capture of satellites.
    I have been teaching myself with the demos and cue cards that
    come with 2000 but need to build screens that allow users to
    custimise their search.
    I would also be grateful if anyone can suggest how I can manually
    display records that are fetch back from a query. Currently, I
    have used the wizards to create datablocks and used the built in
    execute_query.
    Thanks in advance for your help.
    null

    Karim,
    The Best Source reading material I found are the conference
    papers ( specially ODTUG). You can find this Conference papers
    for Sale ( costs about USD 70.00 ). ODTUG website is
    http://www.odtug.com. IOUG website: http://www.ioug.org
    Other than that, the only book published so far on Developer rel
    2 is by Albert Lulushi ( available at http://www.primarykey.com
    or at Amazon wib site. This is a good book for beginners.
    Sunil
    Karim Nurmohamed (guest) wrote:
    : I would be grateful if anyone could suggest good reading
    material
    : or any other sources of information for Developer 2000. I am
    new
    : to this area and will using forms to build a front-end, which
    : will basically be a query tool for signalling data that we
    : capture of satellites.
    : I have been teaching myself with the demos and cue cards that
    : come with 2000 but need to build screens that allow users to
    : custimise their search.
    : I would also be grateful if anyone can suggest how I can
    manually
    : display records that are fetch back from a query. Currently, I
    : have used the wizards to create datablocks and used the built
    in
    : execute_query.
    : Thanks in advance for your help.
    null

  • Problem Obtaining multiple results from MySql Stored Proc via JDBC

    I've spent alot of time on this and I'd be really grateful for anyones help please!
    I have written a java class to execute a MySQL stored procedure that does an UPDATE and then a SELECT. I want to handle the resultset from the SELECT AND get a count of the number of rows updated by the UPDATE. Even though several rows get updated by the stored proc, getUpdateCount() returns zero.
    It's like following the UPDATE with a SELECT causes the updatecount info to be lost. I tried it in reverse: SELECT first and UPDATE last and it works properly. I can get the resultset and the updatecount.
    My Stored Procedure:
    delimiter $$ CREATE PROCEDURE multiRS( IN drugId int, IN drugPrice decimal(8,2) ) BEGIN UPDATE drugs SET DRUG_PRICE = drugPrice WHERE DRUG_ID > drugId; SELECT DRUG_ID, DRUG_NAME, DRUG_PRICE FROM Drugs where DRUG_ID > 7 ORDER BY DRUG_ID ASC; END $$
    In my program (below) callablestatement.execute() returns TRUE even though the first thing I do in my stored proc is an UPDATE not a SELECT. Is this at odds with the JDBC 2 API? Shouldn't it return false since the first "result" returned is NOT a resultset but an updatecount? Does JDBC return any resultsets first by default, even if INSERTS, UPDATES happened in the stored proc before the SELECTs??
    Excerpt of my Java Class:
    // Create CallableStatement CallableStatement cs = con.prepareCall("CALL multiRS(?,?)"); // Register input parameters ........ // Execute the Stored Proc boolean getResultSetNow = cs.execute(); int updateCount = -1; System.out.println("getResultSetNow: " +getResultSetNow); while (true) { if (getResultSetNow) { ResultSet rs = cs.getResultSet(); while (rs.next()) { // fully process result set before calling getMoreResults() again! System.out.println(rs.getInt("DRUG_ID") +", "+rs.getString("DRUG_NAME") +", "+rs.getBigDecimal("DRUG_PRICE")); } rs.close(); } else { updateCount = cs.getUpdateCount(); if (updateCount != -1) { // it's a valid update count System.out.println("Reporting an update count of " +updateCount); } } if ((!getResultSetNow) && (updateCount == -1)) break; // done with loop, finished all the returns getResultSetNow = cs.getMoreResults(); }
    The output of running the program at command line:
    getResultSetNow: true 28, Apple, 127.00 35, Orange, 127.00 36, Bananna, 127.00 37, Berry, 127.00 Reporting an update count of 0
    During my testing I have noticed:
    1. According to the Java documentation execute() returns true if the first result is a ResultSet object; false if the first result is an update count or there is no result. In my java class callablestatement.execute() will return TRUE if in the stored proc the UPDATE is done first and then the SELECT last or vica versa.
    2. My java class (above) is coded to loop through all results returned from the stored proc in succession. Running this class shows that any resultsets are returned first and then update counts last regardless of the order in which they appear in the stored proc. Maybe there is nothing unusual here, it may be that Java is designed to return any Resultsets first by default even if they didn't happen first in the stored procedure?
    3. In my stored procedure, if the UPDATE happens last then callablestatement.getUpdateCount() will return the correct number of updated rows.
    4. If the UPDATE is followed by a SELECT (see above) then callablestatement.getUpdateCount() will return ZERO even though rows were updated.
    5. I tested it with the stored proc doing SELECT - UPDATE - SELECT and again getUpdateCount() returns ZERO.
    6. I tested it with the stored proc doing SELECT - UPDATE - SELECT - UPDATE and this time getUpdateCount() returns the number rows updated by the last UPDATE and not the first.
    My Setup:
    Mac OS X 10.3.9
    Java 1.4.2
    mysql database 5.0.19
    mysql-connector 5.1.10 (connector/J)
    Maybe I have exposed a bug in JDBC?
    Thanks for your help.

    plica10 wrote:
    Jschell thank you for your response.
    I certainly don't mean to be rude but I often get taken that way. I like to state facts as I see them. I'd love to be proved wrong because then I would understand why my code doesn't work!
    Doesn't matter to me if you are rude or not. Rudeness actually makes it more entertaining for me so that is a plus. Nothing I have seen suggests rudeness.
    In response to your post:
    When a MySql stored procedure has multiple sql statements such as SELECT and UPDATE these statements each produce what the Java API documentation refers to as 'results'. A Java class can cycle through these 'results' using callableStatement dot getMoreResults(), getResultSet() and getUpdateCount() to retrieve the resultset object produced by Select queries and updateCount produced by Inserts, Deletes and Updates.
    As I read your question it seems to me that you have already proven that it does not in fact do that?
    You don't have to read this but in case you think I'm mistaken, there is more detail in the following website under the heading 'Using the Method execute':
    http://docsrv.sco.com/JDK_guide/jdbc/getstart/statement.doc.html#1000107
    Sounds reasonable. But does not your example code prove that this is not what happens for the database and driver that you are using?
    Myself I dont trust update counts at all since, in my experience some databases do not return them. And per other reports sometimes they don't return the correct value either.
    So there are two possibilities - your code is wrong or the driver/database does not do it. For me I would also question whether in the future the driver/database would continue to behave the same if you did find some special way to write your SQL so it does do it. And of course you would also need to insure that every proc that needed this would be written in this special way. Hopefully not too many of those.
    So this functionality is built into java but is not in common use amongst programmers. My java class did successfully execute a stored proc which Selected from and then finally Updated a table. My code displayed the contents of the Select query and told me how many rows were affected by the update.
    It isn't "built into java". It isn't built into jdbc either. If it works at all then the driver and by proxy the database are responsible for it. I suspect that you would be hard pressed to find anything in the JDBC spec that requires what that particular link claims. I believe it is difficult to find anything that suggests that update counts in any form are required.
    So you are left with hoping that a particular driver does do it.
    I suppose it is rare that you would want to do things this way. Returning rowcounts in OUT parameters would be easier but I want my code to be modular enough to cover the situation where a statement may return more than one ResultSet object, more than one update count, or a combination of ResultSet objects and update counts. The sql may need to be generated dynamically, its statements may be unknown at compile time. For instance a user might have a form that allows them to build their own queries...
    Any time I see statements like that it usually makes me a bit uncomfortable. If I am creating data layers I either use an existing framework or I generate the code. For the latter there is no generalization of the usage. Every single operation is laid out in its own code.
    And I have in fact created generalized frameworks in the past before. I won't do it again. Benefits of the other idioms during maintenance are too obvious.

Maybe you are looking for

  • Adding sound to game application

    Can anyone assist me or provide a link as to how I can add sound to an application(non-applet)? In this case it is a space invaders clone tutorial; now I would like to add sound to when either the player or the aliens fire a laser. The problem is tha

  • UCCX 7.0 historical report for afterhours callcenter

    We have a UCCX7.0 deployment with a CallCenter that closes at 6:00 PM and open the next day at 7:00AM. Customer wants to get a report of how many calls are they getting after business hours. I know I can get this report in a daily base but is any way

  • Error of SSL certificate

    "hi, all,      I got your information from weblogic.developer.interest.security.      I have a question about the SSL certificate 1. I generate the private key file using Weblogic certificate servlet, 2. get the request, then goto thawte get the resp

  • [WebLogic Sybase Type 4 JDBC Drivers] set ANSINULL off

    Hi, I am having some issues with the Weblogic JDBC Driver for sybase and the ANSINULL functionality. It appears that the stored procedures from a third party whose system we are trying to integrate with do ot function properly due to the fact that We

  • Loading Batch from Bridge-Tools-Photoshop-Batch no screen appears

    Can't get Batch screen to load in cs6 from Bridge-Tools-Photoshop-Batch