To avoid writing database code in the front end

Hello,
I am working on a database application using 10g database as backend and dotnet as front end. I wish to execute only oracle stored procedure for all the select (to avoid hard parse and use of bind variable), DDL and DML operations; just to avoid writing database code in the front end. Can anyone please give me a little examples of :
1.Select query's output to be return as resultset by stored procedure.
2.DML example by stored procedure.
3.Any DDL example by stored procedure.
using scott.emp, so that i would just call the stored procedure, rather than giving select,DML and/or DDL commands in the front end. Even though i have read in the documentation, but a clear cut examples will help me to get into clear concept as well.
Thanks & Regards
Girish Sharma

Hi...
-->Select example
create or replace procedure get_emp(rc out sys_refcursor)
is
begin
open rc for select * from emp;
end;
-->DML example
create or replace procedure do_dml_emp(pempid in number,
pempname varchar2,
result out number)
is
begin
insert into emp(empid,empname) values(pempid,pempname) returning empid into result;
exception
when others then
result:=-1;
end;
-->DDL example
create or replace procedure ddl_emp(colname varchar2,
coltype varchar2,
result out number)
is
begin
result:=-1;
execute immediate 'alter table emp add column ' || colname || ' ' || coltype ;
result:=1;
end;

Similar Messages

  • How to place an image in database and how to retrieve and display it in the front end

    how to place an image in database and how to retrieve and display it in the front end
    and to place an image in database and retrieve the image from database using xml
    please,help me out.

    Create a table with a Long RAW Datatype column for storing the Image Column Data.
    Create the form based on the table , which by defaults the column with LONG RAW atatype to a Image Item.
    You can use Forms Built in function READ_IMAGE_FILE to read a Image file stored on the file system in to the image item.
    A save on the form saves the image in the Image item in the long raw column.

  • Hello there, I am creating a database of all our companies press contacts. I would like to create a form that would act as the front end and feed the database which is obviously the back end. The database is in Access 2013. My question is to whether this

    Hello there, I am creating a database of all our companies press contacts. I would like to create a form that would act as the front end and feed the database which is obviously the back end. The database is in Access 2013. My question is to whether this is indeed possible?

    This forum thread appears to point towards the problem.
    Re: Unable to Switch Audio Sync Settings

  • Is there a way for users to add products in the front-end using a Web-App?

    I am racking my brains trying to figure out a way to let users add products to the front-end on their own.
    I am building a site for a client who needs users to be able to create there own storefront, kind of like ebay. Here is exactly the functionality I want: Supplier Frontend Products Upload - Magento Connect
    There HAS to be a way to do this with a web app even if it means writing in some code...can anyone suggest a way to do this?

    In short, out of box no, but is possible.
    Solution 1: Hosted on BC, external interface that interfaces with BC API, requires external hosted server.
    Solution 2: Wait until v3 of the API comes out... no timeline from Adobe given. This would remove the need for the external API server.
    Can do both solutions for you but solution 2 wont work until adobe allows it.

  • Crystal Report not running from Addon in the Front End.

    Dear All ,
    There is a Crystal report , .rpt File inbuilt in the Add-on .
    This report runs well from the Source Code .
    But i am facing problem , since it is not Opening at the Front End after registration of the Add0n.
    Suggest what to do ?
    Thanks
    Ashish

    Dear Rahul ,
    In my system , there is a Addon , which has some crystal Report file inbuilt .
    Which run on the Button Click event in the Form at the Front End (SAP GUI).
    When we debug the Source Code and pass the event . . Report Open with no hurdle.
    But the Same thing when we do at the From END of SAP , then it is not Returning any Report.
    Thanks
    Ashish

  • How do I create data-driven linkbuttons whose visibility is controlled from the front end?

    I've made a component based on a mx:TitleWindow that contains linkbuttons that I'm using as a context-menu.
    The TitleWindow component contains link buttons like this:
    [Bindable]
    private var _showEmailThis:Boolean = false;
    [Bindable]
    private var _showApproveThis:Boolean = false;
    [Bindable]
    private var _showReviewThis:Boolean = false;
    <mx:LinkButton id="lnkEmailThis" 
                   visible="{_showEmailThis}" 
                   includeInLayout="{_showEmailThis}" 
                   click="lnkEmailThis_click()" 
                   label="Email this!" />
    <mx:LinkButton id="lnkApproveThis" 
                   visible="{_showApproveThis}" 
                   includeInLayout="{_showApproveThis}" 
                   click="lnkApproveThis_click()" 
                   label="Approve this!" />
    <mx:LinkButton id="lnkReviewThis" 
                   visible="{_showReviewThis}" 
                   includeInLayout="{_showReviewThis}" 
                   click="lnkReviewThis_click()" 
                   label="Review this!" />
    This component contains a large number of links and is re-used by multiple modules in the same application.
    Within each module, this component is used when a user clicks on a row in a datagrid.
    The code looks like this:
    In "Requests" module:
    private function dgRequests_click(event:MouseEvent):void
        menu.showApproveThis = true;
        menu.showReviewThis = true;
    In "Performance" module:
    private function dgPerformance_click(event:MouseEvent):void
        menu.showEmailThis = true;
        menu.showReviewThis = true;
    As you can see, the visibility of individual linkbuttons is controlled within each module by setting boolean properties.
    If I alter this component to use a renderer, how can I control the visibility of the linkbuttons from the code in each module (there are over a hundred links with different functionality - not every link will be used in each module)? Note: it is not known from the back-end which grid within which module uses which link. This is set in the front end within each module's actionscript file.
    e.g., if the XML looks like this:
    <links>
       <link>
          <label>Email This</label>
          <visible>_showEmailThis</visible>
       </link>
       <link>
          <label>Approve This</label>
          <visible>_showApproveThis</visible>
       </link>
       <link>
          <label>Review This</label>
          <visible>_showReviewThis</visible>
       </link>
    </links>
    and I set the Email link to show in the module like this:
    private function dgPerformance_click(event:MouseEvent):void
        menu.showEmailThis = true;
    How do I make it take effect? Is there a way to control the visibility of a linkbutton within an item renderer in a component from the module that uses that component? Is there something like reflection in the Flex framework?

    Put a single frame sequence structure around your stop button and then wire from the error cluster going into the error handler to the edge of the sequence structure. Now your code will stop at the end of the current iteration. To see why this works, watch you code execute with execution highlighting turned on and review the section of the manual talking about "Dataflow".
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Urgent!!Error in the front end when trying to view a report

    Hi All,
    I am getting this error when I am trying to view a report in the front-end.
    View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    Please let me know if you have any ideas.
    Thanks.
    Vinay Sai Konduru

    Have a look at your login crenditals in the Connection Pool.
    Regards
    John
    http://obiee101.blogspot.com/

  • General Error has occured.Object does not exist error in the front end

    Hai,
    In the rpd , I have imported 2 new tables to the exisiting connection pool from 2 diferent schemas and used those 2 tables to the existing model in the physical layer and given joins .
    I did everything till the presentation layer and when I am trying to pull data from the added table in the front end it is giving me error saying that the oject does not exist.
    Also I tried to see the data in the physical layer in rpd and the same error came up
    Any solutions please

    863997 wrote:
    Hai,
    In the rpd , I have imported 2 new tables to the exisiting connection pool from 2 diferent schemas and used those 2 tables to the existing model in the physical layer and given joins .
    I did everything till the presentation layer and when I am trying to pull data from the added table in the front end it is giving me error saying that the oject does not exist.
    Also I tried to see the data in the physical layer in rpd and the same error came up
    Any solutions pleaseOnce again you are invited to How to extract the keys from the ER STUDIO.
    Seriously: I am genuinely interested in why members of the BI and eBS community with no history of using the APEX forum persistently use this as a dumping ground for off-the-wall requests. If we can find this out then there might be a (remote) possibility of getting something changed on OTN to prevent it and avoid wasting everyone's time.

  • "No administrator found for the task" in the front end

    Hi all,
    My issue is, whenever approval request is raised from the front end ( JAVA WEB-DYNPRO), it triggers the workflow through the "<b>sap_wapi_start_workflow</b>" and when the workflow proceeds to the first level of approval, the front end application provides the approver with <b>Approve</b> and <b>Reject</b> options.
    On click of approve, from the java webdynpro, the approve status is written in the container using "<b>sap_wapi_write_container</b>" and then a call is made to "<b>sap_wapi_workitem_complete</b>". Upon excution, the message line is "<b>No administrator found for the task</b>" and the return code is "<b>1</b>".
    But if we do the same steps from the backend (R/3), the workitem is getting completed without any such error.
    Please advice.
    Thanks.

    Hi Balaji,
    I think I have an answer for you.  This has happened with us when approving a WD java task using UWL (in our case for travel).  The key is the return code of 1.
    What has happened is this.  The return code actually comes from the function SWW_WI_STATUS_CHANGE_NEW which is called deep in the WAPI wrapper.  It means "infeasible_state_transition = 1".
    This is due to the fact that after updating the container, your wapi call from web dynpro tries to change the workitem from status of "Ready" to status "Completed".  This will not work.
    What you will have to do is call "SWW_WI_STATUS_CHANGE_NEW" to set the status to 'SELECTED' beofre setting the item to complete.
    The reason for this is that when you are executing from R3, the status change is done for you.  When calling from the WD, no reservation of the workitem occurs.
    Sorry about last night, I live well outside of town and the phone reception at my place is poor.
    Regards
    Gareth

  • Editing Image database columns From Apex front End

    Hello,
    How is it possible to edit an image datatype in Application express. Suppose if i want to edit an existing i mage and replace it with an edited version and save the newly edited verison in the database.
    Is it possible to edit and image from the front end itself.

    Hello,
    It depends exactly what sort of functionality you mean by 'edit', if you mean resize/scale and things like that then read the previous links I supplied.
    If you mean duplicating the sort of functionality that Photoshop et al provide then yes it's probably possible, however it sounds like a huge amount of work to me (as in it would be a 'product' in it's own right).
    If you can start defining limits as to what editing features you want to provide then I think it will help to define the scale of your task, otherwise if you're just saying 'edit' as a catch-all phrase then I think you have a lot of work ahead of you (interesting work...but a lot of it ;).
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Changes to the Back-end....Bringing it on to the Front-end

    Hello All,
    I would like to know the means of reflecting the changes made to the back-end tables on to the front end. Say we've a departments table and an ADF UIX page displaying the data from it in the front-end... we make certain modifications to the back-end table.. Now how do I bring it on to the already existing front-end UIX page. Could anyone give me a solution for this. Thanks in advance.
    Regards,
    Arun.V

    Hi,
    If you have navigated to the employees from selected department (ie, all the employees on the page are from the same department) then you can just drag the department name onto the page to create the bindings and display the department name.
    If you are going direct to empoyees in a read only table an easy solution is to create a business component based on a database view that joins the two tables and presents the employee details and the department name.
    create or replace view emp_dept as
    select e.emp_id,
           e.emp_name,
           d.dept_id,
           d.dept_name
    from emp e,
         dept d
    where e.dept_id = d.dept_id; If you want to edit an employee then create a view link to a ViewObject which represents just employees using the employee id. On the single record edit page use a message choice to translate the department id into the department name.
    Brenden

  • Diagram Not getting displayed on the Front End UI in SSM 7.5

    Hello ,
    We are running SSM 7.5 SP 04. We uploaded a custom image using diagram manager for the required context in the administration UI. The image is uploaded successfully. But , when I open the strategy tab for my context in the front end UI , I am getting a "HTTP 500 Page cannot be displayed error".
    I restarted the listeners and the JPIP sessions as well. But still the error persists. Please advise.
    Thanks and Regards
    Vijay

    Vijay,
    It is possible to successfully upload a strategy map into Diagram Manager and still not see it in the User Interface. After loading the goal diagram has to be Published To Server. You do that in Diagram Manager.
    You can upload a strategy map and Save that in Strategy Default in Administrator Interface, but unless you Publish it, it will not be exposed to the end users.
    In the Set Strategy Defaults area of the Administrator Interface, in the Create or Edit Goal Diagrams section. The Goal Diagram you loaded should have a Publish Date next to it. If it says Not Published, you need to Edit that Goal Diagram in Diagram Manager,
    In Diagram Manager under FILE at the top, choose Publish to Server.
    You now should see a Publish Date in the Administrator interface and Saving it will now make it available on the user side.
    Regards,
    Bob

  • Lync 2013 Enterprise load balancing on the front end and edge pool

    Hi,
    I am setting up a Lync 2013 Enterprise deployment consisting of a Front End pool (x2 FE servers) and an Edge pool (x2 Edge servers).  I'm seeing some conflicting advice regarding load balancing using hardware or DNS for the front end and the edge.
    On the front end I have 2 internal DNS records 'lyncfepool1.contoso.local' each of which map to one of the IPs of the FE servers.  I've used my details to populate the Detailed Design Planner excel spreadsheet and am told that I require a HLB to load
    balance my front end pool.  I'm aware of the need to load balance HTTPS traffic internally (which will be done by TMG) however other traffic to the front end (SIP, etc) can be balanced by DNS only, and not require a HLB?
    Can someone clarify the front end requirement?
    Also - looking now at the edge pool - this site again have two edge servers in a pool.  We are using a total of six private IP addresses, two per edge service (2 x av.contoso.com, 2 x sip.contoso.com and 2 x webcon.contoso.com).  These will be
    NAT'ed by the external firewall and directed to the respective external (DMZ) IP addresses on the Edge servers on port 443.  I know this isn't true roundrobin due to the intelligence of the Lync client when connecting (in that the Lync client will connect
    to one of the public IPs and if it can't connect, it will know to connect to the other service IP), however I want to clarify this set up, particularly the need to direct the external public IP traffic at the DMZ Edge IP specified in the topology builder.
    I've attached a basic diagram of the external/DMZ/Edge side which hopefully helps with this question
    Persevere, Persevere, Per..

    That is because you will always need HLB for a front-end server since it hosts the Lync webservices which use HTTP/HTTPS traffic.
    The description on the calculation tool also describes this correctly:
    Supports Standard and Enterprise pools (up to 12 nodes), with pure device-based load balancing or a combination of DNS load balancing and device-based load balancing (for
    Lync web services)
    You can use either Hardware or DNS loadbalancing for SIP traffic only, but you will always need a HLB for the webservices.  Both are applicable for the Front-End so you have either
    full HLB for both SIP and HTTP(S) traffic
    DNS LB for SIP traffic and HLB for HTTP(S) traffic
    Hope this is more clear :-)
    Lync Server MVP | MCITP Lync Server 2010 | If you think my post is the answer to your question, please mark it as answer so future visitors can easily find it.

  • Hide "ORACLE FUSION MIDDLEWARE"  message in the front-end

    Hi ,
    I want to hide the "ORACLE FUSION MIDDLEWARE" message in the front-end forms layout.
    Please let me know which file I need to make change in the back-end and do I need to do any-thing from oracle admin also (any deployment or any check).
    Thanks & Regards,
    Harish

    After making some changes in my HTML page the layout is coming properly

  • Updated attribute not showing up in the Front End

    Hi,
    I have to update an attribute column based on some conditions.
    Even though I have updated, the updated value is not showing up in the front end
    Moreover if I go to Diagnostics-> Examine and then query the attribute value I can see the updated Result
    What can be the reason...
    Please Advise
    Rahul

    Sounds like the Statement is not committed. Maybe you should add a
    COMMIT;
    at the end of your query.

