Form and report on table apex 4.0

Dear all,
I installed Apex 4 in rdbms 11R2 based on Linux, created a workspace, everything went fine.
Now when I try to create a simple form and report based on a table I'm running into problems.
(I believe I'm doing something wrong, because I didn't see any similar thread) here is what I did:
table: master_hierarchy_level
LEVEL_ID     NUMBER(8,0)     No
LEVEL_NAME     VARCHAR2(20 CHAR)     No
LEVEL_DESC     VARCHAR2(320 BYTE)     Yes
CREATION_DATE TIMESTAMP(0) WITH TIME ZONE No
CREATED_BY     VARCHAR2(20 CHAR)     No
UPDATE_DATE     TIMESTAMP(0) WITH TIME ZONE     Yes
UPDATED_BY     VARCHAR2(20 CHAR)     Yes
VALID_FROM     TIMESTAMP(0) WITH TIME ZONE     No
VALID_UNTIL     TIMESTAMP(0) WITH TIME ZONE     Yes
After creating the 2 pages I edit the data fields at the form page to display by default the current date and time:
a) Format Mask: DD-MON-YYYY HH24:MI:SS
b) Source Type: SQL query ......
c) Source Value: SELECT TO_CHAR(SYSDATE, 'DD-MON-YYYY HH24:MI:SS') FROM dual;
For the created_by and updated_by fields I did:
a) Source Type : PL/SQL Expression or Function .....
b) Source Value : :APP_USER
Nothing else, when I run the report and click the create button everything is fine after filling in the required fields and pushing the save button I receive following error:
ORA-01400: cannot insert NULL into ("MASTERDB_V01"."MASTER_HIERARCHY_LEVEL"."CREATION_DATE")
error      Unable to process row of table MASTER_HIERARCHY_LEVEL.
I tried to find out why now already for several hours and have no clou anymore to look for,
is somebody able to provide me a hint :-) ??????
Thanks in advance, Olaf

Olaf,
when you changed the source type/value of your date fields you removed the connection from the page item to the database table/column.
In other words APEX doesn't know that your date fields need to be stored in the table.
Please set source type back to database column and use the default-value setting to set a default value for the date fields.
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
Work: http://www.click-click.at

