Building a form based on a synonym that points to a database link

Hello
Finally I got APEX 3 installed on our test server. I am starting to work with it and I faced my first problem...
I need to build an application that will query and maintain data stored in another database server. This is because we were not allowed to install APEX in the production server. So I created a schema DEV_USER (which I associated with the workspace). In this schema I created a private database link my_link and a synonym:
create synonym the_table for the_table@my_link
I am trying to create a form to query and maintain that table via the synonym but I am not succeeding. The wizard does not work as the synonym is not listed in the table list. Then I created the form manually, creating the items, the Automatic Row Processing process etc. When I run the page I get the error Error ORA-01403: no data found.
Is it possible to use APEX in this scenario (accessing synonyms that point to database links)? What is the recommended approach in this case?
Thanks
Luis

Hi Kathryn
Thanks very much for your reply. I did as you suggested; I dropped the synonym and created a view:
create view my_table as select * from my_table@my_dblink
...and was able to create a multirow form based on that view.
However, when I try to update any value on the form, I get the following error when submitting it:
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01461: can bind a LONG value only for insert into a LONG column ORA-02063: preceding line from DB_LINK, update "APEX_DEV"."MY_TABLE" set "CAMPAIGN_ID" = :b1, "SITE" = :b2, "PERCENTUAL" = :b3, "DURATION_MONTHS" = :b4, "PRG_ID" = :b5, "AFF_ID" = :b6 where "CAMPAIGN_ID" = :p_pk_col and "SITE" = :p_pk_col2
I thought it was because the form was based on a view; so I dropped the view and re-created the synonym (using the same name). When I tried to submit the updates again I got this error:
Error in mru internal routine: ORA-20001: Error in MRU: row= 0, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "35636E5FDD251146DB4B7B56119E7914", item checksum = "A884FA378C851786DDFE3A33709CB23C"., update "APEX_DEV"."MY_TABLE" set
If you or anyone else could point out what I am missing, and maybe explain what those messages mean, it would be great!
Thanks
Luis