Maybe you are looking for

  • Error while re-using view

    Hi, I've several views which i want to re-use but when i add a view which I have already used, i get the error: Processing HTTP request to servlet [dispatcher] finished with error. The error is: com.sap.tc.webdynpro.services.exceptions.WDRuntimeExcep

  • Assertion Error: Cannot Load Dyamically Generated Stub

    Hi Everyone, I am getting an Assertion Error in Weblogic 9.2, the root cause being a ClassNotFoundException for a dynamically-generated WL Stub for an Oracle JDBC wrapper. The partial stacktrace is as follows: ASSERTION FAILED *****[Could not find dy

  • How to use upper case on screen panel

    Wireless Password includes upper and lower case and can't find a shift button on screen panel OfficeJet Pro 8500

  • Could JMF share the webcam with other applications?

    Greetings, There is an applet which captures images from the webcam using JMF. While this applet is running, other applications can't capture images from the same webcam anymore. Would it be possible to set JMF in such a way to allow webcam sharing.

  • Need help in DataGridViewComboBoxColumn & DataGridViewTextBoxColumn

    Hello Guys, Need help in DataGridViewComboBoxColumn & DataGridViewTextBoxColumn in same cell, in the sense i should be able to type and select items in datagrid cell. I have already placed the grid via properties and in properties menu have selected