Refering ref_codes table from forms

Hi
I am using headstart designer 6i. I created a form in designer. The base table contains a column named 'STATUS'. This column is linked with a defined domain.
Now I want to display abbrevation for the domain values on the form. Whenever I change the display property of status text field on my form, its start giving me error that soft_val called with wrong number of arguments.
It works fine if I change it from text field to text list.
How to make it work with text field.
Regards,
-P

I use several subqueries within a select statement.
These subqueries hold other subqueries. All these subqueries use an alias from the main select:
SELECT      rep.RepID
rep.Rep_Name
          ,(SELECT COALESCE (
                    (SELECT CodeTranslation
FROM T_I18N_CODES_TRANS
WHERE CODEID =
                         (SELECT CODEID
FROM T_I18N_CODES
where CODE = rep.REP_NAME)
                    AND LangChar = 'en'),
                    (SELECT codeTrans.CodeTranslation
                    FROM T_I18N_CODES_TRANS codeTrans
                    INNER JOIN T_Language lang ON lang.LanguageID = codeTrans.codelangID
                    WHERE CODEID =
(SELECT CODEID
FROM T_I18N_CODES
where CODE = rep.REP_NAME)
                    AND codeTrans.LangChar != 'en')
          FROM DUAL) name
FROM Rep
This works fine and I can reference rep.Rep_Name from the great-grandparent, but if I want to go one more level down (another subquery of a subquery I cannot reference that variable from the main select anymore.
Is there a limit somewhere or is there another way of referencing it?Yes there is a limit in outer query you can select only the columns of immediate subquery. You want to select a column of subquery (Say Q2) of subquery(Say Q1) then you will have to select the column in Q2 and Q1 as well ie from inner to outer queries.
Regards.
Edited by: virendra.k on Aug 3, 2009 2:34 PM

Similar Messages

  • Delete the records in a table from forms

    Oracle forms6i
    Hai All
    I am using forms6i and my need is i have generated a forms and the output is viewed through tables and i need to to delete all the records in the table from my forms while executing next time pls tell me
    Regards
    Srikkanth.M

    hi
    please try something like this.
    Begin
    Delete From Master_Tbl Cascade;
    forms_ddl('Commit');
    End;sarah

  • How to populate table from forms

    I'm working with forms 4.5 and have created a form that is based on table A. I need to be populate another table B which has the same fields as table A from this form. How do I do that?

    that's right but this way needs some more attention actually: make sure that insert block allows inserts and use only that table (not for instance view), then you have to call the form and browse throw all the records to fire the process and perform final commit.
    So the better way is to create procedure inside the form doing that automatically. You can use the block fields to assign values (:blockA.field1 := :blockB.field1). It seems to be easier to build and run.

  • Insert into other table from form

    Hi All,
    I have created a data block with view as a data source. I need to save the data from a form to some other table.
    I have tried using INSTEAD OF Trigger. howeverwhen I try to save, getting an error : ORA-01445 cannot select ROWID from a join view without a key-preserved table.
    I appreciate any suggestions on it.
    Thanks and Regards
    Sai

    Sorry, it looked at first as if you wanted help on the problem you encountered. After reading again your response to Zaibiman I see that you were just tricking us with the detailed explanation of the error.
    To insert into a table other than the one you queried, use the on-insert trigger.
    However, an Instead Of trigger on the view is usually the best method. If you have set the key mode, defined a primary key item and removed any references to rowid, as per Zaibiman, then it should work. You'll need your own locking method if the view uses Group By or Distinct.

  • Clear record in table from forms

    Hai
    I have created an attendace register in forms 6i. I have taken a textfile and processed and the result is genereated in the table. Now my need to know when i fetch new textfile for process my old data in the table must be deleted whether there is any builtin
    Is that clear_record is correct
    Regard
    Srikkanth.M

    Srikkanth,
    You said, "+Now my need to know when i fetch new textfile for process my old data in the table must be deleted whether there is any builtin+"
    The Clear_Record and Clear_Block built-ins simply "Clear" the record or the Block. These built-ins DO NOT delete the record or records. You can delete individual records using the Delete_Record built-in, which will delete the current selected record. To delete the entire table, you can either execute a SQL statement to delete all records from the table or you could use the Forms_DDL built-in to TRUNCATE the table.
    Hope this helps.
    Craig...
    If a response is helpful or correct, please mark it accordingly

  • Unable to see tables in forms with new username

    I have created a new user test1 assigned to the role that provides privilege for objects. Originally I created my database objects using username ktb (public synonyms and grants have been provided). Logging into SQL*Plus as test1 I can see and access the ktb tables/objects. However, I cannot see these tables from Forms Builder when logging in as test1, whereas I can as ktb. Is there something I am missing?

    Error 201 ...
    identifier .... must be declared
    Also, I am running Forms 10g against Oracle Expess 10g database.
    Message was edited by:
    devint

  • How can I access database from FORMS 6i?

    Dear co-developers,
    I am new to developing and just installed Oracle forms 6i but when i try to access my database schema tables from forms 6i I get TNS error saying it could not resolve the service name. I need help in two things:
    1. I wanna know how to (and where to) make appropriate change in TNSnames.ora file or any other file to make things work.(I request u to explain in detail)
    2. what is the concept of oracle homes? Oracle forms 6i takes a new oracle home. And Oracle 9i Database takes another home.
    I have Oracle 9i Release 2 installed on windows XP pro.
    Thanx in advance and looking for a quick response.
    Mukesh

    hi there,
    i wanted to know from you that are you able to access your database from sql*plus?,if yes then i will give you the step by step info on how to configure your tnsnames.ora file automatically or manually.
    Automatic step
    1.Open net 8 easy config from start menu under programs where ur forms application shortcuts are installed.
    2.if the net 8 easy config doesnt open make a windows search for the file name symcjit.dll if the file is found rename it to any other name.
    3.if after renaming the file still you are not able to open it then you have to go by the manual way.which is concluded next
    4.now you have to add the database alias here.click on the add service and press next.
    5.provide your database name here in the service name text box.dont change the port number leave as it is.
    6.now again give your database in the sid text field.
    7.hit next and test you connection with scott/tiger or any other user.
    8.if the test is succesfull exit the configurator and test you forms for connectivity.
    first try this if nothing happens i'll post the manual method.

  • How to point at a word table using forms  Ole and Word Document

    Hello.
    I like to know how to position at a word table and send data from a forms module using ole. I have done something similar before using bookmarks.It's easy and it works. My requirement now is to send data from a forms module to a word document, but this time, the word document will have bookmarks and a word table needs to be filled from data from the database. Just don't know how to get , access, reference the word table from forms.
    I'm still using forms6i in C/S mode.
    Help will be greatly appreciated ...!.
    Best regards, Luis ...!

    Hi Luis,
    The VBA code for updating the cell found at row three, column two of the first table, of the active document is as follows:
       ActiveDocument.Tables(1).Cell(3,2).Select
       Selection.TypeText("Hello, world!")I haven't time to convert it to OLE2, but hopefully it will at least give you an idea.
    Eric Adamson
    Lansing, Michigan

  • Exporting a single table from an acrobat created form

    I created a 5 page document InDesign (CS5.5), On one page I created a table that is 4 columns x 25 rows (with the first row being a header), using the table feature. I then exported to pdf and finalized the form in Acrobat 9.2 Pro. After running the Form Field Recognition the table was populated with the appropriate fields. I finalized the form and distributed. When the form is returned to me, I am trying to export JUST the information in this table to a spreadsheet (employee name, title, phone, email, ) and do not seem to be able to do so. Is this possible from a form? It doesn't seem like the pdf recognizes this table as a table any longer. It is a list of attendees, so I want to take this list from each returned form and combine them all into a master list.
    With the selection tool I have tried to select all the text > right click > Open Table in Spreadsheet and only the header rows appear. If I choose just the text and not the headers, then nothing appears. If I export the entire document then each cell of the table is its own column in excel, which makes sense since they all have different field names, but this doesn't make the spreadsheet useful. The only thing I have been able to do is select all the cells, copy into notepad, place a tab between each piece of information > save and open that document in excel. I am hoping there is an easier way. Basically all I am trying to do is have that table appear in excel as it does the pdf. I have searched several websites and have not been able to find anything that specifically deals with exporting a single table from a completed form.
    Perhaps I need to set the table field names differently? Any assistance would be greatly appreciated.

    The "table" idea here is just a design idea, the identity as a table no longer exists in a PDF.  The feature you're trying to use is for tables which are part of the regular PDF, not form fields.
    You can export form data. All fields, but then process to exclude the ones you don't want.

  • Create table from query in Form

    I want to create table in Form 6i, on form I have :sdate , :edate and :dpt Item.
    PROCEDURE TableView IS
    BEGIN
    FORMS_DDL('drop table test');
    declare
    v_com varchar2(4000);
    BEGIN
    V_COM := 'Create table test as
           select * from emp
    where hiredate between :sdate and :edate
    and deptno = :dpt
    FORMS_DDL(V_COM);
    end;When I was tried in TOAD It is showing error
    ORA-01036: illegal variable name/number
    Edited by: Ahmed on Oct 19, 2011 11:11 PM

    you can't use bind variables within forms_ddl. An option would be to not do any ddl at all, and do something like this:
    delete from test;
    insert into test(a,b,c)
    select a,b,c from emp
    where hiredate between :sdate and :edate
    and deptno = :dpt;cheers

  • Saving values into table from Interactive Form

    Hallo together,
    iam trying to do the example "Include Tables" (SAP Interactive Forms by Adobe - Galileo Press).
    It works, but not as described. When i want to change data in the interactive_forms ui element and press the webdynpro native button send, the value at the webdynpro table does not change. When i change the value at the webdynpro table and press the send button at the form or change the line at the webdynpro, the value in the adobe formular changes too. Thats one problem.
    The other problem is that i want to save the changed/added data from the formular at the database. What to do? The form layout is "ZCI Layout" and i added the script:
    DO NOT MODIFY THE CODE BEYOND THIS POINT - 800.20070708051308.406522.403406 - ContainerFoundation_JS
    I also added this into "wddomodifyview":
    METHOD wddomodifyview .
      DATA: lr_interactive_form TYPE REF TO cl_wd_interactive_form,
                 lr_method_handler TYPE REF TO if_wd_iactive_form_method_hndl.
      CHECK first_time = abap_true.
      lr_interactive_form ?= view->get_element( 'FORM' ).
      lr_method_handler ?= lr_interactive_form->_method_handler.
      lr_method_handler->set_legacy_editing_enabled( abap_true ).
    ENDMETHOD.
    I selected also:
    execute at: "Server and Client"
    I dont know what to do anymore.
    Best regards
    Philip

    Hi,
    To make an input enabled table. I would suggest to use TABLE element from the PDF library and then binding the columns from your context.
    Step 1: Library -> Standard ->Table
    Select create using assistance.
    Select body rows vary depending on data .
    Select number of Columns in your case it will be 4.
    Then proceed further and finish as per your need.
    Step 2:
    Select a table Column .
    Select Pallets->Object then chnage the cell type from Text to text field.
    Then click on binding tab and bind it to the respective field from hierarchy.
    Select upgrade the following properties radio button and check only "default value" option.
    This will create binding something like this $record.SCARR.DATA[*].CARRID
    Follow this for all other columns.
    Step 3:
    Now create a button in the View holding your form(you can also use SUBMIT button of form). On action event of this button right the following code to get all the changed values from Table.
    data lt_scarr type wd_this->elements_scarr.
      call method lo_nd_scarr->get_static_attributes_table
        importing
          table = lt_scarr.
    LT_SCARR will contain all the new values from Form. Then use this table to update ur database table.
    Thanks,
    Abhishek

  • Backing up tables automatically -- from forms

    I am recording some information from forms into a table. Now, whenever i insert a row into this table, i need the same record to be inserted into a back_up table also (for some reason).
    I need this to work at form level and database level also...
    i tried a trigger on the table..after insert..
    but it doesnt seem to work, as it fails..data getting inserted on the original table also fails..
    any pointer on this problem would be appreciated..
    thanks

    Which is the error message...?

  • Is it possible to copy tables from another application or excel into forms

    I wasnt to insert tables from another application or excel into forms. currently it copies over the information from the table but doesnt keep it in a table format? Is it possible to do this?

    Dear try67
    I just forwarded him to a page (by Adobe Expert) where I had hoped this will help him.
    It could also be your side.
    I don't think that it took a comment from another. Unless it is a personal good advice. I just wanted to help and free of charge
    Sometimes we overlook a detail by quick reading. Is this never happened to you ?

  • APEX  How do I create a Form based on a Database Table from other schema

    My APEX schema is WISEXP. I have a database table that resides in WISDW schema on the same database. I want to create Tabular form based on this table.
    I am not able to create a FORM based on the table from WISDW schema. I am able to create a FORM based on SQL though from this table in WISDW schema - but it does not do any action on Update/Insert rows.
    Appropriate Synonyms and grants are created. Is there a limitation or am I missing something? Please advise.
    thanks
    Rupen

    If Rupen is using 2.2 or 2.2.1, it is likely he is running into the bug described here: Re: Workspace to Schema Assignments
    In that case, it may be a necessary and sufficient workaround to assign the foreign schema to the workspace.
    Scott
    Message was edited by:
    sspadafo

  • XML insert from forms

    Hi Guys,
    I have an xml file that I want to insert into a table using the database stored objects in Forms6i on Windows2000 server.
    I am using Oracle 8i DB with XSU package.
    My insert script is written in PL/SQL and saved as a stored procedure in the database.
    My script is running fine if I call it from SQL Plus. However, if I call it from forms (as a stored procedure with input parameters) the script runs well for the first time and if run again, the whole application freezes and I have to suppress it with CTRL-ALT-DEL. Even if I enter another time, I can't access the stored procedure or run my script again.
    The code I am using is the following:
    declare
    charString varchar2(80);
    finalStr varchar2(4000) := null;
    rowsp integer;
    v_FileHandle UTL_FILE.FILE_TYPE;
    begin
    -- the name of the table as specified in our DTD
    xmlgen.setRowsetTag('BILC_IMP_LC_MVTS');
    -- the name of the data set as specified in our DTD
    xmlgen.setRowTag('mappings');
    -- for getting the output on the screen
    dbms_output.enable(1000000);
    -- open the XML document in read only mode
    v_FileHandle := utl_file.fopen('E:\oracle\ora81\bin','okay.xml', 'r');
    loop
    BEGIN
         utl_file.get_line(v_FileHandle, charString);
    exception
         when no_data_found then
         utl_file.fclose(v_FileHandle);
         exit;
    END;
    dbms_output.put_line(charString);
    if finalStr is not null then
         finalStr := finalStr || charString;
    else
         finalStr := charString;
    end if;
    end loop;
    -- for inserting the XML data into the table
    rowsp := xmlgen.insertXML('BILC_IMP_LC_MVTS',finalStr);
    dbms_output.put_line('INSERT DONE '||TO_CHAR(rowsp));
    xmlgen.resetOptions;
    end;

    Lets take for example you are having the response in following format
    response := '<Response>
    <r><name></name><r>
    <r><name></name><r>
    </Response>'
    Convert it to XMLTYPE using the following
    xml_type := XMLTYPE(response);
    select extractvalue(xml_type,'/Response/r[1]/name') into result from dual;
    '1' in [1] refers to the index of the similiar node.(r node)

Maybe you are looking for

  • Problem installing BI content in BI7

    Hi Gurus, i am installing the BI content i am getting the below error Object 0DB87SIC1 (InfoObject,IOBJ) could not be collected for object 0SD_C03 (InfoCube,CUBE) Object 0DBAREACOD (InfoObject,IOBJ) could not be collected for object 0SD_C03 (InfoCube

  • Parallax scrolling control

    I have created a horizontal scrolling page and then I linked each section with an anchor now I don't want user to scroll down the page  or move it, unless he click the given anchor button on the home page. is it possible?

  • [SQL startup] .......... ORA-01031: insufficient privileges

    Hi All I have connected with my Oracle 10g database as username:system. When I try to startup oracle instances using 'startup' command at SQL>startup it gives an error message that I dont have sufficient privileges. Can any one tell me how can I give

  • Please I ask the admins and moderaters delet my comment: "problema en activacion despues de reinstal

    Please I ask the admins and moderaters delet my comment: "problema en activacion despues de reinstalar sistema "

  • Unable to reset Time

    java.util.GregorianCalendar gc=new java.util.GregorianCalendar(); gc.clear(java.util.Calendar.HOUR); gc.clear(java.util.Calendar.MINUTE); gc.clear(java.util.Calendar.SECOND); These three lines in bold is supposed to reset it value to 0. But how come