Similar Messages

  • Need to build a form based on a table in a different schema

    Hello all,
    I am still new to APEX. I have been playing with it for a few days.
    I have an APEX user 'demo' whose default schema is demo1.
    But I need to create a form that can insert,update and delete based on table 'employee' in schema demo2.
    Demo has all the rights on employee table in demo2. I also assigned the demo2 schema to demo user's workspace.
    But when I am building the form, demo1 is th eparsing schema, but in table/view owner only demo1 is available. I don't see demo2 even though I assigned it to demo user's workspace.
    Is it possible to build a form based on a table in a different schema? I tried creating a synonym, but it doesn't show up in the list of tables to select from.
    I don't want to create views or anything because there are many tables in different schemas and it's not possible to go on creating views or such for each one.
    I was able to access th etable in a report though by prefixing the table name with the schema name.
    I would appreciate if someone could point me in the right direction.
    Thanks!

    Varad,
    Thank you for the explanation. So from what I understand, every time I create a form or report based on a table in a different schema, just change the parsing schema in application definition to the new one and create the form or report. So this way my forms and reports or whatever can be based on different tables in different schemas and they would run fine when deployed in a runtime environment (provided the appropriate privileges are there on the objects in context)?
    I tried this and I was able to see the different schema and select the table and create the form. I haven't tested in runtime though.
    Seems like a feasible option, need to test all scenarios though. If this is a feasible solution then there is no need to create synonyms or views (I am not talking about others' scenarios such as security etc) etc. Just appropriate privileges will do it.
    Thanks Varad. Have you used this way of creating a form in your apps? I need to explore more to see if it breaks anything.
    So, every time I need to select an object, say a table, in a different schema I need to temporarily change the parsing schema to that schema in the application definition? Is that a correct statement?
    I will leave the thread open to see if anybody has any comments.

  • Form based on a synonym

    Hi,
    A simple question : is it possible to create a form based on a synonym? (public, private, no matter)?
    Suppose I want to deploy an application within a schema where all the synonyms (with the same names) are pointing to the real schema.
    Also, something is telling me that it is not possible because when I create a form region based on table, the lov is only presenting the "real" tables and views.
    The last question, if not possible, why isn't it? Many customers are using FORMS with this architecture, it will be a step more to bring them to APEX.
    Thank a lot, Bruno-Pierre

    Do you suggest anything to get around this? As I mentionned, many customers use the generic schema with synonyms approach so we'll have to be creative!
    I could create in the generic schema all the views used by the application (the synonym list). A lot of inconvenients but working...
    Bruno-Pierre

  • Create a tab that points to an external link ?

    Hi,
    Oracle 11g r2.
    Apex 4.1.1.00.23.
    I need to create a tab that points to an external link (actually a link to our old Forms application).
    For the moment, I simply added the tab "manually" in the template by writing the needed HTML after the #TAB_CELLS# substitution string.
    It works but it does not allow me to control authorization scheme, etc.
    Is there any way I can create a tab without associating it to an existing page, but pointing to an external link ?
    Thank you.
    Yann.

    Hi,
    Create page zero to your app if you do not have one.
    Create tab that lead to page zero.
    Edit tab and check what is tab name.
    Tab name (not label) is important as it is reguest when you press tab.
    Create application process On Submit: After Page Submission - Before Computations and Validations like
    apex_util.redirect_url('http://www.google.com');Set condition to process Request = Expression 1 and enter to Expression 1 your tab name (not label)
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Master/Detail Form based on view(s) - Bug?

    I made a master/detail form that is based on two views, and later master was a view and detail was a table. The form opens OK, but when I click query-button, the following error appears on the screen:
    An unexpected error occurred: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-16016)
    An unexpected error occurred: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-16016)
    When you create a form you are offered three different choices:
    1. Form based on table or view
    Build a form based on a database table or view.
    2. Master-detail form
    Build a master-detail form based on two tables or views. <---- ?????
    3. Form based on procedure
    Build a form based on a database stored procedure
    Is it at all possible to use views with master/detail?

    View should have a rowid. To create a rowid tables have to have foreign key relation. And also in where clause you should have PK-Field-Name=FK-Filed-Name statement.
    null

  • FORM based on a SP

    Build a FORM based on a database stored procedure (SP) in Portal is very easy.
    Is this easy too to modify the FORM if I modify the amount of parameter or data type of SP ?
    TIA,
    ferry

    When you click on your "find" button, certain javascript functions are called on the OnClick action that set the values of
    some hidden variables used by forms. Pressing Enter submits the form without calling the javascript functions and hence
    without setting the values for the hidden variables.
    You can write your own javascript to capture the pressing of the Enter key and then call the javascript functions yourself
    and then submit the form.
    You can write these javascript code using pl/sql htp.p('<script>....); in the "...before form display" additional pl/sql section.

  • Form based on a precedure

    Hi,
    I can not build a form based on a procedure other than the owner of application. The procedure name is not in the list to build form from. I can build form based on any tables without problem. And I can build form by type in the procedure name directly. Is it a bug or something I missed? We use 9iAS and Oracle 8.1.6.2 database, both on True64 Digital Unix.
    Thank you very much for the help.
    Wei

    Wei,
    Although you cannot see some of the procedures from onther schemas in the list you can still type in the name in field provided for procedure name like:
    <schema>.<package>.<procedure>
    and this will be recognized by the wizard.
    Thanks,
    Dmitry
    null

  • Can I use the wizards to build a form that submits multiple checkboxes as an array?

    I could do this by hand, but for maintenance ease would prefer that the toolkit understand all my forms. Has anyone else figured out how to do this?
    Here's the scenario:
    On page load, a query is used to get a recordset that builds a form representing every item in one table, each row represented by a checkbox. The checkboxes are all named with the same name, like "item[]", and the user needs to be able to check as many or as few of the checkboxes as necessary. Upon form submission, each item referenced in the array (representing an entry from that table) will be associated with the user as a new entry in a join table. It's a many-to-many relationship.
    My problem is that, in the wizard dialogs, there is no option for submitting checkboxes as an array. Checkboxes are only used as a boolean operator. Am I missing something?

    Hi,
    ADDT comes with a server behaviour called "Comma-separated Checkboxes" which lets you include comma-separated checkboxes in your form. Before applying it, there must be a recordset created in the Dreamweaver page, and also an input item added.
    This server behavior is accessible from the Application panel, Server Behaviors > + > Developer Toolbox > Form Controls > Comma-separated Checkboxes.
    The ADDT help file will tell you more about it, please see "Form Controls" -> "Comma Separated Checkboxes".
    >>
    Upon form submission, each item referenced in the array (representing an entry from that table) will be associated with the user as a new entry in a join table. It's a many-to-many relationship.
    >>
    This server behaviour uses a different "value storage & retrieval" method as explained in the help´s "View Comma-separated Checkboxes in browser" chapter, but maybe it will help you though
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotfo

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

  • How to build a form that traps all the IP adresses of the systems connected

    HELLO EVERYBODY,
    This is Paritosh Sharma,Actually I wanna know How to build a form that traps all the IP adresses of the systems connected.It's really Urgent

    6i on the web or client server? Webutil is not certified against 6i so if it's web I'm not sure, but I think it's in D2KWUtil for client-server.

  • Building a JSP-based Web Report with a Parameter Form

    Hi,
    I tried in building a report as shown in the example in OTN under reports in the url
    http://otn.oracle.com/products/reports/htdocs/getstart/examples/ParameterFormJSP/index.html
    i.e for Building a JSP-based Web Report with a Parameter Form. The directions in this document were not clear and if any one document which is clear with instruction will be useful to me. In this example it is shown with search criteria with sigle text box and if any one had idea & code to place an combo box and population of the record group in the combo box.
    Thank you in advance.

    hi,
    we will be releasing a new example w.r.t creating a parameter form using the reports JSP within the next month.
    as for your request for a combo box. this widget is not available via regular HTML form elements. you can either have a select list or dropdown list.
    for a regular select list you would use the following (only pseudo-code)
    <select ...>
    <rw:foreach>
    <option value="<rw:field .../>">
    </rw:foreach>
    </select>
    to populate a select list.
    regards,
    philipp

  • Adding an External Application that uses J2EE Form Based Security

    I'm trying to add an External application that uses the J2EE Form based security. i.e. uses j_username, j_password and posts to j_security_check.
    I don't really see how Oracle SSO will support this. The container needs to take control of a clients request and determines when the "Login" page is presented to establish credentials. Posting directly to j_security_check isn't working for me.
    I'm using Sybase EAServer 4.12 as the external application.
    Is this supported in Oracle SSO?
    Do I need to provide a different mechanism for logging user's in?
    Also, can someone explain what the benefit would be if I configured the EAServer app as a "Partner" app? I would still have to provide an interface for login. The input would be different but the end result would be the same I guess. What advantages does a Partner app have?
    Lastly, is there an NNTP server for these forums?
    Thanks.
    Darrell

    The cure for the symtops described below was to simply add a welcome-file-list
    element with appropriate welcome pages to the web.xml descriptor. It makes sense
    now that I have worked it out.
    Todd
    "Todd Gould" <[email protected]> wrote:
    >
    I have an application comprised of several JSPs that are protected via
    Form based
    security and enforce an SSL connection via the appropriate declarations
    in the
    web.xml. This aspect of the application seems to be working with the
    exception
    of one small quirk.
    If a user presses that back button until such time as the receive the
    container
    provided login page once again, and subsequently provide a valid user
    id and password,
    they are NOT successfully logged in. Rather, they receive the ugly 403
    Forbidden
    error that states that the server understood the request, but is refusing
    to fufill
    it. This only seems to happen given the above course of events involving
    the
    use of a back button in the browser (or selection of an item from the
    history
    list). I suspect that this has something to do with the session id being
    cached
    or something, but I'm not sure? Can anyone offer any assistance on this
    one?
    Also, does anyone know of a way of preventing the user from bookmarking
    this container
    provided login page as this also seems to be causing problems for users.
    If they
    bookmark the first protected page of the application all is fine, but
    if they
    bookmark the login page they receive the 403 error.
    Thanks in advance!

  • Is there a limit on number of columns that can be used to build a form?

    I am building a form, which has about 180 columns. When I added more columns, it can be compiled, but not able to re-open it to edit. Got "Internal Error " or "The request had invalid syntax" such kind of error message.

    You should probably post this question in the Oracle Forms forum for an appropriate response/comment on your question: Forms
    Regards,
    OTN

  • Building a form on a form's response?

    Anyone remember the really old days of paper forms when there would be a box, often at the bottom of the form, that would be marked "Office use only"? This was a way where after someone, let's say a customer, had filed out a form, then the office staff could complete their own form on that completed form. It was used for things like:
    adding comments
    showing progress
    adding approvals
    Now, we're trying to do the same thing in Adobe FormsCentral, but are a little flumoxed about the best way to go about this.
    We can build a regular form, no problem. The question is what's the best way to build the form that addresses the input of the first form? 
    Extract the data for the record in question and laboriously build a new form, adding comment boxes and such?
    Immitate the old school method and put the "Office use only" box right on the original form?
    Make a PDF of the record in question and just tell the office staff to add comments? (we don't like this idea because it is more laborious and requires office staff to have certain software and skills)
    something else?
    Anyone out there tried this? Anyone have other ideas?
    Thanks!
    Rosemary

    Hi Kathryn
    Thanks very much for your reply. I did as you suggested; I dropped the synonym and created a view:
    create view my_table as select * from my_table@my_dblink
    ...and was able to create a multirow form based on that view.
    However, when I try to update any value on the form, I get the following error when submitting it:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01461: can bind a LONG value only for insert into a LONG column ORA-02063: preceding line from DB_LINK, update "APEX_DEV"."MY_TABLE" set "CAMPAIGN_ID" = :b1, "SITE" = :b2, "PERCENTUAL" = :b3, "DURATION_MONTHS" = :b4, "PRG_ID" = :b5, "AFF_ID" = :b6 where "CAMPAIGN_ID" = :p_pk_col and "SITE" = :p_pk_col2
    I thought it was because the form was based on a view; so I dropped the view and re-created the synonym (using the same name). When I tried to submit the updates again I got this error:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 0, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "35636E5FDD251146DB4B7B56119E7914", item checksum = "A884FA378C851786DDFE3A33709CB23C"., update "APEX_DEV"."MY_TABLE" set
    If you or anyone else could point out what I am missing, and maybe explain what those messages mean, it would be great!
    Thanks
    Luis

  • Cannot see views in table list when building a form or report page

    We are new to APEX. accessing remote databases by defining database links in our apex instance and then views in the apex instance on the remote tables. We set up all this stuff, then when we go to build a report or form on one of the views, the views are not showing up in the popup list for us to choose from.
    Any ideas as to why this would be? it's a showstopper for our application right now. Any help would be greatly appreciated! Thanks.
    Edited by: moo on Apr 11, 2011 11:55 AM

    Did you define local synonyms for the objects? Try this and then come back..
    Thank you,
    Tony Miller
    Webster, TX
    While it is true that technology waits for no man; stupidity will always stop to take on new passengers.
    If this question is answered, please mark the thread as closed and assign points where earned..

Maybe you are looking for