Websheets: create link to APEX application in same workspace

Hi all,
I'm trying some things with websheets in APEX 4.0.2 and I'm getting quite satisfied about it.
Let's assume I have this situation:
app_id 110 : database application with alias MAIN
app_id 120 : database application with alias SEC
app_id 130 : websheet application
They all use the same authentication function, which works fine.
App 110 and 120 use the same authentication cookie and there are links between these two applications. No problem at all.
Now, I want to include links to and from the websheet application.
The link to the websheet is easy: ws?p=130:HOME:&SESSION. So far so good and no log-in required.
A link from inside the websheet application to a database application is something else.
I've already found how to use markup syntax to link to another page in the same websheet
[[HOME | Home link]]and to an external website
[[http://www.oracle.com | Oracle]]But I can't find the syntax to link to a database application in the same workspace as the websheet.
I could use
[[http://<myserver>.<mydomain>/apex/f?p=MAIN:HOME | Home application]]But this is not working flexible. I want to leave out everything before f?p
If I would install these three applications on antother server, my link won't work anymore.
Also, I can't find a way to include the session id. &SESSION. isn't working. So with the above syntax, I would have to re-login in my database application.
Then I tried this
[[f?p=MAIN:HOME | Home application]]But this isn't working at all. The websheet shows me the create page wizard and fills in the name of the page: f?p=MAIN.
Can anyone help me out on this?
Am I expecting to much from websheets at the moment, is this a missing feature or am I doing something wrong?
Thanks in advance!
Regards,
Bart

Hi,
Sorry originally I thought you were linking to websheets not from, I don't think websheets have the same capability as a database application, so i don't think apex picks up on substitution strings. Im not sure how processing with websheets work, but I think its very minimal.
Ive tried it myself, is there a reason you need the session? If I leave the session blank I can get back to the database application, I cant vouch if you're starting from your websheet but I imagine that apex will fill it in for you as its an apex url.
Cheers
Huia
Edited by: Hoppy on 05-Jan-2012 14:48

Similar Messages

  • Single log in for multiple apex application in same workspace

    hi forum.
    We created 5 applications based on same schema and all in one workspace now. Actually, initially they were created on different machines. now, we have to authenticate users from AD and depending on user type, have to allow or deny some modules. i have created one pager application which have 5 buttons and can control rendering of buttons according to user logged in but...the problem is, inside the applications, i have restrictions on some reports for some users...now one way was to do that is to create a log in for every application separately and thus every application would exactly know who is logged in. but that would be impractical as we need single-sign-on kind of functionality.
    please let me know how to have a single log in page work for all application inside the apex workspace so that every application would know name of the user currently logged in.
    for the 5 applications, i actually use No_Authentication authentication scheme. and i use following function initially for my one pager application to render the buttons to user or deny
    create or replace function getUserName return varchar2
    is
       userName varchar2(20);
       c owa_cookie.cookie;
    begin
        c := owa_cookie.get('LOGIN_USERNAME_COOKIE');
        userName := c.vals(1);
        return trim(userName);
    end;but i cannot user this function obviously in my 5 actual applications.
    help is requested please.
    bundle of thanks in advance.

    You can create one application that does the login authentication according to your authentication scheme. When authenticated, this login app sets a cookie. That's all the login app does (and maybe show a list of available apps to choose from).
    The other apps have an even simpler authentication scheme. The only thing they have to do is check the cookie and redirect to the login page (Session Not Valid URL) if there is no valid cookie.

  • Websheet functionality in normal apex application

    Hellow,
    I was wondering if it was possible to get some functionalities of the websheet aplications to a normal APEX application.
    What i need is:
    - The possibilitie to copy pase .xls data into a datagrid
    - Have an existing dynamic report using that datagrid ("data selection" instead of "Saved Report")     
    - Stil be able to insert, print, edit,...
    This is just the websheet functionality "Create Data Grid" "Copy and Paste" , and then have a data selection on that datagrid.
    Thanks
    Mathias

    Hellow,
    I was wondering if it was possible to get some functionalities of the websheet aplications to a normal APEX application.
    What i need is:
    - The possibilitie to copy pase .xls data into a datagrid
    - Have an existing dynamic report using that datagrid ("data selection" instead of "Saved Report")     
    - Stil be able to insert, print, edit,...
    This is just the websheet functionality "Create Data Grid" "Copy and Paste" , and then have a data selection on that datagrid.
    Thanks
    Mathias

  • Copy application to same workspace

    I need to duplicate an application on a workspace, but I would like to use new tables.
    How can I copy an application but have all of the tables now use a new prefix. such that every table table_name would now be prefix_table_name?

    Hello,
    Arie's suggestion is definitely the 'least pain' method, using Datapump makes it a breeze to clone the schema too, you could be up and running in minutes (depending on the size of your schema etc).
    Another, much more painful route, would be to write some code which loops round user_tables and creates (using dynamic SQL) your new tables. After that you can export your application, load it up into a text editor (since the export file is just a text file containing SQL and PL/SQL code etc) and then do a search/replace to rename all your references to the old tables. Of course you'll also need to handle any triggers, sequences etc that you might use too in reference to the original tables. I'm not recommending this approach at all however, since it's pretty painful (depending how many tables you're talking about) and much more prone to error (imagine if you have 200 tables and you fail to rename one of them so that your DML applies against the original table...what's the chance of missing that until it's too late?).
    I am using a host that does not allow me to have more than one Workspace Schema.Are you sure? As someone who provides hosting, I can't believe any other hosting companies would actually turn down extra business ;)
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd

  • Linking between ApEx applications without having to re-login

    Hi all,
    Application Express 2.1.0.00.39
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    This is talked about all over the forums but I'm fairly new to this and can't seem to get it to work. e.g.
    Re: handling of authentication between applications
    shared session
    So I have three apps 103, 101, 102. App 103 has a tree which contains links to apps 101, 102. When I click these links however, I am required to log into each of the applications separately.
    Other posts say to ensure I'm using the same cookie and to add "&SESSION" to my link URLs.
    So here's my tree query in app 103 which generates the links:
    select "ID" id,
    "PID" pid,
    "NAME" name,
    'http://127.0.0.1:8080/apex/f?p=' || id || ':1' link,
    null a1,
    null a2
    from "#OWNER#"."ORHA_APP_HRCHY"
    When I add "&SESSION" to the end of the query I get:
    Bad Request
    The HTTP client sent a request that this server could not understand.
    What is the correct URL?
    I believe I'm sharing a cookie because all three apps have an autogenerated login process:
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    Or maybe that's wrong?
    I'm using database account authentication. Maybe that's the problem?
    Thanks,
    Craig

    Well it appears for one thing I missed the "."
    Re: Use SESSION variable in URL from HTML region
    Changing my tree query to the following seems to generate the appropriate url:
    select "ID" id,
    "PID" pid,
    "NAME" name,
    'http://127.0.0.1:8080/apex/f?p=' || id || ':1:&SESSION.' link,
    null a1,
    null a2
    from "#OWNER#"."ORHA_APP_HRCHY"
    But it still asks me to login to each...

  • Error when calling a procedure from my apex application

    Hello.
    I want to create a small APEX application that can configure asynchronous change data capture (distributed hotlog) on certain tables.
    Basically, what the application should do is to simply create change tables. Everything else is set up as prerequisite.
    My problem is that when I run the following script from schema apex_cdd (using sqldeveloper) , it works; but if I run it from my apex application by calling it when pressing a button as a pl/sql process, it doen't work.
    BEGIN
    apex_cdc.enable_table_capture
         (     i_owner => 'staging_cdcpub',
              i_change_table_name     => 'g_changeTable',
              i_change_set_name     => 'Source_changeSet',
              i_change_source          => 'orcl01_cs',
              i_source_schema          => 'My_src',
              i_source_table          => 'G',
              i_column_type_list     => 'STARTDATE DATE,STATUS CHAR(1),NAME VARCHAR2(10),ENDDATE DATE,DESCRIPTION VARCHAR2(255),ID NUMBER(8,0),VALUE NUMBER(10,2)'
    END;
    If I look in the trace file, i see that the error is:
    CDCdebug:in ChangeTable.java enableDisabledTriggers: ORA-06550: line 1, column 8:
    PLS-00201: identifier 'SYS.DBMS_CDC_SYS_IPUBLISH' must be declared
    ORA-06550: line 1, column 8:
    PL/SQL: Statement ignored
    oracle.jdbc.driver.OracleSQLException: ORA-06550: line 1, column 8:
    PLS-00201: identifier 'SYS.DBMS_CDC_SYS_IPUBLISH' must be declared
    ORA-06550: line 1, column 8:
    PL/SQL: Statement ignored
    Other remarks:
    - My procedure calls: sys.DBMS_CDC_PUBLISH.CREATE_CHANGE_TABLE.
    - I gave the same rights that I gave for apex_cdc schema to flows_030200 and APEX_PUBLIC_USER schemas (just to see if it works), but it doens't.
    Is APEX calling the procedure from another schema ?
    Does anyone has an idea why this procedure crashes if called from APEX application, but works ok if called from the same schema APEX application runs on, but using SQLDeveloper ?
    Any thoughts are appreciated.
    Radian

    The procedure apex_cdc.enable_table_capture i created myself with no authid mentioned explicitly, so it uses definer rights, by default.
    BUt this procedure is simply a wrapper for sys.dbms_cdc_publish.create_change_table.
    When I look on the security model for this sys.dbms_cdc_publish, i see it runs under invoker rights. (http://www.psoug.org/reference/dbms_cdc_publish.html).
    The code is like this:
    CREATE OR REPLACE PROCEDURE enable_table_capture
              i_owner               IN VARCHAR2,
              i_change_table_name     IN VARCHAR2,
              i_change_set_name     IN VARCHAR2,
              i_change_source          IN VARCHAR2,
              i_source_schema          IN VARCHAR2,
              i_source_table          IN VARCHAR2,
              i_column_type_list     IN VARCHAR2
         IS
         BEGIN
              EXECUTE IMMEDIATE 'alter session set REMOTE_DEPENDENCIES_MODE=SIGNATURE';
              EXECUTE IMMEDIATE 'begin add_log@orcl01(i_tableName => ''G''); end;';
    sys.DBMS_CDC_PUBLISH.CREATE_CHANGE_TABLE(
    owner => i_owner,
    change_table_name => i_change_table_name,
    change_set_name => i_change_set_name,
    source_schema => i_source_schema,
    source_table => i_source_table,
    column_type_list => i_column_type_list,
    capture_values => 'both',
    rs_id => 'y',
    row_id => 'n',
    user_id => 'n',
    timestamp => 'y',
    object_id => 'n',
    source_colmap => 'n',
    target_colmap => 'y',
    options_string => NULL);
    END enable_table_capture;

  • About existence of added column in the database apex application.

    Hi,
    I have created an report apex application based on the table. Consider the table as Employee_details
    The columns in the Employee_details tables are
    *) Employee_id
    *) name
    *) ip_address
    *) host_name
    *) port_no
    *) sys_type
    *) email_id
    *) login_id
    *) sys_config
    *) sys_serial_no
    *) place_allotted
    *) internet_status
    and also i have created an application using this column......Now i need to add an extra column "contact_no" with this table.....
    That only also i added in the table by giving "Add column" the column is added in the table.....
    But i need to add that extra column "contact_no" in my current application along with the existed columns.
    I went to "Actions" in the application that i have created, and i shifted that "contact_no" column from "do not display side to the display side". Now it is displaying.
    But the problem where i getting here is, when i logged out of the application and when i again login into the application the "contact_ no" column that i added to show it in display field is not displaying...Why?.........
    Regards,
    Hari R

    Hi,
    If its a table column then its better to add it to the IR by modifying the Report Query of the IR.
    If you add it through the Action button then you need to save the report as Default Setting for it to keep appearing the next time you visit the page.
    Regards

  • How to restore or backup Apex application from Command line ? URGENT

    We have Oracle apex 4.1 installed in Oracle 11g R2 database (windows 64-bit) 2008 R2
    For some reason our database dictionary objects are corrupted.
    We wanted to backup our Apex applications in some workspaces ASAP.
    We are not able to access apex from http://localhost:7777/pls/apex/htmldb_login
    We have an underlying database schema export (expdp).
    1) Is there a way to export or backup the apex application without logging into the apex URL ? if yes how ?
    2) Does Oracle has any of its own native tool to backup and restore from command line ?
    Thanks in advance

    My (MS Windows) experience, if I may; perhaps you'll find something useful.
    You'll find the README.TXT file in /apex/utilities directory. Read it.
    In order to use APEXExport, you need JDK version 1.5 or higher. Check your version by typing (and viewing the result):
    C:\>java –version
    java version "1.6.0_06"
    Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
    Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)Its directory should be part of the PATH environment variable: on my computer, directory name isC:\Program Files\Java\jre1.6.0_06\binFurthermore, Oracle JDBC class libraries must be part of the CLASSPATH environment variable. Check whether it exists (in Control Panel - System - Advanced - Environment Variables). For my 10gXE, it is here:C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jarI couldn't make it work; didn't know that ".\" directory must be entered into CLASSPATH as well (found that information in Arie Geller's book). Therefore, my final CLASSPATH version is:.\;C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jarOK, setup is done. Now, go to your /apex/utilities directory and, from the command prompt, run (mind the upper case!)java oracle.apex.APEXExportwhich will show a short help.
    I chose to export the whole workspace. In order to do that, I need the workspace ID (got it from Apex's SQL Workshop; that might be a problem as you can't get there, can you? I can't tell how to find that information apart from SQL Workshop, but I'm pretty sure someone, who is much more experienced than me, will know it). OK, here's how you find it:select v('WORKSPACE_ID') from dual;Finally, here's the final step - export:C:\apex\utilities>java oracle.apex.APEXExport -db localhost:1521:xe -user scott -password tiger -workspaceid 1038408092496568The result are fxxx.sql files (where "xxx" represents application number).
    I hope you'll manage to export your applications; basically, nothing special here (except that ".\" directory in the CLASSPATH variable).
    Best of luck!

  • Can multiple APEX application use the same parsing schema?

    Hi,
    I have 4.2 APEX thru pl/sql Gatewat, 11gr2 DB and using theme 24.
    Due to the APEX limitation for version control I would be splitting 1 big ERP applications into 24 different APEX applications and each application would be considered as 1 unit for version control.
    I have about 800 tables and I would assume that all of these would need to be stored in 1 schema since a lot of these table are linked thru FK.
    Can I have multiple APEX APPS using the same parsing schema? or is there a better way to do this?
    Thanks in advance!

    Hi,
    Multiple applications can have same (one) parsing schema.
    You can test that on e.g. apex.oracle.com, where normally you have only one schema and you create multiple applications and all use that same schema.
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai
    Edited by: jarola on Jan 28, 2013 7:15 PM

  • Integrate ApEx application with Websheet application

    I have links in my ApEx application branching to a websheets data grid. (another application)
    How should I do the setup to avoid the users to login again?

    Hi,
    I have the same requirement but didn't have any more luck. Is this possible?
    Session 0 doesn't work, &APP_SESSION. neither.
    We could try to hack the custom authentication schemes and build our own session sharing cookie mechanism. Did anybody try that?
    Thanks,
    ~Dietmar.

  • Multiple instances of the same APEX application under SSO

    Currently we have several applications that are authenticated through Oracle SSO. The apps are authenticating correctly, but I can't be in multiple instances of the same application without having to re-validate through SSO when I move between instances.
    Scenario: I'm successfully signed into my "parent" application, app_id 1 through SSO. I click a custom link that opens the "child" application (app_id 2) to view widget "A". When the page is launched I see the usual "Redirecting to the Login Server for authentication" message (verifying that I'm signed in through SSO) and then it succeeds and takes me into app 2, displaying widget A. I click the next link to launch another instance of app 2 with a different APEX session id for viewing widget "B". This also passes through SSO and redirects me into app 2, displaying widget B as expected. But now if I go back to navigate anywhere on widget A in my first instance, it has to go back through the "Redirecting to Login Server." This now means the widget A window is valid, but the widget B window will have to redirect next time I use it (back & forth & so on...)
    So my question I suppose is: Is it possible/good practice to allow a single user to open multiple separate instances of the same APEX application using different APEX session_ids viewing different data under Oracle Enterprise SSO?
    Guesstimation: It seems like there must be a switch somewhere in SSO that says "allow multiple application instances yes/no"...but my problem may be APEX itself, or how SSO is tied into APEX... Sorry for the super-generic example, I'm not exactly sure where I should be looking to resolve this, and the closest similar problem I found on the forums was here: login to application twice in two seperate IE  windows clears other login

    reset your dock preferences. delete the file homedirectory/library/preferences/com.apple.dock.plist and log out/in. your dock, spaces and exposé will be reset to the defaults. see if the problem goes away.

  • Create dev and test instances of Apex on the same server and database

    I have a dev and prod instances of Apex on different servers. I want a test instance on the same server as the dev instance.
    I am using workspace export/import so all instance workspaces have the same workspace id. The application ID is the same on each instance, in the same workspace. This allows pages to be exported/imported in the differenct instances.
    My question is (I am sure it is obvious) can I have more than one instances of Apex on the same database (dev and test) and have each instance have identical Workspace IDs, etc.
    Sam

    Hi Sam,
    But you can have more than one database on the same server.
    What we do is create a separate database for each APEX versions we are supporting (we still have a customer using APEX 2.0).
    All the databases are accessed with the same APACHE config. All you have to do is change the DAD and have a separate dad for each database (i.e. each APEX versions).
    ex : /pls/apex_dev /pls/apex_test
    This way , I can run different APEX versions on the same server.
    Francis.
    http://insum-apex.blogspot.com/

  • Creating multiple users for an apex application

    Hi,
    I have an application deployed on apex 4.0. For my application currently there is only one default user having the same username / password as the workspace which this application is a part of. However, I need to have multiple users to be able to segregate roles. I have created a table with the required users and corresponding passwords, however, am unable to ,make the login page reference this table instead of the default username and password it currently does. Can someone please help me out.
    Thanks a lot.
    Gourab

    Hi,
    If you install demonstrative application to your workspace, you can see example how use custom authentication.
    This might also help
    http://www.oracle.com/technology/oramag/oracle/09-may/o39security.html
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/concept.htm#sthref96
    http://download.oracle.com/docs/cd/E17556_01/doc/appdev.40/e15516/build_app.htm#sthref132
    Br,Jari

  • SSO for multiple APEX applications on the same instance

    Hi All,
    We have an APEX instance with 2 applications configured in 2 workspaces.
    The instance is already configured to use SSO. I have followed thee Metalink note #562807.1 to do the SSO wiring.
    We are planning to incorporate SSO authentication for both the applications.
    Also planning to use different URLs (2 aliases for the server) for the applications.
    eg:-
    App1 will be using http://app1.us.oracle.com/pls/apex/f?p=100:10
    App2 will be using http://app2.us.oracle.com/pls/apex/f?p=200:10
    Is it possible to register SSO on 2 URLs for the same instance?
    Can I execute regapp.sql multiple times on the same instance?
    Please advice me.
    Thanks,
    Sajeesh

    Is it possible to register SSO on 2 URLs for the same instance?You should be able to register as many partner applications as you like. I suggest that you try it.
    Can I execute regapp.sql multiple times on the same instance?Yes, but the lsnr_token value must be unique. That's HTML_DB:hostname:port.
    Your applications in different workspaces will not be able to share sessions but you will probably get the single-sign-on behavior you need.
    Scott

  • How to create links to different files on the same page?

    Good day to all again,
    can someone please guide me through creating several links to different files on the same page. In other words, I am creating a photo page where my links are called Gallery 1, Gallery 2, etc... I would like to create links so when the User clicks on Gallery 1, they see Gallery 1 slide show in the frame; when the user then clicks Gallery 2, then they see Gallery 2 slide show in the window.
    My slide show files are done and I am using GoLive CS2. I have no knowledge of JavaScript or ActionScript/Flash.
    Any suggestions are highly appreciated.
    Thank you
    Alek

    Hi Diana,
    I'm a professional photographer and in the process of getting
    my finished site published. I used Coffeecup Photo Gallery. You can
    create multiple albums on the same page. Do a Google search for the
    address. It's easy, inexpensive, and it works. I tried to do this
    with the Photo Gallery in DW and FireWorks--but couldn't get it
    right. CC uses Flash and Javascript.
    Good Luck

Maybe you are looking for

  • Display PDF Documents Stored In Database

    Hi I apologise that this question has been asked many times, but I just do not seem to be able to find answer to my question in many other posts over the years. We have pdf documents stored in database and wish for client to view from forms session.

  • Female to female mini-displayport cable or adapter anyone?

    All that fuss about mini displayport to mini dvi adapter and even to micro dvi for the MBAs - let's face it, its not gonna happen people. Jobs has made it pretty clear about that, so lets stop hoping. Instead lets look forward, and now since mini dis

  • BAPI - DATA TRANSFER FROM .XLS FILE TO DB TABLE

    I am upload data from xls file to database table. first i have load xls file data to internal table (it_data) that is working. then from internal table to database table (zskv_rate) by function module (ZBAPI_RATE_SAVEDATA) which is not working. ex.  

  • WCSs (5.0.148) lose Terminal, Webfrontend and Web Auth

    Hello, 3xWCS 4404 with 5.0.148 and WCS 5.0.56. After serveral days, I were not able to connect to the telnet, SSH and webfrontend interfaces on all controllers. I tried management and service-port IPs. But I get ping responses from the interfaces and

  • Individual contact ringtones quit working

    Has anyone had an issue with ringtones assigned to a contact stop working?