Similar Messages

  • APEX:Getting error while creating form and report on webservice: ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.

    I am using Apex 4.2.2.00.11
    am using the following description to create a web service reference:
    web reference :REST
    Name :Yahoo Map
    URL :http://local.yahooapis.com/MapsService/V1/mapImage
    HTTP Method: GET
    Basic Authentication: No
    Add Parameter:
    Name       Type
    appid        String
    location    String
    Output Format: XML
    XPath to Output Parameters : /Result
    Output Parameter:
    Name       Path       Type
    Url          /text()      String
    Then i tried to create form and report on webservice:
    Web Service Reference Type: Yahoo Map
    Operation: doREST
    All the fields i keep as default
    I tick the checkbox (url)in report Parameter
    After clicking next whereever required i click create button
    I get the following error
    ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.
    Please someone help to solve this as i need to fix it urgently.

    336554,
    Looks like there is a 127-column limit on the number of report columns supported when using that wizard. Do you have more than that?
    57434

  • Getting error while creating form and report on webservice: ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.

    i am using the following description to create a web service reference:
    web reference :REST
    Name :Yahoo Map
    URL :http://local.yahooapis.com/MapsService/V1/mapImage
    HTTP Method: GET
    Basic Authentication: No
    Add Parameter:
    Name       Type
    appid        String
    location    String
    Output Format: XML
    XPath to Output Parameters : /Result
    Output Parameter:
    Name       Path       Type
    Url          /text()      String
    Then i tried to create form and report on webservice:
    Web Service Reference Type: Yahoo Map
    Operation: doREST
    All the fields i keep as default
    I tick the checkbox (url)in report Parameter
    After clicking next whereever required i click create button
    I get the following error
    ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.
    Please someone help to solve this as i need to fix it urgently.

    i exported the application from apex.oracle.com and imported it to our environment
    import went fine, but when I ran the IR page I got
    ORA-20001: get_dbms_sql_cursor error ORA-00904: : invalid identifier
    evidently the problem is a lack of public execute on DBMS_LOB, which is used in the generated IR source.
    while waiting for the DBA to grant privs on DBMS_LOB, changing the dbms_lob.getlength call to length() fixes the IR.
    however, i am not getting the download link on the associated form page... changed templates, that's not the issue -- we'll see if that's a dbms_lob issue as well

  • Apex 4.1 Form and Report on Web Service Report displays nothing

    Hello I created and tested a webservice using the test feature in Apex 4.1.
    I know the results is a string of 1 row.
    I created a Form and Report on Web Service. When I run the form there is nothing displayed in the Reports section its just blank.
    If I run the sql from the results region I get no data found.
    Is the problem the returned data is not stored in the collection?
    Edited by: Oracle Primavera on Oct 26, 2011 3:32 PM

    What would be the reason for the following.
    Testing the webservice in apex returns values.
    However when I run Form and Report on Web Service Report if I query the collection it is always empty?
    Does anyone have any experience on this issue? Is it a bug? Please some hints I have been trying for two weeks without success.

  • Build form and report on APEX RESTful service on another server

    Hi guys,
    I have been stuck with this for long time.
    I have this web service on server A ( an exposed report as web service )
    http://brown.maxapex.com/apex/apex_rest.getReport?app=112&page=8&reportid=REST
    - I exe this command on server A
    select utl_http.request('http://apex.oracle.com') from dual;
    and did not get error which indicates that the Network resources are available.
    I need to build a form and report based on that service on server B. But I could not. Can you help pls ??
    work space : fam
    user: test
    password: test
    Application 49141
    user: fateh
    password: fateh
    Regards,
    Fateh

    Hi guys,
    Pls, answer my questions. I am at the final stage of the game ..
    Regards,
    Fateh

  • APEX 3.2 Forms and Reports Conversion

    Hi,
    This link is a summary of APEX 3.2 new features (Forms and reports conversion and migrationn).
    http://www.oracle.com/technology/products/database/application_express/html/3.2_new_features.html
    Just wondering if I can convert and migrate Oracle reports 6.0 ? If yes, I would appreciate steps to convert my Oracel 6.0 reports to APEX.
    Thanks,
    Ribhi

    Hello Ribhi,
    For a readon I don't understand you have to start your migration project with uploading a Form (XML version). When you've done that you can add other types of source files, like Libraries, Object Libraries, Menu's and....Reports.
    So it seems (now) that you MUST have an Oracle Form to start with.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Error while using the 'Form and Report' wizard

    Hello,
    I’m trying to create a form and report on EMP, using the APEX wizards, but I’m getting the following error message:
    ORA-20001: Unable to create query and update page. ORA-20001: Unable to create query and update page. ORA-20001: Unable to create form on table. ORA-20001: Error creating shortcut id="" ORA-00001: unique constraint (FLOWS_030100.WWV_FLOW_SHORTCUT_IDX1) violated
    This is something local, on my APEX instance only, but any ideas what is wrong here?
    Thanks,
    Arie.

    Hi Scott,
    >> Do you happen to know where that PL/SQL shortcut came from? Created by you or an apex wizard?
    The original shortcut was probably created by an APEX wizard, but then I changed its type to ‘PL/SQL Function Body’. The shortcuts are not included in the translatable components, so I need a function to determine the application language, and issue the message accordingly.
    >> The type of the shortcut is not part of that constraint
    So changing the shortcut type back to the type I need, after the wizard finished its job, should not have any side effects. Correct?
    >> and the sequence always seems to be 1
    And we don’t have access to it, so we can’t change it manually.
    >> Our bug
    Can you please fill a bug report on that?
    I will post an enhancement request about including shortcuts in the translatable components, but I’ll appreciate you mention this issue also.
    Appreciate your time and efforts,
    Arie.

  • Form and report on the same page...

    Hi,
    I want to have a form and report on the same page... as soon as user enters the information and submit the form via button then the report should be able to display the addition...
    may I know how to accomplish this...
    Thanks in advance

    Hi
    Can you try like this
    1.First create an empty page and add a html region and template as form region and add the necessary fields to insert into table
    2. create a another region with type as "SQL Query" and template as report region and add the necessary fields for the reports.
    Once u entered the details into form region and created process and insert into table and then automatically the report region query will fetch the recently added row and displays in the report.
    Hopes this might helps you.
    Thanks & Regards
    Srikkanth.M

  • ORA-20001 error when creating Tabular Form or Form and Report

    Whenever I try and add a Tabular Form or Form and Report to my application i am getting the following error at the end of the Wizard.
    ORA-20001: Unable to create updateable report. ORA-20001: Error creating shortcut id="" ORA-00001: unique constraint (APEX_030200.WWV_FLOW_SHORTCUT_IDX1) violatedIt's not a problem I have seen when building other apps and clearly I have managed to corrupt this application somehow.
    I have loaded the problem onto apex.oracle.com for those that have access. The application number is 20325.
    Any help would be very much appreciated.
    Cheers Shunt

    Thanks! Never thought of that.
    --Andy                                                                                                                                                                                                                       

  • How do you extract SQL from Oracle Forms and Reports files?

    I am developing an "as is" data model for a government client for a 14 year old system that has three databases, 20 schemas, over 1500 tables, and over 23,000 columns. Needless to say, I do not plan to perform a manual mapping of data to screens and reports.
    Most of the system has been developed in Oracle Forms and Reports. I am trying to map the live tables and columns to forms and reports.
    The process here has been to save the forms and reports files as .fmb and .rdf files. The client does not have an available copy of Oracle Designer, which I understand could be used to extract the SQL.
    Is there a utility somewhere that can parse the .fmb and .rdf files to extract the SQL?
    Thanks,
    Jim Gearing

    Jim,
    I don't know of any utility that will do this. You can convert and save each fmb as a fmt so you can view/search the contents , but I don't recommend that approach.
    On the other hand, you download a copy of Oracle Designer:
    http://www.oracle.com/technology/software/index.html
    It usually is included with Oracle Forms and Reports.

  • How to do a partial refresh of a form and report on the same page?

    Hi all,
    im trying to make a page where you have a report on top and when you click the link instead going to the form page, the form page is on the bottom of the report. lets say im trying to send an id from the report to the item below so that i could fetch the rest of the item. however when i pass,other items would still refer to this one as null.
    if im not mistaken this could be done with submit,but i want it to be partial refresh..
    i tried steps here but this only worked when the lower part is a also a report:
    https://forums.oracle.com/thread/2345863
    i also tried this,but this actually submits a page..
    Grassroots Oracle: Apex Tutorial - Form & Report sharing the same page
    would it be possible to get a form and report in one page as partial refresh?
    Message was edited by: T101_cyberdyne

    If so, you need to create a dynamic action with a javascript action to set the id of the report row in the id form field, and a subsequent pl/sql action to fetch the record based on the id. You can use this record to set the other form field items.
    For the example in the above link the code looks as follows.
    the javascript action:
    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text()
    $s('P26_EMPNO',empno)
    the PL/SQL action:
    declare
    cursor c_emp is
    select * from emp
    where empno = :p26_EMPNO;
    BEGIN
    for r_emp in c_emp loop
      APEX_UTIL.SET_SESSION_STATE('P26_ENAME',r_emp.ename);
      APEX_UTIL.SET_SESSION_STATE('P26_JOB',r_emp.job);
      APEX_UTIL.SET_SESSION_STATE('P26_MGR',r_emp.mgr);
      APEX_UTIL.SET_SESSION_STATE('P26_HIREDATE',to_char(r_emp.hiredate,'dd-mon-yyyy'));
      APEX_UTIL.SET_SESSION_STATE('P26_SAL',r_emp.sal);
      APEX_UTIL.SET_SESSION_STATE('P26_COMM',r_emp.comm);
      APEX_UTIL.SET_SESSION_STATE('P26_DEPTNO',r_emp.deptno);
      APEX_UTIL.SET_SESSION_STATE('P26_ORDNO',r_emp.ordno);
    end loop;
    END;
    Hi Vincent,
    Yes! im looking for something similar. This looks interesting. I did look into apex_util.set_session_state yesterday but didnt know how to apply. perhaps i was doing it wrong.
    Question though, so basically first use the javascript to send the EMPNO from top report to the EMPNO in the form fields below.
    Then based on the EMPNO received in the form, do a loop to get the rest and put it into session. Correct?
    if i'm not mistaken i did something similar,but when i tried to set session for the rest,it refers to to the p26_EMPNO still as null..does the javascript sets the id of report to the id of the form or does it just send over?
    i'll try it out.
    Thanks.

  • How to store forms and reports in database

    Hi friends,
    How to store the forms and reports in database?
    when i save a form in database it doesnt prompt with any message
    and when i try to retrieve from the list it prompts me with a
    message
    can anyone suggest me the methods of storing the forms in the
    database and retriving from it.
    Jagadeesh
    null

    I believe this will help you
    To store forms & Reports in Database you need to run some
    scripts which are shipped with Oracle
    To install the SQL scripts:
    Start the Oracle Installer and select Custom Installation or
    Removal from the Oracle Developer Installation Options dialog
    box.
    Select Oracle Developer Database Tables from the Available
    Products list.
    Click Install.
    Installing these scripts creates a Start menu item called Oracle
    Developer R6.0 Admin and the associated submenu items Oracle
    Developer Build, Oracle Developer Drop, Oracle Developer Grant,
    and Oracle Developer Revoke. These menu items, when selected,
    run a script or a series of scripts to perform database
    administration tasks.
    Note: I tried to store forms in the database by creating tables
    but in forms fmb will store in database & fmx will store on
    clients machine so you have to install fmx on all client machines
    I tried to store fmx in database but..................!
    If any body knows how to store FMX in database let me know.
    Rao Guduru
    Jagadeesh (guest) wrote:
    : Hi friends,
    : How to store the forms and reports in database?
    : when i save a form in database it doesnt prompt with any
    message
    : and when i try to retrieve from the list it prompts me with a
    : message
    : can anyone suggest me the methods of storing the forms in the
    : database and retriving from it.
    : Jagadeesh
    null

  • Is there any impact analysis tool for Oracle Forms and Reports

    Hi All
    We are curretly looking at tools available to do impact analysis in Oracle Forms and Reports. This is for the maintainance of a large Oracle application developed using forms and reports 10g. We use Oracle Designer but only to maintain the db structure and not for forms and reports generation. Our intension is to find out the impact of db model changes, stored procedure changes in Oracle Forms and Reports. Please suggest any tools that are currently used for this purpose.
    I remember manually maintaining the CRUD matrix for Oracle Forms and Reports for maintainance purpose. CRUD matrix will have the list of all the tables which are affected by the module. But this is a manual activity and hence the responsibility is with the dev team to keep the document updated. Please suggest if there is any alternative to this way which can be more effecient and less error prone...
    I also wonder how these are done in Oracle ERP? how the apps team in oracle is maintaining the forms and reports?
    Thnaks in Advance
    Mahesh Mathew

    Quest (the makers of TOAD) have a tool called SQL Impact which gathers data from forms, reports, triggers, packages etc.
    FormsMate is a simple, cheap alternative for comparing or searching in forms.
    http://www.jockvale.ca/products.html
    Alternatively, you can export forms to xml (with iff2xml90.bat) and reports to jsp (with rwconverter) and simply grep those and your sql scripts. There are grep tools for windows if you need.

  • Forms and reports on Application Express

    Hi:
    Is it possible to import regular forms and reports( .fmb and .rdf) into the application express and run in the database xe/application express environment?

    Hello,
    Not yet possible...
    What you could do is run the Form in an iframe, but if you talk about migrating the forms and reports, the APEX Dev team is working on that.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://www.apex-evangelists.com/
    -- http://www.apexblogs.info/
    Message was edited by:
    Dimitri Gielis@AE

  • Tracking calls to Forms and Reports in an application - Migration

    Hello,
    This is an interesting case. I have an application that has a number of Forms and reports written for 6i. Before I start migrating to 10g, I want to have an estimate of the current usage for this app (for one month), namely the number of times users accessed the forms and the reports.
    For example:
    Form A accessed 675 times
    Form B accessed 30 times
    Form M accessed 0 times
    etc..
    sames things for the reports.
    Based on this statistics, I can say which ones should be migrated first, etc...
    Now, I was thinking about creating a table called USAGE and each time a user clicks on the menu that calls a Form or a report, I will update the corresponding record in USAGE.
    The problem here is that users can access a report or form from within other forms and as such the info I get from the Menu will be only a rough estimate. I need to point out that I don't want to open ALL the forms and check whether there are other calls from there.
    What do you think of this approach and if someone was faced with the same issue, what would be the best bet to get the usage estimate.
    Note: The app is used quite heavily.
    Thanks

    That's one possibility but the thing is that I don't want to open ALL the fmbs and then add that piece of code.
    That's why I want to just work on the Menu and try gather statistics from there. However, that will give me only a rough estimate.
    I was looking at Oracle Trace and I am checking whether I can get the required info (Forms and reports names) from this log for a client/server Forms app. However, I would prefer to see whether someone already had experimented with this.
    Thanks.

