Run javascript with a taskflow input parameters

With the help of PS4 11 g JDev

I have a taskflow using javascript. When the taskflow was loaded, I need to execute a javascript function that uses my taskflow 2 input parameters.
I don't really know how I can run javascript with my input parameters.

A test, I added a commandButton control in my taskflow who will do the job:
<af:commandButton id="btnRefresh" text="Open">
            <af:clientAttribute name="long" value="#{pageFlowScope.pLong}"/> 
            <af:clientAttribute name="lat" value="#{pageFlowScope.pLat}"/> 
            <af:clientListener method="doNavigate" type="click"/> 
        </af:commandButton>
How can I do the same thing when the taskflow charge instead of having to press the button.

Please find attached examples based on your use cases:
http://adfsampleapplications.googlecode.com/svn/trunk/JavascriptOnLoadSample.rar

She calls a javascript function when loading pagefragment passing the input parameters of the taskflow.

Thank you
Nini

Tags: Java

Similar Questions

  • call run params in the taskflow with the results of the previous run

    I have a requirement to call the executeParams on the object from a point of view after the execution of the executeparams on another display object in a taskflow. I'm able to pass the variable to the view object binding 1 of taskflow input parameters. But variables bind to the view of the second depends on the results (current line, it returns only one row) execution of view 1st in the taskflow.

    How to bind to the 2nd display performance variables in the taskflow according to the results of enforcement of 1 view. The second point of view expects 2 parameters of the current line of the 1st viewiterator.

    Taskflow definition:

    ----------------------

    executeWithParams1stView-> executeParams2ndView-> .jsff


    The page definition for the second executewithParams with links, I configured. But the following returns no results of the 2nd iterator. But if I pass values hardcoded for the NDValue I get the correct results.


    < action IterBinding = "AgencyPoliciesIterator" id = "ExecuteWithParams" RequiresUpdateModel = "true" Action = "executeWithParams" >
    < NamedData NDName = "bPolicyNum".
    NDValue = "${data.renewal_policyterm_taskflow_renewal_policyterm_taskflow_ExecuteWithParamsPageDef.PolicyNum.inputValue}" "
    NDType="oracle.jbo.domain.Number"/ >
    < NamedData NDName = "bAgencyNum".
    NDValue = "${data.renewal_policyterm_taskflow_renewal_policyterm_taskflow_ExecuteWithParamsPageDef.AgencyNum.inputValue}" "
    NDType="oracle.jbo.domain.Number"/ >
    < / action >


    Thank you and best regards,

    S R Prasad

    Published by: oumar s Prasad on November 10, 2010 13:36

    Hello

    I don't know exactly what the problem with your application, but maybe you could try to create a method in the application module impl.
    If I understand correctly, you must run the firstVO as soon as the taskFlow is called and based on the line returned by one, run the secondVO.

    You can do this with a method in the ApplicationModuleImpl. I created an example:

    public void executeViewObjects(Number managerId){
        if(managerId!=null){
          getDepartments1().setNamedWhereClauseParam("inManagerId", managerId);
          getDepartments1().executeQuery();
          Row dep=getDepartments1().first();
          if(dep!=null){
            Number departmentId=(Number)dep.getAttribute("DepartmentId");
            getEmployees1().setNamedWhereClauseParam("inDepartmentId", departmentId);
            getEmployees1().executeQuery();
          }
        }
      }
    

    If you expose this method and drop in your taskFlow you can map it is the input of the taskFlow parameter input parameter.

    Gabriel.

  • How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    I s generic SOAP example/tutorial on my blog: get a serial number in a form using SOAP - KHKonsulting LLC

    The web service uses only a single parameter, but you should be able to adapt the code to two arguments without problems.

  • a program with input parameters

    Hi all

    I need assistance with my Planner. Can U help me?

    My stored procedure has two input parameters of type date.
    For example
    create package my_pck is
    Start
    Create procedure my_proc (begin_dt date, end_dt date) is
    Start
    null;
    end;
    end;

    now I tried to do a job with a program and a schedule like this:

    () DBMS_SCHEDULER.create_program
    program name = > "STORED_PROCEDURE_PROG"
    program_type = > 'procedure_stockee ',.
    program_action = > 'my_pck.my_proc ',.
    number_of_arguments = > 2,
    activated = > FALSE,
    Comments = > ' om program kwartaaloverzichten you h en die you Mélisande mbv een PL/SQL block. ");

    () dbms_scheduler.define_program_argument
    program name = > "STORED_PROCEDURE_PROG"
    argument_position = > 1,
    argument_type = > 'DATE');

    () dbms_scheduler.define_program_argument
    program name = > "PROCEDURE_PROG"
    argument_position = > 2,
    argument_type = > 'DATE');

    dbms_scheduler. Enable(STORED_PROCEDURE_PROG');

    () DBMS_SCHEDULER.create_schedule
    schedule_name = > "MAAND_KWARTAAL_SCHEDULE"
    repeat_interval = > ' FREQ = YEAR; BYMONTH = 1, 4, 7, 10; ") ;

    () DBMS_SCHEDULER.create_job
    job_name = > 'my_JOB. "
    program name = > "my_pck.my_proc"
    schedule_name = > "MAAND_KWARTAAL_SCHEDULE"
    activated = > FALSE,
    Comments = > ' om kwartaaloverzichten job you h en die you melisande. ');

    dbms_scheduler.set_job_argument_value ('my_pck.my_proc', 1, "trunc (add_months (sysdate,-4), 'MM')");

    dbms_scheduler.set_job_argument_value ('my_pck.my_proc', 2, ' trunc(sysdate, 'MM')-1' ");

    dbms_scheduler. Enable ('my_pck.my_proc');

    Then, I get this error:
    PLS-00103: encountered the symbol "MM" when expecting one of the following values:...

    When I tried this: "trunc (add_months (sysdate,-4), 'MM')"

    I get this error:
    PLS-00103: encountered the symbol "TRUNCATES" when expecting one of the following values:...

    I can't do it.

    My specs:
    OS: windows xp
    Database: Oracle 10 G XE

    The error has nothing to do with the Oracle Scheduler. This is how you should cite the quoted strings:

    SQL> SELECT 'trunc(add_months(sysdate, -4), ''MM'')' FROM DUAL;
    'TRUNC(ADD_MONTHS(SYSDATE,-4),''MM''
    ------------------------------------
    trunc(add_months(sysdate, -4), 'MM')
    
  • problem with pipe separated from the input parameters to call

    Hi all

    I have a requirment as...

    I have a Sp 10 which have 3 SETTINGS and 3 settings as shown below...


    PROCEDURE sample_sp1 (p_start_dt IN VARCHAR2,
    p_end_dt IN VARCHAR2,
    p_shift IN varchar2,
    p_out1 OUT t_bpd_nm, - array type
    p_out2 OUT t_target, - array type
    p_out3 to t_drr); -type of array



    PROCEDURE sample_sp2 (p_start_dt IN VARCHAR2,
    p_end_dt IN VARCHAR2,
    p_shift IN varchar2,
    p_out1 OUT t_bpd_nm, - array type
    p_out2 OUT t_target, - array type
    p_out3 to t_drr); -type of array



    .........


    ..........


    PROCEDURE sample_sp10 (p_start_dt IN VARCHAR2,
    p_end_dt IN VARCHAR2,
    p_shift IN varchar2,
    p_out1 OUT t_bpd_nm, - array type
    p_out2 OUT t_target, - array type
    p_out3 to t_drr); -type of array






    Now, I have to create a new SP. This SP, I have to call one of the top 10 SP and have to come back as a REF CURSOR.


    the entries to the new MS are 3 as... (shown below).


    create or replace new_sp (p_report_name IN varchar2,
    p_report_inputs IN varchar2,
    p_report_as_ref to ref_cur_type) is


    ..............

    where p_report_name is a name of sp
    p_report_inputs is the input to SP parameters with "|" separated pipes (ex: ' 23/04/2010 | 20/05/2010 | 2 ')
    p_report_as_ref is setting to return as an OUT refcursor.


    I'm unable to manage the setting shild (with tickets). How to separate input parameters and how can I call existing SP
    with these settings?


    friends... can someone help me please...


    Thanks in advance...

    What of it?

    with t as
    (select replace('500 Oracle Parkway| Redwood Shores| CA','|',',') str from dual)
    SELECT
      replace(REGEXP_SUBSTR(str,'[^,]+,'),',') first,
      replace(REGEXP_SUBSTR(str,',[^,]+',1,1),',') second,
      replace(REGEXP_SUBSTR(str,',[^,]+',1,2),',') third
      FROM t;
    
    ----
    500 Oracle Parkway      Redwood Shores      CA
    
  • Read a script title input parameters

    I'm sure it's a matter of javascript adobe newbie, but I watched for a while and do not find the answer. How to read a script file as input parameters? For example, let's say I want to run a script that requires 3 input variables, but instead of asking the values, I would like to read from the file name of the script... for example, Myscript (my_variable1, my_variable2, my_variable2), where the variables are all real numbers. So I guess that the name of the script when it is run should look to...  MyScript (10, 10, 100), but how can I read these and assign these values to a VAN in the script?

    Thanks for any help!

    That you will get the name of the file, including the path

    alert($.fileName);
    
  • Input parameters of Report Builder

    I need to create a report using the input parameters and a date range. I called the report in a form that uses the following query and gets his entry to a previous form:

    < cfquery name = "getVisitors" datasource = "zipcodesearch" >
    SELECT company.CompanyID, company.CompanyName, company.phone1, visitors.visitorName, visitors.visitorComp, visitors.createDate, visitors.phone, visitors.email
    The COMPANY INNER JOIN visitors ON company.CompanyID = visitors.companyID
    WHERE visitors.createDate > = #form.startdate # and visitors.createDate < = #form.enddate #.
    ORDER BY company.CompanyName, company.phone1, visitors.createDate
    < / cfquery >

    At this point, I'm not sure if I should use cfreportparam tags or not. The reason is, I'm not using the = operator. I need to specify a range of dates, and I can't find an example ANYWHERE on how to achieve this with the report generator. If I use the cf report param tags, they would present something like that? :

    "< cfreport format ="PDF"template ="visitors.cfr"query =" #getVisitors # "overwrite ="yes">
    < cfreportparam NAME = "startdate" VALUE = "#form.startdate #" >
    < cfreportparam NAME = "enddate" VALUE = "#form.enddate #" >
    < / cfreport >

    Guess my next question is, should I I then specify a query in Report Builder and also use input parameters in report designer environment? the documentation on this type of scenario was virtually nonexistent.

    I'm really stuck on this one, and any help would be appreciated...

    I thought about it and answer my own post in case anyone else runs into the same type of situation...

    The formula of entry consists of two fields: StartDate and EndDate

    The action page consists of a query as follows:


    SELECT company.CompanyID, company.CompanyName, company.phone1, visitors.visitorName, visitors.visitorComp, visitors.createDate, visitors.phone, visitors.email
    The COMPANY INNER JOIN visitors ON company.CompanyID = visitors.companyID
    WHERE visitors.createDate > = #FROMDATE # and visitors.createDate<>
    ORDER BY company.CompanyName, company.phone1, visitors.createDate

    .. .and the code generator of report:

    No record date (s) selected.

    Close the window





    Also, I removed the underlying query in the report generator program and am only using the query on the page of ColdFusion itself. Everything seems to work properly, so I'll put this down as the answer.

  • clientListener does not work with my rich input Custom tag

    Hello

    clientListener does not work with my rich input Custom tag

    I have a custom tag myInputText and here are some details abt it...

    MyInputText extension of RichInputText
    MyInputTextTag extension UnifiedInputTextTag (Tag Handler)
    AjaxTextFieldRenderer extension SimpleInputTextRenderer (for purposes of rendering)

    So, when I use

    < mc:myInoutText id = 'test100' >
    < af:clientListener method = "clientMethodCall" type = "keyUp" / >
    < / mc:myInoutText >

    < af:inputText id = "test101" label = "test101Label" >
    < af:clientListener method = "clientMethodCall" type = "keyUp" / >
    < / af:inputText >

    in my page and run the clientMethodCall page is called for test101 but NOT for test100.

    Don't know why,
    Could someone help me please...

    Thank you
    Murali

    Hello

    I still think you're missing one rendering engine, else your rendering engine would not be called, because it must be returned by a method protected createFormInputRenderer (FacesBean.Type type) FormInputRenderer.

    In addition, renderScript does exactly? Its positioning can be really messy in this case since the element root dom was not yet written in the Responsewriter and can also be dangerous in a PPR request (if not more). The correct way to do this would be to create a custom JavaScript counterpart and place the code in the InitDomElement function.

    Kind regards

    ~ Simon

  • Cannot see/Run JCarousel with FireFox

    Cannot see/run JCarousel with Firefox.

    I am able to see the main image and the images over the primary image line; but the javascript code which changes at each successive image does not work.

    I can't run any JCarousel with FireFox. National Geographic is just one example of the most recent which does not work.

    You have quite a few extensions you installed that can cause problems like that (Adblock Plus, Ghostery).

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).

    • Makes no changes on the start safe mode window.

    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    • If you have many extensions then you first activate half test extensions that half the problem.

    Continue to divide the bad half that still has the question until you find that one is causing it.

  • Synchronization of two inputs frequency meter with several analog inputs

    Hi all

    I'm relatively new to LabVIEW and I'm trying to collect data from multiple sources with calendar sync on the acquisition, but I can't understand. My problem is that I have two inputs frequency meter, an optical tachometer reading one pulse per revolution and a max flow meter machines with a 12000 k coefficient. I can't find a way to synchronize the calendar with my multiple analog inputs. I tried to first get the speedometer to synchronize with the analog inputs following the example linked here. (https://decibel.ni.com/content/docs/DOC-10785) So far every time I run it I get an error on the DAQmx read timeout or an error "several sample clock pulses have been detected" (see image).  It seems if I slow the way to down to say 10 hz and make sampling rate ensure that the tachometer signal is more than 800-1000 rpm (13-17 Hz) before starting the VI then the program will run without error until the ROTATION speed is below this threshold, then the "sample Multiple clock pulses" error occurs.  The code is attached below.

    Does anyone know of a better way to synchronize the entries of frequency of the counter with analog inputs?  I would like to have a VI that can display 0 RPM (and possibly 0 flow as well, but I think I need to understand the timing of a meter before I have add another, because it seems that I can't have two counters to the same task). Any help on this would be greatly appreciated.

    LabVIEW version 13.0

    Chassis cDAQ-9178 with NI 9401 for both counter inputs and NI 9205 for the analog inputs.

    Thank you!

    Richard

    I know the error requires to restart the task at least (this particular error puts the material in a State that cannot be recovered from during execution of the task - I've been down this road before) but I'm surprised that you would have to delete and re-create the task altogether.  And then I had to do this to workaround other questions in the past.  It is awkward and should be considered a bug, if this is indeed the behavior.

    Honestly, regardless of this bug, the way the material dealing with the situation of several sample clock edges makes measures of sampling frequency clocked essentially unusable for purposes of synchronization (in my opinion anyway) If you encounter a more slow than your sample clock rate.  You are supposed to be "synchronization" of the measure, but it really no longer applies if you have to restart the task over and over again (if you must delete it or not).

    Workarounds can get kind of creation (which isn't really a good thing).  For example, you can configure a measure of implicit frequency to keep a buffer of frequencies and use a leader board task (source is the frequency signal, sample clock is the sample clock HAVE) to establish a correlation between the index of your buffer of frequency for singing HAVE sample clock.

    Best regards

  • Input parameters can be set dynamically?

    Is there a way to fill the UI dynamically entry? Suppose we have a list of fields to which we get input parameters and this list came out a REST command in xml format, can we build a user interface based on that?

    (If not, may we have input parameters that are hidden by default but are made visible from the fields in the xml file)

    Example: In the xml below output, the input field should take a number with the description for the entry in the "number of volumes.

    < field >
    < label > Number of Volumes < / label >
    < name > numberOfVolumes < / name >
    < type > number < / type >
    < initial_value > 1 < / initial_value >
    < lockable > fake < / lockable >
    < min > 1 < / min >
    < omitNone > fake < / omitNone >
    < required > true < / mandatory >
    < select > un < / select >
    < / field >

    'Content' is appropriate, in this case, since it is a POST operation (POST / PUT usually has a body of the request). Check the value of the property 'See the parameter entry' group "Content Input" display in the presentation tab.

    Different parameters (name, size, number, etc.) are not displayed in the interface user because in your case, they are part of the body of the request and the presentation logic in workflow "Call operation REST with dynamic params" only scans the URL parameters, not the body of the URL. In your case, if your REST API was POST/block/volumes / {name} / {size} the current logic could find name and size of the parameters in the URL. Check the "Show parameter input" values and properties "Data binding" parameters of workflow in display group "Input parameters" in the presentation tab.

    So you can extend this workflow, or implement your own version of the workflow, which can retrieve information about parameters not only of URL parameters, but also the body of the request by analyzing the body of the request as XML/JSON document and extract the names of the tags.

    As to what 'Generate new workflow of the operation REMAINS' do-, it generates a workflow that wraps the invocation of an operation given rest. In some cases, it is convenient; for example. you won't need to select REST operation to call every time. Also, you can change the specific workflow (for example. Add logging more, add additional processing, etc.).

  • How to get the value of the predefined list of input parameters of a workflow of another workflow of operation REMAINS (element JSON) output. The pointers or the exisitng resource/code will be of great help

    I have a workflow in which one of the input parameters is a predefined list of element. The predefined list of items must come from another workflow of operation REMAINS to GET type (element JSON) output.

    You just wrap it in an action that has an output which is an array of the same type as input.  Instead of using the plugin of rest, you might be able to use the scriptable Url to take the exit that would work according to the rest interface with which you interact.  Something like this:

    var restOperation = 'yourrestservice.com/resoperation/... '. ' / / whatever your full url is if it requires no authentication

    var myUrl = new URL (restOperation); Create the object URL

    var result = myUrl.getContent (); get the content

    var jsonParsed = JSON.parse (result); assuming that the result is a string that must be converted to an

    treatment jsonParsed and return an array of the appropriate type

    return (myPreDefinedList);

  • Date range per week based on input parameters

    Afternoon people - I need to produce a report that will appear in coming weeks.

    There are two input parameters: P_FROM_DATE and P_TO_DATE

    I need to find the beaches of dates in weeks starting THURSDAY and ending WEDNESDAY. For example, if my P_FROM_DATE is August 1, 2012 and P_TO_DATE 11-SEP-2012, I need to show the weeks following this way:
    02-AUG-2012 - 08-AUG-2012
    09-AUG-2012 - 15-AUG-2012
    16-AUG-2012 - 22-AUG-2012
    23-AUG-2012 - 29-AUG-2012
    30-AUG-2012 - 05-SEP-2012
    06-SEP-2012 - 12-SEP-2012
    So, the idea is to begin the first THURSDAY after the P_FROM_DATE and at the end the Wednesday preceding the P_END_DATE...

    Thank you!

    Hello

    Here's one way:

    WITH     params          AS
    (
         SELECT  DATE '2012-08-01'     AS p_from_date
         ,     DATE '2012-09-19'     AS p_to_date
         FROM     dual
    )
    ,     end_points     AS
    (
         SELECT     TRUNC ( p_from_date + 4
                    , 'IW'
                    ) + 3          AS first_thursday
         ,     TRUNC ( p_to_date + 4
                    , 'IW'
                    ) - 5          AS last_wednesday
         FROM    params
    )
    SELECT     first_thursday + (7 * (LEVEL - 1))     AS week_start_date
    ,     first_thursday + (7 * LEVEL) - 1     AS week_end_date
    FROM     end_points
    CONNECT BY     LEVEL     <= ( last_wednesday
                      + 1
                      - first_thursday
                      ) / 7
    ;
    

    TRUNC (dt) is the beginning of the ISO week containing DATE dt.
    The 'magic number' 4 is used because the ISO week starts on Monday, 4 days later your week begins, so

    TRUNC ( dt + 4
          , 'IW'
          )
    

    is set for Monday in the same week from Thursday to Wednesday as dt.

  • Duplication of datasets based on input parameters

    I posted this question in the context of the reports of the Oracle, but I think that this is not really a question of relationship Oracle, its more a matter of SQL. I'm on Oracle 9i.

    I need to generate a report based on a maximum of 6 input parameters.
    Three of them belong to the client ID # and 3 belong to the Number of Copies that must be printed on the report.
    Settings on clients: P_CUST_ID1, P_CUST_ID2, P_CUST_ID3
    Parameters for the number of copies: P_N1, P_N2, P_N3

    So, at some point, there could be a maximum of 3 Customer ID passed to the main request. Here is an example of what might look like the input parameters.
    The user has chosen to enter the values for Customer ID 1 and 2 and left blank for 3 client.
    Customer ID1   1001         Number of Copies   2
    Customer ID2   1002         Number of Copies   3
    Customer ID3   ----         Number of Copies   -
    The query that retrieves data looks something like this. The query below is intended to get the client host and addresses of the Office.
    Of course, it is possible that there could be no home or office address or both.
    SELECT    c.cust_no,
              c.saln||c.first_name||' '||c.last_name cust_name,
              a.address_type,
              a.street,
              a.city||' '||a.province||' '||a.postal_code city,
              '('||a.tel_area||') '||a.tel_number telephone
    FROM      customer c, customer_address a
    WHERE     c.cust_no = a.cust_no
    AND       c.cust_no IN (:P_CUST_ID1, :P_CUST_ID2, :P_CUST_ID3);
    Based on my query:
    Customer ID 1001 has 3 addresses (House 2 and 1 office)-> the Total number of records = 3
    Customer ID 1002 a 2 addresses (1 House and 1 office)-> the Total number of records = 2

    The output should be something like that. I put a copy1 copy2, Copy3 label to show
    How the data will appear for readability.
    Cust No Customer Name      Address Type    Address Line 1         Address Line 2        Telephone
    -----------------------------------------------------------------------------------------------------
    Copy1
    1001    Mr Robert Green    H               2100 Picket Fences     Vancouver BC V6E 2C9 (604)726-5555
    1001    Mr Robert Green    H               2300 Happy Valley      Vancouver BC V6G 2N8 (604)308-5555
    1001    Mr Robert Green    O               1200 Davie Street      Vancouver BC V1V 1X1 (604)211-5555
    Copy2
    1001    Mr Robert Green    H               2100 Picket Fences     Vancouver BC V6E 2C9 (604)726-5555
    1001    Mr Robert Green    H               2300 Happy Valley      Vancouver BC V6G 2N8 (604)308-5555
    1001    Mr Robert Green    O               1200 Davie Street      Vancouver BC V1V 1X1 (604)211-5555
     
    Copy1
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555
    Copy2
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555
    Copy3
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555
    Scripts for creating the table and INSERTs
    CREATE TABLE CUSTOMER
      (
        "CUST_NO"    VARCHAR2(4 BYTE) NOT NULL,
        "SALN"       VARCHAR2(4 BYTE),
        "FIRST_NAME" VARCHAR2(20 BYTE),
        "LAST_NAME"  VARCHAR2(20 BYTE),
        CONSTRAINT "CUSTOMER_PK" PRIMARY KEY ("CUST_NO")
      );
     
    Insert into CUSTOMER values ('1001','Mr','Robert','Green');
    Insert into CUSTOMER values ('1002','Ms','Cynthia','Brown');
    Insert into CUSTOMER values ('1003','Dr','David','Taylor');
     
    CREATE TABLE CUSTOMER_ADDRESS
      (
        "CUST_NO"      VARCHAR2(4 BYTE) NOT NULL ENABLE,
        "ADDRESS_TYPE" VARCHAR2(1 BYTE) NOT NULL ENABLE,
        "STREET"       VARCHAR2(20 BYTE),
        "CITY"         VARCHAR2(20 BYTE),
        "PROVINCE"     VARCHAR2(2 BYTE),
        "POSTAL_CODE"  VARCHAR2(10 BYTE),
        "TEL_AREA"     VARCHAR2(3 BYTE),
        "TEL_NUMBER"   VARCHAR2(10 BYTE)
      );
     
    Insert into CUSTOMER_ADDRESS values ('1001','H','2100 Picket Fences','Vancouver','BC','V6E 2C9','604','726-5555');
    Insert into CUSTOMER_ADDRESS values ('1001','H','2300 Happy Valley','Vancouver','BC','V6G 2N8','604','308-5555');
    Insert into CUSTOMER_ADDRESS values ('1001','O','1200 Davie Street','Vancouver','BC','V1V 1X1','604','211-5555');
    Insert into CUSTOMER_ADDRESS values ('1002','H','261 King Street W','Calgary','AB','M5A 1N1','416','432-5555');
    Insert into CUSTOMER_ADDRESS values ('1002','O','150 Bloor St W','Calgary','AB','M1W 1S3','416','321-5555');
    Insert into CUSTOMER_ADDRESS values ('1003','O','435 Richmond Street','Calgary','AB','M5A 4T6','416','453-5555');
    Any help or pointers in this regard would be great.
    I could have adopted a procedure for use of temporary tables , but I really prefer not to go in that direction that there could a few reports which must be generated in this way.

    Thanks and a great weekend.

    Hello

    Roxyrollers wrote:
    I tried to replace the Clause WITH with views online, but have hit a wall. Of course, it is said Table or view does not exist because it cannot find the report_parameters table. Also, I realize that I can't really get the view online at the same level.

    No, report_parameters is used in two places in the solution I posted Saturday. You could code 2 copies of the report_parameters (one inside the cntr, the other to join it), but it should really be. CNTR can rely on two instead, like this:

    SELECT    c.cust_no,
              c.saln ||c.first_name||' '||c.last_name cust_name,
              a.address_type,
              a.street,
              a.city||' '||a.province||' '||a.postal_code city,
              '('||a.tel_area||') '||a.tel_number telephone
    ,       t.n                -- If wanted
    FROM      customer           c
    ,        customer_address   a
    ,       (               -- Begin in-line view report_parameters
                SELECT  :p_cust_no_1 AS cust_no, :p_no_copies_1 AS no_copies  FROM dual  UNION ALL
              SELECT  :p_cust_no_2 AS cust_no, :p_no_copies_2 AS no_copies  FROM dual  UNION ALL
              SELECT  :p_cust_no_3 AS cust_no, :p_no_copies_3 AS no_copies  FROM dual
           )  p               -- End in-line view report_parameters
    ,       (               -- Begin in-linve view cntr
                 SELECT     LEVEL     AS n
                 FROM     dual
                 CONNECT BY     LEVEL     <= GREATEST (:p_no_copies_1, :p_no_copies_2, :p_no_copies_3)
           ) t                    -- End in-line view cntr
    WHERE     c.cust_no           = a.cust_no
    AND       c.cust_no           = p.cust_no
    AND       p.no_copies          >= t.n
    ORDER BY  c.cust_no
    ,       t.n
    ,            a.address_type
    ;
    

    Ensure that: p_no_copies_1,: p_no_copies_2 and: p_no_copies_3 are not NULL; otherwise, GREATEST return the NULL value. Check the settings, you do need lower or equal to 0, or use NVL inside the GREATER expression.

  • The use of JavaScript with the desgin-time properties

    Hi all

    I have a form with a few text fields. I would like to be able to update their legends by programming using JavaScript at design time.

    I don't know how to approach the design time objects.

    Any help would be much appreciated.

    Kamil

    At Design time you genrally cannot run JavaScript in the designer.

    The only option would be a macro, that requieres Designer ES2 or the designer of the ADEP.

    A macro is a javascript file, which is stored in a subfolder of the program folder, which can be performed at the time of design.

    Here's a macro with a flex dialog box I designed to manipulate fields at design time:

    http://thelivecycle.blogspot.com/2011/06/field-designer-macro.html

Maybe you are looking for