Run Procedure From A List Item

I am using Apex 3.2
I have created a list of the shared components, which I will be using as a menu on my Home page.
Is it possible to fire a procedure, once a certain item on the list is clicked. I do not want to put the process on the page that the list directs to, as I only want the procedure to run if they have come from the Home page and not any other page.
Any ideas appreciated.
Gus
Edited by: Gus C on Feb 3, 2011 12:59 AM

Hi Gus,
I'm not sure about adding to a list item, but you could create an application item and a couple of application processes that may be able to do that.
First, create an Application Item called G_LAST_PAGE
Second, create an Application Process that runs "On Load: Before Header (page template header)" that is a PL/SQL Anonymous Block of whatever your code needs to be. Make this conditional on "Value of Item in Expression 1 = Expression 2" and enter G_LAST_PAGE into Expression 1 and enter 1 into Expressioin 2.
Then create a second Application Process that has a higher sequence number than the first one. This should run "On Load: ..." and should be a PL/SQL Anonymous Block of:
BEGIN
:G_LAST_PAGE := :APP_PAGE_ID;
END;This should be unconditional
As the user moves from page to page (using your list item menu or by changing the URL or via links/branches), the value of G_LAST_PAGE gets updated. But before the update happens, the first process checks the value of G_LAST_PAGE - if it is 1 (ie, the user has just left page 1), then the process fires. Otherwise, it just proceeds to update G_LAST_PAGE with the page they are are now on.
Andy