Maybe you are looking for

  • POSTing to a website

    hi, i was wondering how i would go about posting to a website form, and then getting the data that the form returns. is this easy to do? and can it be done from like a java application. i want to automate entering some information into a text field.

  • ActiveX puzzle: How to close/clea​nup IWebBrowse​r2 [Excel] Document?

    Hello!       Attached is a simple VI that uses the IWebBrowser2 (ActiveX) control to display an xls file. The problem is that I need to access the IWebBrowser.Document property, but that causes Excel to stay open. Run the VI with boolean=False and Ex

  • Problem running reports using webutil in Forms 10g

    This is about 3 dll files related to webutil functionality in forms 10g d2kwut60.dll jacob.dll JNIsharedstubs.dll I am running report which is using webutil functionality. So when I try to run report, our application server try to download above dlls

  • Applescript in Automator

    I'm having an odd problem. With iChat launched and online, Automator is returning an error of 'Application isn't running' when I run the following script: on run {input, parameters} tell application "iChat" set status to offline end tell end run Runn

  • OKR choose from 2 drives

    Hey guys, I'm looking to buy an SSD for my IdeaPad g780 and I'll replace the bluray/dvd drive with the ssd and an adapter. That way I can have enough storage and fast speeds. For the optical drive, I'll get an external case so I can still use it. Now