How to set query SQL on db throug item value?

Hi
I've two pages:
the first page contain the item textfield value (P1_NAME) and second page contain the query SQL.
Where the query sql instruction insert in the second page rendering?
In the Items, in the buttons, in the computation, in the process?
How display the results of query?
Help Me!!!

On re-reading I think I get it. When you open the second page, which could be anywhere, you'll have to tell me (could be a Branch, could be a linked column in a report, could be triggered from a button). Whervever the code that opens the second page is, you will see a setting labelled "Target is a" and the chosen selection will be "Page in this Appication" Right under that, you will see two other fields labelled "Set These Items" and "With These Values" this will let you set whatever items you wish on the page that you are opening.

Similar Messages

  • How to set Query SQL Statement parameter dynamically in Sender JDBCAdpter

    Hi All,
    I have one scenario in which we are using JDBC Sender Adapter.
    Now in this case,we need to set Query SQL Statement with a SELECT statement based on some fields.
    This SQL statement is not constant, it would need to be changed.
    Means sometimes receiver will want to execute SQL statement with these fields and sometimes they will want to execute it with different fields.
    We can create separate channels for each SQL statement but again that is not an optimum solution.
    So ,I am looking out for a way to set these parameters dynamically or set SQL statement at Runtime.
    Can you all please help me to get this?

    Shweta ,
    <i>Sometimes receiver will want to execute SQL statement dynamically</i>....
    How you will get the query dynamically? Ok Let me assume, consider they are sending the query through file, then its definitely possible. But u need BPM and also not sender JDBC receiver adapter instead, receiver JDBC adapter.
    SQL Query File ->BPM>Synchronous send [Fetch data from DB]--->Response -
    >...............
    Do u think the above design will suit's ur case!!!!
    Best regards,
    raj.

  • How to set query parameters to i5Grid

    Hello Everyone,
    I am working on creating i5Charts.
    I mapped query template and display template to i5Chart template but I need to pass the query parameters dynamically.
    How to set query parameters to i5Grid?
    Pls help with syntax.
    Thanks.
    Regards,
    Minakshi

    Hi Minakshi,
    Yes you can try the first 2 options listed by Rohit, the 3rd one however is not supported.
    The below syntax should work for you:
      1.  gridObject.getQueryObject().setRowCount(<Value>);
      2.  gridObject.getQueryObject().setParameter("RowCount", <Value>);
    You can check the documentation at the following link:
    http|s://<host>:<port>/XMII/JSDOC/i5ChartAllClasses.html
    You could also use the script assistant to check for the JS methods.
    Regards,
    Ria

  • How to set default SQL Native Client in SAP BO?

    Hello,
    is there any possibility to set default SQL Native Client? We must have two SQL NC installed unfortunately, 2005 and 2008. Issue is, that SAP BO chooses the 2008 by default and user must manually switch to 2005 to see pre-defined instances. Is there any way how to select SQL NC 2005 as default? Many thanks
    Best regards,
    Joe

    Hi,
    Try this procedures.
    1. Dont open your SBO program.
    2. Goto C:\Program Files\SAP\SAP Business One\Conf\ folder
    3. Delete file b1-local-machine.xml
    4. Log to SBO program.
    5. Apply all necessary authentication then select SQL_2008 then log.
    6. After logging exit to SBO program.
    7. Re-log again if SQL_2008 is already in default.
    Thanks.
    Clint

  • How to set query result to emai content?

    Dears,
    Since user want to get the email with content like a grid format, just like a sql query result with some columns and rows.
    Is there any simply way to set the sql query result to the email content?
    Thanks!

    Create a transaction or modify the existing one which is sending the email.
    Take the output of the SQL Query action block and use an XSLT action block (lookup the ones in the Transformation portion of the query template you are using in the SQL Query action block to find the one with an HTML output) to convert it to HTML. 
    Go the Web group of action blocks and find the HTML Saver.
    You can save it to the Workbench (actually NW) by using either web://<yourprojectname>/WEB/<yourfoldername>/<yourfilename> or db://<yourprojectname>/WEB/<yourfoldername>/<yourfilename> (web:// publishes it, db:// does not)
    Play around with it a bit to see what will present the data the way you want. 
    Good luck,
    Mike

  • How to set pl/sql function as background job in apex?

    Hi,
    I wrote a function which returns boolean value based on result.This function updates a table everyday.How to set this as a background job?or do I need to use dbms_job only?
    Thanks,
    Mahender.

    No, you can use APEX_PLSQL_JOB.
    Example:
    DECLARE
    l_sql VARCHAR2(4000);
    l_job NUMBER;
    BEGIN
    l_sql := 'BEGIN MY_PACKAGE.MY_PROCESS; END;';
    l_job := APEX_PLSQL_JOB.SUBMIT_PROCESS(
    p_sql => l_sql,
    p_status => 'Background process submitted');
    --store l_job for later reference
    END;
    full documentation link [http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/apex_plsql_job.htm#BGBCJIJI]
    If I help you, please stamp my answer as CORRECT or HELPFULL :)

  • How to dynamically create sql statement for Defaulting Segment Values?

    Hi,
    Navigation:
    1) Descriptive/Segments
    2) Query for DFF to be modified
    3) Uncheck “Freeze Flexfield Definition”
    4) (B) Segments
    5) Segments Summary form opens
    6) (B) open - Segments form opens
    Now, here I want to specify Default type as "SQL Statement" and in the default value field I want to use SQL statement with parameters (to evaluate the default value).
    The parameters should be pass at runtime from the form in which we have this DFF. The parameters value should be one of the values which get evaluated at runtime in the form window.
    Please suggest how we can achieve this?
    Or is there any alternative to achieve this?
    Thanks!!
    Regards,
    Narender
    Edited by: Narender Singh on Mar 30, 2010 7:47 AM
    Edited by: Narender Singh on Mar 30, 2010 7:48 AM

    Jason,
    it is possible, though not so simple as with a report.
    What you need to do is to create a pipelined function, that returns your date and count data. This pipelined function can be the base of a pseudo-table, which can be used in a select. For the pipelined function you need to define types for one row and a table to define the return-type for your function:
    create or replace type calendar_row as object (date_time date, description varchar2(250));
    create type calendar_table as table of calendar_row;
    Then you can create the package with the function:
    ================================================
    create or replace package dyn_calendar is
    procedure set_query(i_query in varchar2);
    function view_source return calendar_table pipelined;
    end;
    create or replace package body dyn_calendar is
    v_query varchar2(100) := null;
    procedure set_query(i_query in varchar2) is
    begin
    v_query := i_query;
    end;
    function view_source return calendar_table pipelined is
    TYPE cursor IS REF CURSOR;
    c_cal cursor;
    v_date_time date := null;
    v_description varchar2(100) := null;
    r_cal calendar_row;
    begin
    open c_cal for v_query;
    fetch c_cal into v_date_time, v_description;
    loop
    exit when c_cal%notfound;
    r_cal := calendar_row(v_date_time, v_description);
    pipe row(r_cal);
    fetch c_cal into v_date_time, v_description;
    end loop;
    return;
    end;
    end;
    ================================================
    Now you can set query in a PL/SL region before the calendar:
    dyn_calendar.set_query(SELECT count(*), ' || :P8_SOURCE_DATE || ' FROM ' || :P8_SOURCE_TABLE || ' GROUP BY ' || :P8_SOURCE_DATE);
    and you can base your calendar on the query:
    select * from table(dyn_calendar(view_source))
    Good luck,
    Dik

  • How to set a @age id to an item

    Hi,
    Could you please how I can set a page id to an item on the page? I have tried to create a tree using the following query on page 1, and also I have create a item P1_SCID:-
    ===
    select "SCID" id,
    "CID" pid,
    "SUBCATEGORY" name,
    'f?p=105:&PAGE_ID.'||"SCID" link,
    null a1,
    null a2
    from "#OWNER#"."CATEGORIES"
    ===
    When I click a link on the tree, I will move the page which is set to &PAGE_ID, then I want to set the value of page id to P1_SCID.
    Thanks and regards,
    Rui

    Sorry for confusing you, Scott,
    I am confusing substitute strings PAGE_ID and APP_PAGE_ID. Is PAGE_ID 'Build-in substitute string' for Oracle HTML DB??? I understand that I can use APP_PAGE_ID to get the value of the current page ID...
    Anyway, what I would like to do is the following:-
    1. Create a tree which is based on the above query in page 1. It means that the value of "SCID" is set as the one of PAGE_ID.
    2. When I click a link on the tree in page 1, I can go to page 13. In this case, I assum that the value of PAGE_ID will be set '13' because of SCID = 13.
    Then, I would like to set the value 13 to other item P1_SCID on page 1, and I also use the value of P1_SCID as the one of new item, P13_SCID on page 13.
    Any suggestions, please.
    Best regards,
    Rui

  • Querying SQL db based off of values in a CSV and exporting filtered list to a new CSV

    Hello, we use Office365 for our student e-mail accounts and are trying to appropriately license those accounts based on if they are currently enrolled or not (currently enrolled get the full license with OneDrive, SharePoint, Lync, Office download etc. while
    non-currently enrolled get e-mail only).  I have exported a list of UserPrincipalNames from Office365 to a CSV that have a particular license applied.  I want to compare that list against a SQL view that will identify if those UserPrincipalNames
    (found under the "Email" column in the SQL database) are currently registered for classes or not (we have a "CurrentlyRegistered" column populated with a "0" for not registered and a "1" for registered"). 
    I then need to export the filtered list of UserPrincipalNames to a different CSV so that I can use that second CSV to change the license in Office365.
    For example, I export a list of accounts from Office 365 that have the e-mail only license applied to a CSV named "Exchange.csv" that has a single column of data with a header of "UserPrincipalName".  I want to compare the accounts
    in the "Exchange.csv" to our SQL view (which among other columns, has one named "Email" that matches the values of "UserPrincipalName" and a "CurrentlyRegistered" column) to see if any have changed status to being currently
    enrolled so that I can flip their license to the full license. I would know this by returning any accounts that have a "1" in the "CurrentlyRegistered" column and saving those to a CSV named "Full.csv" that would have two columns
    with headers "Email" and "CurrentlyRegistered".
    I need to know how to connect to SQL from PowerShell and return the filtered list of accounts that have changed status.  I am hoping for something like:
    $constring = "Server=MyServer\Instance;Database=StudentEmails;Trusted_Connection=True"
    $SqlConnection = New-Object System.Data.SqlClient.SqlConnection
    $SqlConnection.ConnectionString = $constring
    $SqlCommand = New-Object System.Data.SqlClient.SqlCommand
    $SqlCommand.CommandText = $query
    $SqlCommand.Connection = $SqlConnection
    $SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
    $SqlAdapter.SelectCommand = $SqlCommand
    $DataSet = New-Object System.Data.DataSet
    $SqlConnection.Open()
    $SqlAdapter.Fill($DataSet)
    $SqlConnection.Close()
    $DataSet.Tables[0]
    Remove-Item C:\O365Operations\CSVs\Full.csv
    $query = Import-Csv C:\O365Operations\CSVs\Exchange.csv | ForEach-Object {Invoke-Sqlcmd -Query "SELECT [Email],[CurrentlyRegistered] FROM [StudentEmails].[dbo].[v_StudentEmailAccounts] WHERE CurrentlyRegistered = '1'"} | Export-Csv C:\O365Operations\CSVs\Full.csv
    -Append}
    Am I anywhere close with this?
    Thanks,
    Jeremy Hawks
    Systems Administrator @ Green River College

    My CSV has a single column with a the #Type in the first line, the header of "UserPrincipalName" in the second line and the rest of the lines having a single e-mail address, similar to:
    #TYPE Selected.Microsoft.Online.Administration.User
    UserPrincipalName
    [email protected]
    [email protected]
    [email protected]
    The "Email" column in SQL will have some matching values to the "UserPrincipalName" column in the CSV. 
    So if any of the (UserPrincipalName in CSV) values match the values found in the column (Email in SQL) then I want to export those e-mail addresses to a CSV so that I can use the new CSV to change the licenses in Office 365.
    When I run your modified code I get the following:
    PS C:\Windows\system32> $csv=Import-Csv C:\O365Operations\CSVs\Test.csv
    $csv|select email
    foreach($User in $csv){
         # find user
         if($DataTable|?{$_.Email -eq $user.Email}){
             Write-Host "User found: $($user.email)" -fore green
             #Select Email,CurrentlyRegistered | Export-Csv C:\O365Operations\CSVs\IW2.csv -Append
         }else{
            Write-Host "User NOT found: $($user.email)" -fore red
    email
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    PS C:\Windows\system32>
    If I change the command from
    $csv|select email
    to
    $csv|select UserPrincipalName
    Then I get a full listing of the e-mails in the CSV with none filtered out (so it is not comparing it to the returned data from the SQL table.
    Suggestions?
    Jeremy Hawks Systems Administrator @ GRC

  • How to set delv. completed in 2nd line item which created in PO by default

    Dear guru,
    When creating 1st line item by default the 2nd line item has been created. I understand that the 2nd line item is free because no net price has been stated but free good check box in not ticket. Further more the 2nd line is grayed out including all tab in item details. Meaning we can't do any changes in this line item.
    User set delivery completed in 1st line item but couldn't set in 2nd line item. This caused to this PO show still pending for delievery when run the report. How we can set this 2nd line item has delivery completed eventhough GR haven't done fully.
    rgds,
    nantha

    Dear Mahesh,
    The 2nd line is free good that assign with 1st line item. This has been set in purchasing info record under condition view. Thus when I create PO for 1st line item, system created 2nd line item as auto default. The issue here is the 2nd line item & all the field that in item details in PO become grayed out eventhough I go to ME22N. I cant do any changes on 2nd line item. I believe there would be some control maintain for free good. Please advice. Thank you.
    rgds,
    nantha

  • How to Locate "Query View u2013 Selection" web item in WAD

    Hi,
       Where/How can i find the "Query View u2013 Selection" web item in Blank Templete of a WAD
    or
    From where i can install it from Business Content
    Thanks

    Hi,
    Are you with 7.x WAD?
    This option will be available with that.
    Or else,after putting Analysis Item->Properties->General tab->Click "New Data Provider" icon->Select the Type dropdown as "Data Provider of Type Query View".
    This will list three radio buttons ""Query View","Query" and "InfoProvider" under "Define Data Provider Type".You can select "Query View" radio button and assign Query View.
    Rgds,
    Murali

  • How to set a sql query time out with jdbc:oracle:thin

    should i change the JDBC driver with jdbc:oralce:XA:thin or other driver with XA?

    SQL query timeout may be set with setQueryTimeout.
    http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Statement.html#setQueryTimeout(int)
    A query timeout bug is fixed in Oracle JDBC Drivers release
    10.1.0.2.0 (10g)
    FIXED BUG-2249191
    In the Server Internal Driver, setting the query timeout does not
    +(and likely will never) work. The query execution will not be+
    canceled when the timeout expires, even if the query runs forever.
    Further, after the query returns, the execution of your code
    may pause for the length of the timeout.
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_readme101020.html

  • How too set query print layout parameters?

    Hello,
    simple task:
    1. Open "Query Print Layout...": SBO_Application.ActivateMenuItem("4868")
    2. Handle new reports form: SBO_Application.Forms.ActiveForm (I know, the better solution should be get form with proper TypeEx and highest TypeCount, but now it doesn't matter)
    3. Select row with required report: m.Columns.Item(0).Cells.Item(row).Click(BoCellClickType.ct_Regular, 0)
    4. Run printing: SBO_Application.ActivateMenuItem("519")
    5. Handle new parameters form: ???
    How can I get newly created form containing report parameters (TypeEx "4000")? I wanna set proper parameters and click "OK" to show printed report. Doesn't work handling:
    - FORM_LOAD in ItemEvent
    - MenuEvent for "519" (is only BeforeAction
    - PrintEvent (executed after accepting parameters)
    - ReportDataEvent (passed FormUID belongs to reports list, not parameters)
    In each event I've listed all forms and there is no form titled "Query - Selection Criteria" with expected TypeEx.
    Is there any way to achive this?

    when you activate print preview of printing on selected User Query Layout, you can cacth the ET_FORM_LOAD event of formTypeEx =4000
    It is working. Please note if you do not have this event, you may check your filters (?)
    Then you can populate your values. Based on my experience the click ok button is not working.
    Tip: Search the forum in year 2009 i have posted there sample codes
    Regards
    J

  • How to replace a table name with an item value in report region SQL query?

    I've got a SQL query in a report region that goes like this:
    SELECT :P30_HIDDEN FROM v_dms_dataset
    GROUP BY :P30_HIDDEN
    P30_HIDDEN is populated from a textfield input. Why doesn't this work, and is there a way to achieve what I'm trying to do here? I really need the ability to dynamically generate SQL queries in this way.

    Ben - you could either:
    1. case when :P30_HIDDEN = 'COL1' then col1 else ... end
    in order to determine which column to select (only really useful if you have a small number of predetermined columns to select from), or
    2. generate the SQL dynamically.
    Set the report region to SQL Query (PL/SQL function body returning SQL query), then have something like:
    declare
    l_sql VARCHAR2(4000);
    begin
    l_sql := 'SELECT ' || :P30_HIDDEN || ' FROM v_dms_dataset
    GROUP BY ' || :P30_HIDDEN;
    return l_sql;
    exception
    etc.
    end;
    John.

  • How to set query title or heading

    Hi,
    How  can I set the query title or query heading. And also how can I creat text variable for query description.
    Thank you
    Joe

    Hi Joe,
    First, you can define query description when you first time save it. Then you can change it in query properties. But in the latter case the query description will be changed during the run time. When you select the query when you open it, the description will be original.
    Best regards,
    Eugene

Maybe you are looking for

  • HT1430 I cannot get yahoo mail.  The message asked for password for yahoo many times.

    In order to use Yahoo! Mail, please turn Private Browsing off. Please go to Settings » Safari » Private Browsing, and turn it off I cannot get yahoo mail nor send email on iPad 3.  I have OS 6 just upgraded.  It keeps on asking for password.  I think

  • Constant system overload errors

    Since yesterday I can't play any project anymore. When I hit play the projects plays for two seconds, slows down and a system overload error pops up saying 'system overload or disk too slow'. Logic crashes after that. Nothing on my system has changed

  • IPhone encryption question

    I'm looking for clarification on encryption on the iPhone 4 From what I understand, the encryption comes from OS4 and not the phone hardware itself. Is this true? Someone told me that he read an article (no link sorry) that the phone offers additiona

  • Function to know Decimals Currency

    I want to some function to know decimals currency, or format an input with a specific currency format. e.g. input 1234,5678 and USD output 1234,56 or 1234,57 Thanks and Regards, Sebastian

  • New Air won't boot after failed Migration

    New MacBook Air arrived this afternoon. First thing I did was run Software Update to apply the lates OS patches. Second thing I did was run Migration Assistant to transfer data from a Time Machine backup on an external USB disk. The old computer was