Similar Messages

  • From SharePoint2013 list item data how to create Google Interactive Chart?

    HI All,
    From SharePoint2013 list item data how to create Google Interactive Chart?
    Thanks in advance!

    Hi,
    To push data from list items to Google Chart, we can use JavaScript Client Object Model or REST API to retrieve the data needed.
    Here are two links about using JavaScript Client Object Model to access list items:
    http://msdn.microsoft.com/en-us/library/office/hh185006(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    From the links from the official site of the Google Chart, we can find out the method to populate data into Chart:
    https://developers.google.com/chart/interactive/docs/quick_start
    https://developers.google.com/chart/interactive/docs/examples#gauge_example
    Best regards
    Patrick Liang
    TechNet Community Support

  • Eliminating the null values from popup list item

    Dear All,
    i create a popup list,at runtime it shows a null blank value among the values i specified while the combo box is not,
    i want to eleminate the blank null value from the popup list.
    Need Help.
    Thanks & Regards.

    Okay,
    i create a popup list, populate it in runtime with create_group_from_query builtin.
    now when i run the form and click the list item, it display a null value among the other values which are
    return from the create_group_from_query .
    the procedure is below
    procedure Department_proc is
    rg recordgroup;
    n number;
    begin
    remove_record_group('RG');------  this is another procedure which checks for Record group existance and remove it.
    rg=:=create_group_from_query('RG4','SELECT NAME,TO_CHAR(DEPT_ID) FROM TAB_DEPT_SECTION
    UNION
    SELECT '||'''All Departments'''||'as name,'||'''0'''||' as name from dual');
    n:=populate_group(rg4);
    populate_list('control_block.department',rg4);
    end;
    it display a null value among the other values for the first time is run the form,but when i click it and select a value from it
    and the onward click dont show the null value.i want to eleminate the null value even for the first time when the user run the
    from.
    Best Regards

  • Open references of other list items from a list item in the same window or tab

    Hi there,
    We have migrated from lotus notes to sharepoint. We have converted the lotus notes forms to sharepoint forms. Basically the list items are pages and there are links of other pages in a page.
    My problem is I want to open the other pages in the same tab or window and not in a separate window.(currently the links open in a separate window which is not the requirement.)
    In terms of sharepoint I would say,
    I have references(links)  to other list items of the list in a single list item. I want to open the other list items in the same window (tab).
    How can we achieve this?? If possible without much codes??
    Please suggest.
    Any help will be highly appreciated.
    Thanks in advance

    See:
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    For links opened via JavaScript you can look at this pref:
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • How to prevent RSS Viewer web part from overriding list-item CSS style?

    I am using SharePoint Online. I have a web part page with a number of web parts with links. Font size of the links is ~12px.
    If I add an RSS Viewer web part to the page, then it overrides the 'list-item' class CSS Style to something like 8px, which is unreadable.
    To correct this I have tried the following:
    1. Added the following code to a Script Editor Web Part on same page:
    <style type="text/css">
    .item link-item
    font-size:20px !important;
    .link-item
    font-size:20px !important;
    </style>
    2. Completely deleted all XSL from the RSS Viewer web part and replaced it with very simple formatting code which format the links within the RSS web part to 16px - but still the other links are set to 8px.
    3. Linked a custom style sheet to the relevant master page and set the link-item classes in there, ensuring that it is executed after the standard SharePoint css.
    ...but nothing works!
    It appears that, as soon as the RSS Viewer web part is added to the page it overrides the list-item style and then will not release it even if all the XSL within the web part is deleted!
    On deleting the RSS Viewer from the page and saving it, the links font size returns to normal.
    Does anyone have a fix/work around for this?
    Thanks in advance,
    Jimmy

    Hi Jimmy,
    I recommend to use “.link-item a” instead as the code below to change the font size of the links:
    <style>
    .link-item a
    font-size:20px !important;
    </style>
    And I tested the code above in my environment and it worked fine.
    Best regards,
    Thanks
    Victoria Xia
    TechNet Community Support

  • Run Procedure From a Report

    Hi All,
    I have what seems like a simple question. How do you run a procedure from reports? I have a procedure that I would like to pass some user defined parameters to from the parameter form, then run the procedure. The procedure populates a table that the report uses as a source for its data. In theory you should be able to give global values to your parameters and them use an after parameter form/before report trigger that kicks off your procedure. I have tried those "execute" commands from the reports help but no luck.
    Does anyone have the answer?
    Cheers,
    Bradley

    Hi Bradley,
    You would run the procedure like you would run a procedure in PL/SQL. Which means you should not include the word "execute".
    procedure_name(:p_param1,:p_param2);
    I hope this helps,
    Tom

  • Run procedure from SQL Workshop Command window?

    hi, this one is simple.
    how to run a created procedure from APEX SQL Workshop SQL Command window?
    simon

    Simon,
    begin [proc_name]; end;
    -Carsten

  • Unable to select the value from a list item in forms 6i

    Hi ,
    I'am using forms 6i. I have created a list item in my form as below.
    Item_type = list item
    list style - popup list
    elements in list - A, B, C,D
    When I open the form all the above values are displayed for the list item. But I'am unable to select the item( either A,B,C,D).
    Please let me know if I need to add any thing else programatically to acheive this. The block on whixh these values are diplayed is a datablock.
    This is very urgent. Any suggestions would be of great help.
    Thanks
    Deepthi

    If you have a list item where you have:
    Display A value 1
    Display B value 2
    Display C value 3
    Display D value 4
    If want to initial the value of the item to be A, you can set the initial value of the item to 1 in the property pane.
    Otherwise in an initialisation triger have
    :block.list_item := 1;
    HTH
    Tony

  • Order list from purchasing list item

    Hi All Retail expert,
    I have created purchasing list item. Now when i am releasing purchasing list thru wrfapc12, no order list created . only message comes ..please purchase list .
    Kindly suggest. I am really stuck where i am missing.
    With Thanks & Regards,
    Santosh

    Hi Kewin,
    Thanks for your replay.
    Yes. i am releasing pourchasing list in wrfapco2.
    afterthat when i am using wrfapc12 to create order list,below message is coming--
    There is no purchase list in selection.
    Kindly suggest.
    With Regards,
    Santosh

  • Dangers of calling restricted procedures from when-validate-item

    As you'll all know, you cannot call the restricted procedure go_item from within the when-validate-item trigger.
    I've read that it is possible to get round this utilising timers, and I have managed to get this working.
    However, I cannot help but think such procedures must be restricted for a reason. Therefore, I'd like to know if there are any known problems that might arise from implementing timers to call restricted procedures?
    Thanks
    Matthew

    Certain types of triggers can't call restricted procedures because there is internal navigation or validation going on during the trigger execution, and the restricted procedures could mess that up. However, when you use a timer, the restricted procedure doesn't execute until after the trigger has finished, so the internal navigation/validation is complete. Because of this, the timer technique is a safe one. If it's a non-repeating timer, it should have very little effect on network traffic and performance.

  • Running procedures from XSQL with PostgreSQL

    All,
    We are using XSQL with postgreSQL. It works fine till we try to run a postgreSQL Function. We setup the function to return a ref cursor, but it still didn't work. Below is the xsql file. Any help would be appreciated. Thanks.
    <?xml version="1.0"?>
    <page connection="pg-sunpos5" xmlns:xsql="urn:oracle-xsql">
    <xsql:ref-cursor-function max-rows="5" tag-case="lower" null-indicator="yes">
    card_type_f()
    </xsql:ref-cursor-function>
    </page>

    Here is a little more information on the problem. The definition of the postgresql function being run is below. Also the error message we receive when running the xsql template. Thanks.
    CREATE FUNCTION card_type_f() RETURNS refcursor AS '
    DECLARE
    rc refcursor;
    BEGIN
    OPEN rc FOR SELECT * from card_type;
    RETURN rc;
    END;
    ' LANGUAGE plpgsql;
    page>
    <xsql-error action="xsql:ref-cursor-function">
    <statement>card_type_f();</statement>
    <message>
    This Statement [] defines a procedure call (needs ?= call <stmt> to be considered a function.
    </message>
    </xsql-error>
    </page>

  • Run procedure from Java

    i have a procedure like this :
    create or replace procedure sp_InsertUpdate_T_STUDENT
    nResID out NUMBER,
    nID in NUMBER,
    vchNAME in VARCHAR2,
    vchSURNAME in VARCHAR2,
    nAGE in NUMBER,
    nCNAUTHORID in NUMBER
    as
    begin
    if nID<=0 then
    insert into T_STUDENT (NAME,SURNAME,AGE,CNAUTHORID) values (vchNAME,vchSURNAME,nAGE,nCNAUTHORID );
    else
    update T_STUDENT set NAME=vchNAME,SURNAME=vchSURNAME,AGE=nAGE,CNAUTHORID=nCNAUTHORID
    where ID=nID;
    end if;
    select ID into nResID from T_STUDENT where NAME=vchNAME and
    SURNAME=vchSURNAME and AGE=nAGE and CNAUTHORID=nCNAUTHORID;
    end;
    and in java i have getStudent method which call this procedure :
    String procname = "{call sp_InsertUpdate_T_STUDENT(?,?,?,?,?,?)}";
    OracleCallableStatement ps = null;
    ResultSet rs = null;
    int id = -1;
    try {
    ps = (OracleCallableStatement)conn._connection.prepareCall(procname);
    ps.registerOutParameter(1,OracleTypes.INTEGER);
    ps.setInt(2, beanClass.getID());
    ps.setString(3, beanClass.getNAME());
    ps.setString(4, beanClass.getSURNAME());
    ps.setInt(5, beanClass.getAGE());
    ps.setInt(6, beanClass.getCNAUTHORID());
    int n = ps.executeUpdate();
    but here is an error occure :
    java.sql.SQLException: ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "PAATA.SP_INSERTUPDATE_T_STUDENT", line 18
    ORA-06512: at line 1
    i don't know why :( please help me ...

    Paata,
    It appears to me that your question has more to do with PL/SQL than JDBC, so allow me to suggest the PL/SQL:
    PL/SQL
    Also, the PL/SQL Web page has links to sample code:
    http://www.oracle.com/technology/tech/pl_sql/index.html
    And you can also access Oracle's "PL/SQL User's Guide and Reference" from here:
    http://tahiti.oracle.com
    Good Luck,
    Avi.

  • Running sql from a text item

    Hi.
    I build record groups that display information for the user. These record groups are built on custom SQL that the user can add themselves. As this is open to errors I want to add a "Check Syntax" button.
    All it needs to do is run the query that the user types in and ensure it runs successfully and the required columns are in place. The entire SQL statement is held within a text item.
    If it errors i want to notify the user of the error that sql would produce,
    Any ideas on the best way to acheive this?
    Thanks

    i think with Dynamic SQL u can do this
    Set the query of Text item in a string and execute it using Dynamic query
    Execute immediate syntax
    Any error comes in Dynamic query return it to user
    Baig,
    http://baigsorcl.blogspot.com

  • How to run procedure from SQL Commands

    I have tried several ways, for example:
    EXECUTE POPULATE_HIERARCHY(121121);
    but I get the error: ORA-00900: invalid SQL statement.

    BEGIN
      POPULATE_HIERARCHY(121121);
    END;

  • Error when running workflow form list item - workflow manager SharePoint 2013

    I am getting the following error in the workflow services log when I tried to run a SPD 2013 workflow from as list item. The workflow page comes up with an "An unexpected error has occurred"
    page when opened:
    Error processing management request. Method: GET, RequestUri: http://servername:12291/$Workflows/$Instances?$skip=0&$top=100&monitoringParameter=1f51aa43-2f1c-4fc5-a86d-f638ca57c00d, Error: System.Data.SqlClient.SqlException (0x80131904): The procedure "GetInstances" has no parameter named "@OtherWorkflowStatus".
    at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
    at Microsoft.Workflow.Gateway.HttpAsyncResult.End[TAsyncResult](IAsyncResult result)
    at Microsoft.Workflow.Gateway.WorkflowServiceGateway.<>c__DisplayClass9d.<EndGetInstances>b__9c()
    at Microsoft.Workflow.Gateway.WorkflowServiceGateway.ExceptionFilter[T](Func`1 body)
    at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
    ClientConnectionId:d2039360-b352-4d81-9bb7-b647e2938d06
    Can't find anything on google.
    Edit: Ok, when I look at the error, it is saying the the "GetInstances" stored procedure in the WFInstanceManagementDB database does not have a parameter named "@OtherWorkflowStatus".
    For laughs, I added the parameter (which wasn't in there). Now I get the error:
    Procedure or function 'GetInstances' expects parameter '@OtherWorkflowStatus', which was not supplied
    It seems like there is something not right about my installation. Previously, I couldn't get the workflow backend service to run because there were config values missing from the workflow manager database. At the time I tried to uninstall/reinstall
    WFM to no avail. I eventually had to manually add the values to get it to work. Something is not right about the WFM install/config process.

    Here is what I had to do to get it working:
    Leave the WFM (Workflow Manager) farm using the WFM config tool
    Uninstall WFM, Service Bus, and the CU's from control panel
    Uninstall Workflow Manager Client if it exists in the control panel, it didn't in mine
    Delete the following databases in SQL Server:
    SbGatewayDatabase
    SbManagementDB
    SBMessageContainer01
    WFInstanceManagementDB
    WFManagementDB
    WFResourceManagementDB
    Delete the workflow proxy service in Central Admin (important)
    Application Management > Manage Service Applications
    Highlight (select) the Workflow Service Application Proxy service (don’t click the hyperlink)
    Select “Delete” from the ribbon.
    Restart the server
    Reinstall
    Enable the workflow proxy service in CA for the web app, the 2013 workflow option will not show up in SPD unless you do this.
    Application Management > Manage Web Applications
    Select your web app
    Select “Service Connections” from the ribbon
    Check the Workflow Service Application Proxy item and click “OK”

Maybe you are looking for

  • OPEN_FORM Built-In Call from Menu Doesn't Open the Form

    I am attempting to open a form from the menu, using the following PL/SQL code: OPEN_FORM('CODES_MAINT', ACTIVATE, SESSION); The forms compile, as does the menu. When the code is invoked, it is as if nothing happens. No error is thrown, but the form d

  • Deploy to jar

    Hi. I develop simple project based on JDeveloper 11G ADF Business Components     11.1.1.56.60 BPMN Editor     11.1.1.3.0.6.84 CVS Version     Internal to Oracle JDeveloper 11g Release 1 (client-only) Java(TM) Platform     1.6.0_23 Oracle IDE     11.1

  • Is there a way that I can call a Swing application

    Hi all, Is there a way that I can call a Swing application from html page. fox example when user clicks on the url in html will activate a swing local application thanks

  • Help with FCPX on Yosemite update

    I've recently updated to Yosemite and since doing so, I had to upgrade to FCPX 10.1.3. I updated to FCPX and now every time I go to open it, it tells me I need "4GB of memory is required to run this version of Final Cut Pro" and when it begins to loa

  • Please Explain the sequencer ( J2EE Code )

    Hi, The following code is a part of Dao, I could understand the flow of the Dao classes but I really could not make out why this sequencer program is used. Please explain and send any URL which will help. Comments Plz. package lrnsource.src.com.lrn.d