Update database with a Registration link

Hi all,
I am doing a WDJ  application(Registration form) which inserts values into a oracle table and send a mail with the register data through RFC (mail content from WDJ code). what i need is sending an registration link (dynamic link) in mail, and when the user click on the link he will get a success message and the data is updated in table . how can we achieve this?
any workaround on generating dynamic link and mapping it to application view and updating the database
we are at NWDS 7.01
Thanks,
Mahesh.

Dear experts,
Any update on this.
thanks,
Mahesh.

Similar Messages

  • Update database record from email link or attachment ?

    Hello,
    Is there any way to send email from application with a link to update database record (like oracle workflow in selfservice).
    This is applied for approval process.
    Rather than the approval will log onto the application, he will click on the attachment or link then the update statement will fire.
    Is it  possible?

    You didn't add a forms version, so this is hard to guess. If you are on 10g and higher then you are using Oracle Application Server; in the installation there is the mod_plsql apache module included as well:
    http://docs.oracle.com/cd/B14099_19/web.1012/b14010/concept.htm
    so you could simply call a stored procedure via a HTTP request which updates your record. If you are on a lower version of forms you could make use of the free mod_owa module which you could configure with a plain apache installation on e.g. your database server: https://oss.oracle.com/projects/mod_owa/dist/documentation/modowa.htm
    you should implement some sort of authentication as well; both mod_owa and mod_plsql also have the facility to do so via +owa_custom+
    OWA_CUSTOM
    (see the OwaAuth directive in mod_owa for example).
    Of course you could do the very same via a custom Java Servlet; however you'd have to implement the database connection pool, the call of your stored procedure, the authentication e.g. as well which you would get for free with the apache modules.
    cheers

  • Web form not updating database with stored procedure

    Hello
    i have a problem with the web form updating the database i have a stored procedure which i need to connect to. If i execute the procedure in the SQL it will update the database but when i run the web form i get my catch error "could not update database".
    I have read so much on the net and my code seem ok but i,m just so lost.
    stored procedure
    PROCEDURE [dbo].[UpdateCustomer]
    @ID INT,
    @Firstname VARCHAR(30),
    @Surname VARCHAR(30),
    @Age INT
    AS
    BEGIN
    UPDATE Customer
    SET Firstname = @Firstname,
    Surname = @Surname,
    Age = @Age
    WHERE CustID = @ID
    END
    update code
    try
    SqlCommand command = new SqlCommand();
    command.Connection = conn;
    command.CommandType = CommandType.StoredProcedure;
    command.CommandText = "UpdateCustomer";
    command.Connection.Open();
    SqlParameter param = new SqlParameter();
    param.ParameterName = "@ID";
    param.SqlDbType = SqlDbType.Int;
    param.Direction = ParameterDirection.Input;
    param.Value = txtCustID.Text;
    command.Parameters.Add(param);
    command.Parameters.AddWithValue("@CustID", txtCustID.Text.ToString());
    command.Parameters.AddWithValue("@Firstname", txtFirstname.Text);
    command.Parameters.AddWithValue("@Surname", txtSurname.Text);
    command.Parameters.AddWithValue("@Gender", Gender.Text.ToString());
    command.Parameters.AddWithValue("@Age" ,txtAge.Text.ToString());
    command.Parameters.AddWithValue("@Address1", txtAddress1.Text.ToString());
    command.Parameters.AddWithValue("@Address2", txtAddress2.Text.ToString());
    command.Parameters.AddWithValue("@City", txtCity.Text.ToString());
    command.Parameters.AddWithValue("@Phone", txtPhone.Text.ToString());
    command.Parameters.AddWithValue("@Mobile", txtMobile.Text.ToString());
    command.Parameters.AddWithValue("@Email", txtEmail.Text.ToString());
    command.ExecuteNonQuery();
    lblMessage.Text = "Your Record(s) Have been Updated";
    command.Connection.Close();
    catch
    lblMessage.Text = "Your Record was not updated please try again";
    Thank you for your help

    To expand on Mike's advice.
    Change your catch to:
    catch(Exception ex)
    { // Break point here
    lblMessage.Text = "Your Record was not updated please try again";
    Put a break point in where the comment says.
    Run it.
    Hover over ex or add a quickwatch ( right click it ) and see what the error and inner exception is.
    I see several problems though.
    You have way too many parameters and Age should be int.
    They are objects  - they have a type.
    It'll be a string with your code there.
    Something more like
    command.Parameters.Add("@Age", SqlDbType.Int);
    command.Parameters["@Age"].Value = Convert.ToInt32(txtAge.Text);
    Although that might not cut and paste, it's air code intended to give you the idea.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • How to update database with a select box

    I'm hoping someone can/will help me with a new feature I'm
    trying to add to my web site. I'll summarize what I'm working with
    and then proceed to what I'd like to do. This is the web site I'm
    working on: www.truckerstoystore.net
    I have a database for the Truck of the Week set up with the
    information that is output on each page in the left column and
    on the Truck of the week page itself. I add new Truck of the
    Week (TOW) entries via a form I've put together. Right now, in
    order to change the current TOW, I have to manually go into my
    template and change the ID (which is automatically assigned when
    the record is created, and thus makes it unique) in my SQL which
    currently reads
    SELECT *
    FROM truckofweek
    WHERE ID="4"
    to the ID of the current TOW.
    What I want to be able to do is create a new form that will
    allow me to select the TOW entry that I want to be displayed from a
    select box (drop down box). I have a good idea of how to populate
    my select box, but don't know how to get it to work. My first idea
    was to update the table in the database (Access) manually with a
    new column called currentTOW, with values set to a Yes/No type,
    with default values set to "No". Then I would use my form to set
    the value for one of them to "Yes" so I could set my SQL to 'WHERE
    currentTOW ="yes" ' I would also make a <cfif> statement that
    checks for entries marked "Yes" and changes them to "No" when the
    form loads to avoid setting 2 entries to "Yes" and my page thus
    attempting to load 2 TOW entries.
    My problem is, I don't know how to do any of this. I hope
    I've described this situation well enough. I know there has to be
    at least one guru on here that can help me. Any assistance would be
    greatly appreciated.

    Hey,
    Thanks for replying. That sounds like a good idea, but I
    don't know how to do it.
    I started working on a new idea, where I have a second table
    in the same datasource set up called currentTOW, with one field
    called currentTOW and only one record. The idea is to send the
    string of the "owner" field from the select box, which is populated
    from the table called truckofweek to this one cell in the
    currentTOW table.
    This way, in my page which will display the data, I have 2
    querys. The first pulls the data in the single cell from currentTOW
    and outputs its string into the second query. I've attached the
    code below. I get an error when I try to display the page, see the
    error here:
    www.truckerstoystore.net/currentTOW2.cfm.
    However, the SQL looks like I want it to look, as "WHERE Owner =
    Craig Carp" is essentially the same record that it displays now in
    the live page "/currentTOW.cfm" only the SQL currently reads "WHERE
    ID = 4" (4 and Craig Carp are part of the same record).
    Here is the link to my form:
    Form

  • Software Update Problems with Internet and links xperia L

    Since the last Update my xperia L has Problems
    Google chrome can not be opend via Icon
    Google search is possible but if you want to Open any link it cannot be opend (no New window)
    Internet is only available via wifi but not with the smart phone supplier (tmobile) - resulting in no access to Internet

    Strange! Try to remove the battery from the phone for a while and then try again. You can also start your phone in safe mode to see if the problem may be related to any 3rd party apps installed in your phone:
    http://talk.sonymobile.com/t5/FAQ/How-to-boot-your-phone-into-safe-mode/m-p/348008#U348008
    Do you experience the same problem if you download another browser from Google Play?
    What are your thoughts about this forum? Let us know by doing this short survey.

  • For for updating database with referential integrity

    Hi:
    Here is the essence of the problem:
    I have created an Access database that I want the fire chiefs
    to update. The database is a one to many structure with referential
    integrity set. One fire truck has many capabilities. So if Fort
    Myers has a truck named 'FM101' and it has several capabilities
    such as 1.) pumper, 2.) extrication 3.) Advanced Life Support.
    My problem is how to set up a form to do that. In particular,
    how do I set up the form so that it will allow the fire chiefs to
    input several capabilities at a time for a truck.
    I can build a form showing the truck which was obtained from
    a pick-list. And I can show another field showing a pick-list for
    the capability of that truck (pumper, extrication, ALS, etc). My
    question is how do I set up the form to allow the chiefs to input
    multiple lines for the many capabilities of that one truck? Right
    now I have one input for the truck and one input for the capability
    - but I want to enable the user to input as many capabilities as
    they feel necessary.
    How do I do that?
    thanks

    You put the capabilities in a multi-select box.
    <select name="capabilities" multiple="true">
    <option value="capability1">Capability 1</option>
    </select>

  • How to determine different errors during update database with JDBC 2.0

    During updating my database (MS Access 2000) using JDBC 2.0, I entered a value for the primary key field which has existed
    in the database. However, when executing the method "udpateRow()" it gives me an error message "Error in row" and the
    database was not updated.
    When I update an Integer field with a non-integer value (e.g: Characters ), it also gives me the same error message. When I
    update a Date field with a non-date value, it still displays the same error message.
    How can I determine for each of the cases from the SQLException thrown that the actual error has occurred since I want to
    display a different customized message indicating the different errors that occurred during updating??
    Currently, part of my code is as follows:
              int currentRow = rs.getRow();
              String values[] = new String[ rsmd.getColumnCount() ];
              // Initialize values[] begins here:
              for( int count = 1; count <= rsmd.getColumnCount(); count++ ) {
                   rs.updateObject( count, values[ count - 1 ] );
              try{
                   rs.updateRow();
              catch( SQLException e ) {
                   System.out.println( e.getMessage() );
                   rs.cancelRowUpdates();
                   rs.absolute( currentRow );
    Can someone please help me solve this problem?? THANKS.. :)

    Rather than attempting to figure out which column value causes the update to fail, I would try validating the input data before you attempt to use it in a SQL update. Of course, this would only be useful if you know what data types the inputs are supposed to be in advance of running the update.
    William

  • Update Database with XML

    We update several thousand product prices in our MYSQL
    database daily using an XML feed.
    We can update the database using by looping over the XML and
    updating the database on an item by item basis but that seems
    awfully inefficient.
    Is there a better way?
    Thanks.

    Probably.
    But a more detailed answer is going to depend on what
    database
    management system you are using and what its specific bulk
    loading/updating capabilities are. This may or, most likely,
    may not
    involve ColdFusion at all.

  • How to access two oracle data base with out DB link

    Hi,
    I have two data base schema
    one is held in oracle 10g and the other in 11g ,Currently i am using DB link to access both the database. i am accessing around 70 tables using DB link.
    As per new requirement i have to remove DB link ,is there any other way i can access both database with out DB link.
    Thanks,

    malarkandy wrote:
    I have two data base schema
    one is held in oracle 10g and the other in 11g ,Currently i am using DB link to access both the database. i am accessing around 70 tables using DB link.
    As per new requirement i have to remove DB link ,is there any other way i can access both database with out DB link.Yes. But that needs another network and application interface instead of a database link.
    The target database can implement PL/SQL web services. These can be called via HTTP.
    The local database can use UTL_HTTP to make a call to the target database's web service for accessing target database data.
    Both databases can use AQ (Advance Queues). This can be integrated with an application server's JMS queues.
    This enable one database to enqueue a request to the other database, and for that database to respond by sending data.
    There are numerous such type of interfaces that can be used. Some primitive. Some advanced. Some simple. Some complex.
    The easiest and most flexible mechanism is however a database link. And it does not make sense to disallow database links for security and management reasons, but allow JMS for example. The network infrastructure is the same for both methods. The network protocol is the same. The security issues and concerns are the same - except that JMS for example is significantly more moving parts and make configuration and security a lot more complex than using a database link.

  • User registration link in SUS

    Hello all, I have configure SUS system but I have a problem with user registration link, sometimes it didn´t work well.
    Please can you tell me if there is another way to create users in the system?
    I need that only first user be created automatically and then first user goes to the system and create another... Is there another way to create them?
    Thanks in advance
    Rosa Rodríguez

    Rosa,
      Yes. You can create the first user (Vendor admin) using SUS Administrator role (SAP_EC_SUS_ADMIN_PURCHASER). This has to be done from the SUS screens. When you create the Vendor admin user, ensure to assign role (SAP_EC_SUS_ADMIN_VENDOR). This allows the vendor admin to manage their own users.
    SG

  • I have a problem when update tables with a database link (APEX)

    Hi, I search answers for my problem and I not found a solution. My problem start when I open page with database link statement in APEX. I drop tables and execute this for update the tables in APEX.
    EXECUTE IMMEDIATE 'CREATE TABLE XXXXXXX
    AS
    SELECT A1,A2,A3
    FROM AAA@BBB';
    I use Mozilla Firefox and isn't always updated the tables because it shows dialog for downloading file "f". I rename the file to txt and I see the text "IBMPC/WIN_NT-8.1.0"...
    In the explorer always show a window only the text "IBMPC/WIN_NT-8.1.0"...
    What is the solution for my problem? I need update this tables.
    Thanks. John.

    It's easy. It doesn't work a database link, on apex, with a pl/sql code or store procedure.
    I saw that many people had the same problem but I don't see a solution.
    As I put up, I want to remove my tables on APEX and copy the table of my Oracle database with the update dates.
    The posts are from the same problem as my English is very bad, it got to help explain the problem.
    I have a page with a pl/sql code. This code in Oracle is correctly.
    For example, with this code I update the table PRUEBAS with the data of TABLEX.
    BEGIN
    BEGIN
    EXECUTE IMMEDIATE 'DROP TABLE "PRUEBAS"';
    EXCEPTION WHEN OTHERS THEN NULL;
    END;
    EXECUTE IMMEDIATE 'CREATE TABLE "PRUEBAS"
    AS
    SELECT AAA,
    BBB,
    CCC
    FROM TABLEX';
    END;
    But, in this code, I have the problem.
    BEGIN
    BEGIN
    EXECUTE IMMEDIATE 'DROP TABLE "PRUEBAS"';
    EXCEPTION WHEN OTHERS THEN NULL;
    END;
    EXECUTE IMMEDIATE 'CREATE TABLE "PRUEBAS"
    AS
    SELECT AAA,
    BBB,
    CCC
    FROM TABLEX@DB_LINK';
    END;
    I sometimes get an error. Sometimes it works fine, but half of the tries Apex returns "IBMPC/WIN_NT-8.1.0" in the browser and I am not using an IBM PC or Win NT...
    And i read that In the alert_xe.log file there are a error of core dump... ... :S or that the application return corrupt headers.... Is a problem of versions?
    I used a synonym and I have the same problem.      
    Even if I run the code on SQL COMMANDS (SQL WORKSHOP) it shows dialog for downloading file "f". I rename the file to txt and I see the text "IBMPC/WIN_NT-8.1.0"...
    The problem is in Mozilla Firefox and in IE.
    I have the OracleXE 10g (Application Express 3.0.1.00.08).
    And the question is.. ... ... ... ... What is the solution? :)
    Thanks.
    John.

  • How do I add URI web link with custom tooltip like "CLICK HERE TO UPDATE" instead of URI web link in tooltip.

    How do I add URI web link with custom tooltip like "CLICK HERE TO UPDATE" instead of URI web link in tooltip.

    You've probably found an answer to this by now, but I think this has been addressed in another forum -- The link below suggested using a button and adding the tooltip to the button. 
    https://forums.adobe.com/thread/304974?start=0&tstart=0
    Sounds like it would work but I haven't actually tried it. 
    Good luck~!

  • LINK to Database with different GLOBAL_NAME

    Could anybody help me? We have two databases with different GLOBAL_NAME parameter. First database has GLOBAL_NAME=true, second - 'false'. I would like to make LINK from first database to second. If I make link name as a simple word ('DBST'- for example), ORACLE adds DOMAIN name and connects with error ORA-02085. Second database doesn't use DOMAIN name.
    Thanks

    This script will export the activeDocument as a jpg and gif
    function exportSFWJpg( doc, saveFile, qty ) {
         var exportOpts = new ExportOptionsSaveForWeb( );
         // see guide for other options
         exportOpts.format = SaveDocumentType.JPEG
         exportOpts.includeProfile = true;//default false
         exportOpts.quality = qty;
         if ( saveFile.exists ) saveFile.remove( );
         doc.exportDocument( saveFile, ExportType.SAVEFORWEB, exportOpts );
    function exportSFWGif( doc, saveFile, qty ) {
         var exportOpts = new ExportOptionsSaveForWeb( );// default format is gif
         // see guide for other options
         if ( saveFile.exists ) saveFile.remove( );
         doc.exportDocument( saveFile, ExportType.SAVEFORWEB, exportOpts );
    var doc = activeDocument;
    var docPath = decodeURI( doc.path );
    var docName = decodeURI ( doc.name );
    docName = docName.match( /(.*)(\.[^\.]+)/ ) ? docName = docName.match( /(.*)(\.[^\.]+)/ ) : docName = [ docName, docName, undefined ];
    var saveName = docName[ 1 ];
    exportSFWJpg( doc, new File( docPath + '/' + saveName + 'POWERPOINT.jpg' ), 80 );
    exportSFWGif( doc, new File( docPath + '/' + saveName + 'WEB.gif' ) );

  • Updating projects with activities linked to other projects.

    Im kind of new at this. I am working on a project with several contracts. i am thinking of setting up each contract as a separate project in an EPS and linking the milestones in all the projects to create a master schedule. On a weekly basis i recieve schedule updates from the contractors. What im wondering is if there is a way i can copy the new schedule in with all the updates without having to re-link all the activities everytime I get an updated schedule? also is this the best way to create a master schedule?

    *794503,*
    It sounds like your sub projects (contracts) are in sort of a design on the go mode?
    To make things a little more manageable I would suggest that you establish a set of standard start and finish milestones for each project in order for you to be able to ensure that your master project major milestones (hopefully integrated with your cost or earned value milestones) remain logically tied to those designated sub project milestones.
    With that said, I would just paste the new edition of each contract's schedule into their respective projects. I would make an export (.XER) backup before pasting any new data. It's better to be safe than sorry!
    Be mindful of the fact that you probably need to make sure that the logic ties gets pasted by not clicking the box (Relationships / Only between copied activities) on the "Copy Act. Options" dialog box. Otherwise, you'll have to manually tie all of the logic again. A royal pain in the "A" double "S"!!
    **Use a copy of the latest project/contract schedule update and as a baseline. Format your bars to also display that baseline schedule on row #2. Also insert a schedule variance column to display date changes between your original vs. newly updated schedule. For analysis of changes.....maybe build a new layout and filter to only display those act's that have major date changes (sched. variances)?
    **Another tool to use after the fact would be *"Claim Digger"* in order to analyze the details of what changes were made with each new schedule update.
    There is no way to eliminate all of the manual work. :(    Some manual verification will always have to be performed.
    It would be very smart to get a good grip on how you'll handle these changes early in the project before the situation gets out of hand.
    For every "schedule change" made to your schedule the chance of a scheduling error increases. So there you go.
    Good luck and let me know how it turns out.

  • Update question in a large database with partitions

    Hello All!
    Please help me in the following issue; I'm given a database that has partitions from 0 to 63. In each partition there can be 0 to any number of a given field like "NAME" (this may the primary key I think).
    How can I update a field in a row corresponding to a "NAME" at a given partition range, if I don't know which NAME belongs to which partition.
    Problems: there are around a million of this NAME field and the fastest method is only acceptable. I think I make an update command with a logical condition with a partition range (x<partition<y) and has a where clause like this:
    NAME like value1 or like value2.... or like value(10^6) (here I enumerate all of the NAME field) : is it a good way?
    How much is the longest where statement that can be given as a query to a database?
    Or is it another way to do it?
    Thank you for your kind help in advance,
    Balage

    I have a list that contains the NAMES, like:
    110
    111
    112
    113
    The table is the following
    NAME OLD PART
    110 0 23
    111 1 23
    112 1 56
    The NAME list is in a txt file, the OLD field should be updated according to the NAMES, and I'm writing a perl script to do the job. A thread is given a partition (PART) interval. Like the first thread works on
    the PART numbers from 1 to 3... the 2nd is on from 4 to 6.. etc.
    The problem is, that the NAME list is huge and I don't know which NAMEs are in a
    given PART interval.
    I thought this command will do the job:
    UPDATE table SET old = new where 1<= part <=3 AND name LIKE 110 OR LIKE 111 OR LIKE... stc
    how long can be the where clause after "name LIKE" as I have plenty of NAME records?
    Hope you can understand it, sorry for my bad English,
    regards,
    Balage

Maybe you are looking for