Inserting tabular data in form

I have been asked to see if our form, which we route by email, can support the pasting of a large amount of data from Excel into a cell. When I paste information in, of course it strips out the tabular formatting. Does anyone have any suggestions? It appears that attaching a file won't work without us investing in the server application. Do I need to just have users add new rows manually, instead of being easily able to paste in a large chunk of tabular data? Thanks!
Suzanne

Priya - Items with the attribute "disabled=true" are not POSTed so you cannot reference the g_fxx arrays for those elements.
Also, unrelated to that issue, I think "where not exists(select htmldb_item.hidden(1,invoice_no) invoice_no from bae_comments..." can be changed to "where not exists(select 1 from bae_comments...".
Scott

Similar Messages

  • Not able insert ,query data from forms

    hi,
    I am not able to insert data or query data from forms(10g devsuite).getting error frm-40505,frm 40508 .i am able to insert and select record from sql plus.the block ihave created is control block .it is connected to the table using the properties.
    should i do anything to insert record.please help

    the block ihave created is control block .it is connected to the table using the properties.A Control Block, by definition, is a non-database block. This means the block is not directly connected to a table so you have to manually display data in the block and any DML you want to perform on data in this block you must do manually as well.
    There are four database objects you can base your database block on; 1) a Table, 2) a View, 3) From Clause Query (basically an In-line View), and 4) a database stored procedure. I recommend you use one of these four methods rather than manually display your data.
    Craig...

  • JDBC + SERVLET: inserting text data  to access file from Html form

    Hi everybody !
    I'm trying to insert text data from my html form to access database using servlet and jdbc technologies.
    The problem that I'm that the data is TEXT, but not the English language !!!
    So my access db file gets - ???????? symbols instead the real text.
    This is the form line that sending data to my servlet:
    <form
    method="POST"
    ACTION=http://localhost:8080/servlet/myServlet enctype="text/html">
    And this is servlet line that defines response content:
    res.setContentType( "text/html" );
    What can I do to get in access db file the right text format and not a ???????? symbols.
    Maybe I must to ad some <meta ...> , but where ?

    You're dealing with Unicode, I'd guess, and not ASCII.
    I guess I'd have two questions:
    (1) Is the character encoding on your pages set properly for the language you're trying to use?
    (2) Does Access handle Unicode characters?
    Access isn't exacly a world-class database. (If it was, there'd be no reason for M$ to develop SQL Server.) I'd find out if it supports other character sets. If not, you'll have to switch to a more capable database that does. - MOD

  • Make Item of Data Entry Form Insert Only, Non Updateable

    Hi,
    Can someone please tell me how to make an item on a data entry form insert only and not updateable. The user can enter the text item in insert mode but cannot update the text item in update mode. This was really simple in Oracle Forms, hoping it is as simple in APEX.
    Thanks

    I think that's too much of the wrong information.
    It sounds like you have multiple forms. Are they Modal or Non-Modal?
    What code do you use to call the form that's not working?
    Does it work initially and then stop working?
    James.

  • Create Tabular Form On Non Tabular Data

    Hi,
    I'm not sure if this is possible.
    We have an existing process the project manager enters the users time again projects this i done row by row so the results are
    User Project Wk Hrs
    A 1 1 8
    A 1 2 4
    A 1 3 3
    A 1 4 1
    B 1 2 5
    B 1 3 2
    D 1 1 7
    D 1 3 8
    I dont want to change the existing table structure as this is used by other preorts but I would like to change the data entry form to something like this
    Project 1
    Wk1 Wk2 Wk3 Wk4
    User A 8 4 3 1
    User B 5 2
    User C
    User D 7 8
    Any idea how best I could achieve this, all ideas would be appreciated?
    Thanks

    Hi Andy,
    you'd need an updateable pivot table (crosstab) - there is no out-of-the-box solution for this ... but a combination of existing how tos will do the trick.
    First: generate the crosstab (as an APEX report):
    Crosstables (Pivot tables) with SQL ...
    Second: Create a tabular form on the crosstab report manually:
    http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html
    I have a german how to which explains the full process - even if you don't understand german the embedded code might help you ...
    http://www.oracle.com/global/de/community/tipps/kreuztabelle-edit/index.html
    Best regards
    -Carsten

  • How to set value on MRU insert Tabular Form

    This post refers to the forum article found How to set value on MRU insert Tabular Form
    I have included the problem and proposed solution below. My problem follows
    Problem
    Hi,
    I am using a Tabular Form. I used the wizard and it created all of the items (Cancel, Submit, Add, Multidelete buttons, etc.). I have a table that is like an FK table. For instance, we could have a customer table, and then a customer address table. Each customer could have multiple addresses. In the address table, the first ID column is the customer ID. So in using the tabular form for the addresses, I need to make the first column the same when I insert. But when I choose add row, everything works fine except it tries to insert a null into customer id. The uniqueness of the row is determined by customer ID and address string.
    Any time I make it to this screen, all new rows will have the same ID with I have in a variable that I can reference from the page called :P0_ITM_CUST_ID.
    How do I set the first value for all inserts? My guess is I need to do this in Computations. I'm also guessing I need to do this with a replace statement. I'm just not sure how to reference the first column of the new row.
    Thanks!
    Tim
    Solution
    The way to do this is by using the "Default" value for that Column. Go to
    Home>Application Builder>Application xxx>Page yyy>Report Attributes>Column Attributes
    Set the default value for newly added rows as in
    http://img237.imageshack.us/img237/5758/screenshot012di2.jpg
    Hope this helps.
    Un-resolved problem
    have also tried to do this but the fields I see are not the same.
    Please see screenshot=http://krisjones.freewebspace.com/apex.JPG
    I am using the Oracle hosted environment, so 2.2.1.
    To my knowledge I have done the same as the user in the first post. Am I doing something incorrectly or should I have created the tabular form differently?
    Many thanks. Kris

    Kristian - You see a different version of the form depending on whether the selected column is the primary key column or not.
    Scott

  • Insert Rows Above in Form

    Hello all,
    I'm trying to allow users to insert rows on a form in such away that the added row renders in the middle of the form. Probably having a check box on each row saying 'insert row above'.
    The purpose is to emulate editing a table in a word processor basically. I understand I'd have to manage re-sequencing the data as the user changes records that appear in the 'middle' of the table.
    I've seen D Kubicek's 'row mover' page and it's a good fallback, however I'd be interested as to whether what I want is really simple or will involve a lot of js and / or Ajax.
    Cheers,
    Toby
    ================================================
    Eg
    Before
    Sequence Data Chkbox ("insert above")
    ======================
    ID1 Value1 []
    ID2 Value2 []
    ID3 Value3 [x]
    After
    Sequence Data Chkbox
    ======================
    ID1 Value1 []
    ID2 Value2 []
    (null) (null) []
    ID3 Value3 []

    See this example on that issue if your tabular form is standard:
    http://apex.oracle.com/pls/otn/f?p=31517:209
    This example again, if it is a manual one:
    http://apex.oracle.com/pls/otn/f?p=31517:170
    As Andy suggested, the order in the SQL, nulls first would do the job. However, if sorting is enabled, there is a problem.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Performing operation on tabular data block

    hello guys,
    i m designing one tabular data block in orcle 6i form builder form emploee_master table form maintaing the employee personnel details.
    i have to perform some operation on this data block like viewing existing records,updatinng the record(s),deleting a purticular record,insrting new record.
    is there a shortcut way to perform theses operations so processing shoulg be fast and data shold be updated?
    pl tell me and give some demo form to understand these operations if possible.
    With Regards
    Vishal agrawal

    Hello,
    All you have to do is to create a block based on the database table. Forms will, then, do everything for you (insert, update, delete) at commit time.
    Francois

  • Data entry form problem - form in query-only mode

    Hi there,
    I am trying to create an data entry form to insert recordacross 2 out of 3 tables. The last of the four tables already have details and does not need to have record inserted into.
    This is the scenario, my four tables are Factory, Employee, Works_in. Works_in resolves a many to many relationship between Factory and Employee
    Now for a person to be employed in a factory, he must be assigned to a factory.
    I have a list of factories already in the database. After choosing a factory from the database, I want to insert records to do with his Fname, Lname, Hiredate bla, bla, bla to the Employee table.
    I have a single form with Factory as the master, and 2 tabs each for Employee and Works_in.
    After linking all my tables with the ability to choose a factory first on the master form from a combo box and after inserting records into the other forms, it says form running in query-only mode.
    What do you think?
    Many thanks in advance.
    Cube60

    I think that's too much of the wrong information.
    It sounds like you have multiple forms. Are they Modal or Non-Modal?
    What code do you use to call the form that's not working?
    Does it work initially and then stop working?
    James.

  • How to populate new record on data entry form based on search results?

    Hello,
    I'm new to jdeveloper im using version 11.1.2.1.0.
    Usually Im using forms 10g.
    I created search panel with table and its working but problem is how to transfer/populate all the field value according to that search result to New data Entry Form
    by clicking the table record or a button.
    Given :
    TABLES,EO
    1. PatientMasterIndex
    2. PatientTransactionMaster <<---- master
    3. PatientTransactionDetail <<-- detail relation
    Here the scenario,
    After Search of any patient, when i clicked one or more patient (which Jdeveloper allow multi select on jtable) on the table record it should automatically transfer or copied to the text field, i want to show on the form of PatientTransactionMaster like PatientNumber,PatientInsuranceNumber etc. to be save on db as new record, also non database field for view only like patient Name,address,age.
    IN forms i can do that by :PatientTransactionMaster.PatientNumber := :blocksearch.PatientSearchNumber ,etc.....
    or an item trigger to populate the said PatientTransactionMaster block. ( select .... into :PatientTransactionMaster.PatientNumber,etc....)
    Any suggestion,links,sample is highly appreciated.
    Sorry for my english.
    Thank you very much

    Hi,
    Do you want to create a detail record that will include some values from your master record??
    Or do you want to create a record with values from your Search criteria, only in the case you do not have any results?
    if it is the second case.
    When do you want to do that? After a press of button? or immediately?
    In general you have to handle the values from search criteria.
    Additionally, if you use ViewCriteria, you have to have bind variables for your search criteria that you will want to use.
    So in general, you have to know the values by using bind variables, understand that the query has no results (This can be done in many ways, depending on your implementation. if you are using a button, you could make a disable condition with iterator.estimatedRowCount property.)
    Perform the insert operation with the values from the bind variables.
    Regards,
    Dimitris.

  • How to send a predefined email after clicking on an Insert button in a Form?

    Hi,
    I created my form ( three fields) where I enter a three values.
    I want an email be sent every time new values are entered and the insert button clicked.
    Do you know a way on how to do it please?
    Thanks
    Khaled.

    Hi,
    I do not know of a way within Portal to automatically send an email, but the database has a utility (utl_smtp) that will allow you to do so very easily. You can use Portal to insert your data and then put a trigger on your table that fires after the data is inserted that calls a procedure that will send the mail.
    Here is an example of a procedure that I have used to send mail (you can get all of the info on utl_smtp in the Oracle docs). I have a Portal form that allows the user to input three values and once they click 'insert' and the data goes into the table, I have a trigger that fires 'after insert' and runs this procedure:
    PROCEDURE send_register_mail (sender in varchar2,
    email varchar2,
    date_of_class date)
    IS
    mailhost VARCHAR2(30) := 'my.mailserver.com';
    mail_conn utl_smtp.connection;
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, email);
    utl_smtp.rcpt(mail_conn, '[email protected]');
    utl_smtp.open_data(mail_conn);
    utl_smtp.write_data(mail_conn, 'Subject: Platform Training registration request'||utl_tcp.crlf||'Content-Type:text/html;'||utl_tcp.crlf||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn, sender||' would like to attend the POC training scheduled for '|| date_of_class);
    utl_smtp.close_data(mail_conn);
    utl_smtp.quit(mail_conn);
    EXCEPTION
    WHEN OTHERS THEN
    -- Handle the error
    htp.p('There was an error processing your registration. Please contact the site administrator');
    END;
    Hope this helps.
    -melissa

  • How to insert a date in a numbers cell from applescript?

    Hey guys,
    I was just wondering, I got this list of dates that i want to change with this handler that i call datachanger, i use it to seperate dates like these 1994-11-07 and reassemble them. Now what i would like to do is to reassemble them in such a way that i can insert every item in datalist in numbers cells. Now it gives me a weird error. How do i have to change the things between bas3 and bas2 to get it to fit in a numbers cell without an error? or do i have to use the quoted form of it before i can insert it?
    SCRIpt
    on datumchanger(datumlist)
        set a to 1
        set datalist to {}
        repeat with bas in datumlist
            set AppleScript's text item delimiters to "-"
            set bas1 to text item 1 of bas
            set bas2 to text item 2 of bas
            set bas3 to text item 3 of bas
            set datumitem1 to bas3 & "," & bas2 & "," & bas1
            set the end of datalist to datumitem1
        end repeat
        return datalist
    end datumchanger
    SCRIPT
    Help is so much appreciated:)
    Thank you so much in advance:)

    As I carefully wrote in several scripts posted here, when we want to insert a date in a Numbers cell,
    we must coerce it to a string.
    --{code}
    set date1 to "" & 1 & "-" & 1 & "-" & 2012 -- it's a string
    set date2 to "" & 1 & "/" & 1 & "/" & 2012 -- it's a string
    set date3 to current date -- it's a date
    set date4 to "1994-11-07"
    Here is the safe way to build a date which will behave well on every localized version.
    I use the short date string to set the time component to 00:00:00 *)
    set date5 to date (short date string of (current date))
    set year of date5 to 1943
    set month of date5 to 12
    set day of date5 to 31
    tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
              set value of cell "B2" to date1
              set value of cell "C2" to date2
              set value of cell "D2" to date3 as text
              set value of cell "E2" to date4
              set value of cell "F2" to date5 as text
    end tell
    --{code}
    On my machine the format yyyy-mm-dd is accepted but I don't remember if it's the standard behavior or if I added this format in the dedicated resource file.
    Yvan KOENIG (VALLAURIS, France) lundi 30 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • How to insert sign date "now()" in database ?????

    I am a newbie.  Using DW CS5 I have been able to get a number of web pages on my web site to work well.  My problem is with my “sign in form”.  I want to add in the sign in form a hidden field for the date that the user signs up.
    But the signup_date value in the database is not been entered.  I do have a “work around”.  If I replace the last “%s” in the $insertSQL statement with NOW(), the correct signup_date is entered in the database table “users”.  However, I want to learn to do it “right”.  My questions:
    1.      What is the “best” way to accomplish my desire results?
    2.      What do the “%s” stand for in the $insertSQL statement?  I think it is an array, but I do not understand this line of code that DW generated.  Can you explain is plain English?
    Below is the important part of the code (I hope I sent enough to explain the problem) for the sign form: (disregard the /////// they are only there to indicate different sections of the code).
    //This is the code from the input form for the hidden field "signup_date"
    </tr>
        <tr>
          <td align="left" valign="top"><input name="signup_date" type="hidden" id="signup_date" value="NOW()" />
          <td><input type="submit" name="Submit" value="Join Now!"></td>
        </tr>
      </table>
    //This is the dreamweaver code to insert the date into the data base:
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "frJoin")) {
      $insertSQL = sprintf("INSERT INTO users (first_name, last_name, email_address, username, info, user_level, signup_date) VALUES (%s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['first_name'], "text"),
                           GetSQLValueString($_POST['last_name'], "text"),
                           GetSQLValueString($_POST['email_address'], "text"),
                           GetSQLValueString($_POST['username'], "text"),
                           GetSQLValueString($_POST['info'], "text"),
                           GetSQLValueString($_POST['user_level'], "text"),
                           GetSQLValueString($_POST['signup_date'], "date"));
    Thanks !!

    I do have a “work around”.  If I replace the last “%s” in the $insertSQL statement with NOW(), the correct signup_date is entered in the database table “users”.  However, I want to learn to do it “right”.
    Your "workaround" is actually the correct method. The way that you think is "right", by entering the date into a hidden field, is actually the wrong way. Hidden fields can be manipulated. Inserting data directly into the query is the desired method, like the method you are currently using. It's not a "workaround", it's the correct method. You hidden field is not working because you have not told the page that the NOW() in the hidden field should be processed through php. NOW() is MySQL function. Use php to echo current date in hidden field if you want to use the "wrong" method of processing the date into your query.
    <td align="left" valign="top"><input name="signup_date" type="hidden" id="signup_date" value="<?php echo date("Y-m-d H:i:s"); ?>" />

  • Inserting blob data into database

    Hello everybody,
    I need insert blob data into database. that data i need to get from form
    can i use request.getParameter(""); for getting that file.
    Plz help how to get data from form to servlet and through callablestatement i need to insert into database.
    regards,
    Anil

    Hi,
    1) first create a form with file element
    first.jsp
    <form action="GetData" enctype="multipart/form-data" method="post">
    <input type="file" name="datafile" size="40">
    <input type="submit" value="Send">
    <input type="reset" name="Reset" value="Cancel">
    </form>
    GetData.java
    // servlet file
    public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
    res.setContentType("text/html");
    PrintWriter out = response.getWriter();
    try {
    System.setProperty( "jdbc.drivers", "com.microsoft.jdbc.sqlserver.SQLServerDriver" );
    Class.forName( "com.microsoft.jdbc.sqlserver.SQLServerDriver" );
    con = DriverManager.getConnection( "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=JAVATEAM;SelectMethod=cursor;User=sa;Password=urpassword" );
    PreparedStatement pst = con.prepareStatement("insert into uploads(binaryfile) values(?)");
    FileInputStream fis=new FileInputStream(request.getParameter ( "datafile" ) );
    byte[] b= new byte[fis.available()+1];
    fis.read(b);
    pst.setBytes(1,b);
    pst.executeUpdate();
    pst.close();
    con.close();
    catch(SQLException e)
    out.println ( e);
    catch (ClassNotFoundException e)
    out.println( e );
    }Here in doPost(), i create preparedstatement,
    now you to create one procedure for insert
    and by using callable statement you just call that procedure and pass this byte b as arguments,
    now its in your hands
    my idea is over.

  • Creating a Data Entry Form combining 2 or more tables like a Master Detail

    I have a client requirement to create a data entry form which shows fields from 3 different tables joined by linking key. The data entry form should allow the user to enter a new record details. This should populate into 1 or more tables.
    Example: User table with userid,username. userRoles with userid,roleid. The user can have one or more roles. There are 4 roles and possibility of expanding. The data entry form should show userid, username and all the possible roles fetching from a look-up table roles_lookup which has role_id, role_description. When a new user is created with 4 roles selected the system should create one user record and r userRoles records.
    What is the best approach.
    Thanks in advance.
    Satya

    I found the solution. We can create a database routine to which we pass all the values and in the routine we create two different insert statements. Based on the number of roles selected we can control the loop to create number of records in role table.
    Satya

Maybe you are looking for

  • Problem with widgets in Mountain Lion

    I just installed Mountain Lion on my Macbook Air. My widgets (stocks, weather, etc.) are not connecting to the internet and are left completely blank without information. Anyone know how I can fix this?

  • I can't print from my iPad. HELP"""""

    I have an HP 8500 printer.  The firmware is updated and I can't seem to discover it in my iPad. Do I have to download an app so I can print?

  • How to Transport a Screen Exit

    Hi All, I have created a Project in CMOD which has a Funciton exit and Screen exit. Now i have saved all the thins including Project, Funciton Exit in Dev. Class under a Request. But i am not able to save the Screen exit in Dev.Class. it is getting s

  • Data Authorization for info-objects

    Dear Experts, We have designed a query in costing displaying the plan and actual costs by cost center. Our requirement is that that users shoul be able to see only those cost centers in the query which are relevant to them? How can I acheive this wit

  • Weird error in default log

    Any idea what this is. In checking with colleagues who might run reconstruct, no one had... Does it run automatically? It seems to have failed, perhaps crashing and the restarting the store? We are running 6.3-5.02. (120228-25/Solaris Sparc). [12/Jun