Passing values to a function from spry:repeat

Is this a viable solution?
<div spry:repeat="dsData">
<script
type="text/javascript">addPin("{ds_RowNumberPlus1}","{site}&q uot;,"{latitude}","{longitude}");</script>
</div>

quote:
Originally posted by:
victor.corey
Hello V1 Fusion,
Yes this did work. Thank you.
For clarification, why add this to a spry:if in a hidden span
versus just adding a javascript script block inside the
spry:repeat. Both seem to work so far, but it seems your solution
may help with error handling???
Thanks,
Victor Corey
I know u could use functions in Spry if, im
using them my self i should show a row based on cookie values ( the
function checks if certain data is in a cookie, and if its there it
shows the row).
I was about to use the same technique for my own project my
self to, so i thought it would be a good way to gather certain
data, based on what u get returned from your own data set.
And if u add a javascript block, each time u repeat it, it
has to be created. its allot smaller size wise to create a little
span (or u can even add it to the repeat self). That was basicly
the reason why i suggested using a spry:if ^_^

Similar Messages

  • How to pass values to dashboard prompts from external applications

    Any idea is well appreciated.
    How can I pass values of dashboard prompts from external applications to the dashboard prompts so that the dashboard is prefiltered based on values sent by external applications.
    Thanks in Advance!
    Kris

    Kris,
    i am able to change the session variable and able to call the dashboard from external app, but i identified prompt value not changing. but Finally i am able to found a workaround for you.
    Use the following URL and it explained here
    http://localhost:9704/analytics/saw.dll?Dashboard&nquser=Administrator&nqpassword=Administrator&PortalPath=/shared/abcd/_portal/dash1&Options=rmf&DSN=madan
    PortalPath is your dashboard location. /shared/abcd is folder where i saved dashboards. dash1 is my dashboard name.
    internally this dashboard includes many reports that uses the session variable. after doing above this i am able to update the session variable to the value i have given in URL, DSN=value.
    You may observer here that calls the dashboard and passes the value but its not updating the prompt value. so workaround for this is edit your prompt,
    change the Default to - SQL Results and place the sql
    SELECT CASE WHEN 1=0 THEN Markets.Region ELSE VALUEOF(NQ_SESSION.DSN) END saw_0 FROM Paint
    again here Market.Region is column from presentation layer and Paint is subject area. After doing this step, your prompt always shows value in the session varible as default.
    Now include reports and dashboard prompt in the dashboard and run this url from external applicaitons.
    http://localhost:9704/analytics/saw.dll?Dashboard&nquser=Administrator&nqpassword=Administrator&PortalPath=/shared/abcd/_portal/dash1&Options=rmf&DSN=madan
    it worked for me and blog this soon. if it works for you mark the question as answered and mark my replies as correct.
    thanks
    - Madan

  • How to call & pass values to custom page from seeded page table region

    Hi All,
    can anyone tell me how to call & pass values to custom page from seeded page table region(Attribute is not available in seeded page VO)
    it is urgent. plssss
    Regards,
    purna

    Hi,
    Yes, we do this by extending controller, but you can also try this without extending controller.
    1. Create Submit Button on TableRN using personalization.
    2. Set "Destination URI" property to like below
    OA.jsp?page=/<yourname>/oracle/apps/ak/employee/webui/EmpDetailsPG&employeeNumber={@EmployeeId}&employeeName={@EmployeeName}&retainAM=Y&addBreadCrumb=Y
    Give your custom page path instead of EmpDetailsPG.
    EmployeeId and EmployeeName are VO attributes(Table Region)
    If you dont have desired attribute in VO, then write logic in your custom page controller to get required value using parameters passed from URL path.
    In this case, only personalization will do our job. Hope it helps.
    Thanks,
    Venkat Y.

  • Query in passing value to a function module

    Hi All ,
    I have a small query in the below code about the way i have passed value into a function module :
    CALL FUNCTION 'AUTHORITY_CHECK'
      EXPORTING
      USER                      = SY-UNAME
        OBJECT                    = 'E_INVOICE'
        FIELD1                    = 'BEGRU'
      VALUE1                    = ' '
       FIELD2                    = 'BUKRS'
       VALUE2                    = '$BUKRS'
       FIELD3                    = 'ISU_ACTIVT'
       VALUE3                    = '1,2,5,6'
       FIELD4                    = 'VKTYP_KK'
      VALUE4                    = ' '
    EXCEPTIONS
       USER_DONT_EXIST           = 1
       USER_IS_AUTHORIZED        = 2
       USER_NOT_AUTHORIZED       = 3
       USER_IS_LOCKED            = 4
       OTHERS                    = 5
    IF SY-SUBRC <> 0.
    MESSAGE 'User doesnt have sufficient authorizations' TYPE 'E'.
    EXIT.
    The query is on the field  VALUE3                    = '1,2,5,6' , is the format correct. If this is not right could someone please suggest the correct approach.
    thanks

    Hi Balaji,
    as that is parameter you can use at a time only one value..
    if you check in that FM we have other parameters VALUE1 to VALUE10..
    why don't you use those...
    Thanks!

  • Passing parameter values to powershell function from batch file

    Hello ,
       I haven't used powershell for a while and getting back to using it. I have a function and I want to figure out how to pass the parameter values to the function through batch file.
    function Check-FileExists($datafile)
    write-host "InputFileName : $datafile"
    $datafileExists = Test-Path $datafile
    if ($datafileExists)
    return 0
    else
    return -100
    <#
    $datafile = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_011.txt"
    $returncode = Check-FileExists -datafile $datafile
    Write-Host "ReturnCode : $returncode"
    $datafile = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"
    $returncode = Check-FileExists -datafile $datafile
    Write-Host "ReturnCode : $returncode"
    #>
    The above code seems to be work when I call it. But when I try to call that script and try to pass the parameter values, I am doing something wrong but can't figure out what.
    powershell.exe -command " &{"C:\Dev\eMetric\PreIDWork\PowerShell\BulkLoad_Functions.ps1" $returncode = Check-FileExists -datafile "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"}"
    Write-Host "ReturnCode : $returncode"
    $file = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"
    powershell.exe -file "C:\Dev\eMetric\PreIDWork\PowerShell\BulkLoad_Functions.ps1" $returncode = Check-FileExists -datafile $datafile
    Somehow the I can't get the datafile parameter value being passed to the function. Your help would be much appreciated.
    I90Runner

    I am not sure about calling a function in a script like how you want to. Also I see you are setting the values of the parameters, this is not needed unless you want default values if nothing is passed. The values for the parameters will be passed via the
    batch file. So for me the easiest way is as indicated.
    param
    [string]$DataFile
    function Check-FileExists($datafile)
    write-host "InputFileName : $datafile"
    $datafileExists = Test-Path $datafile
    if ($datafileExists)
    return 0
    else
    return -100
    Write-Host "Return Code: $(Check-FileExists $DataFile)"
    Then you create a batch file that has
    start powershell.exe
    -ExecutionPolicy
    RemoteSigned -Command
    "& {<PathToScript>\MyScript.ps1 -DataFile 'C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile.txt'}"
    Double click the batch file, and it should open a powershell console, load your script and pass it the path specified, which then the script runs it and gives you your output
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet

  • Pass Values between two Function Modules RFC in Portal

    I need to pass values ​​between 2 FM RFC.
    I have an implicit enhancement in HRMSS_RFC_EP_READ_GENERALDATA RFC function module.
    PERNR LIKE  PSKEY-PERNR
    ENHANCEMENT 1  Z_ESS_EXPORT_PERNR.    "active version
      EXPORT pernr to memory id 'PMK'.
      set parameter id 'PMK' field pernr.
    ENDENHANCEMENT.
    On the other hand an RFC function module that has the code:
            pmk    LIKE PSKEY-PERNR,
            pmk_2  LIKE PSKEY-PERNR.
      get parameter id 'PMK' field pmk.
      IMPORT pmk_2 FROM MEMORY ID 'PMK'.
    When the execution is done in development environment, the modules function at the level of R3, the "get parameter id" works only if the debbuger is classic, otherwise not work. The Import to memory id never works.
    In the environment of quality, r3 do not work any of the 2 sentences. If run from portal (which is as it should be) does not work.
    Thanks if anyone can help me get the problem. Both function modules are executed at the portal.
    Regards
    Edited by: Daynet1840 on Feb 15, 2012 2:02 AM

    When the execution is directly in r3, in development environment or quality, does the set / get parameter id. Export / Import memory id not work.
    But if the FM are called from the portal, does not the set / get parameter id.
    I tried changing the sentence as I indicated harishkumar.dy still not working.
    Madhu: They're in different function groups, one is standard and the other not.
    Regards
    Edited by: Daynet1840 on Feb 15, 2012 3:08 PM
    Edited by: Daynet1840 on Feb 15, 2012 3:11 PM

  • Pass value at run time from one structure to diffrent structure

    hi  experts.
    i  m  workin on  crm domain  and faching problem to pass value  from one stucture to another . problem is that i want the output in xml file so i need all the values interm  of segment.
    initialy  i have  this structure.
    DATA: BEGIN OF struc1 occurs 0,
           ST_ORDERADM_H TYPE CRMT_ORDERADM_H_WRKT,
           ST_PRICING    TYPE CRMT_PRICING_WRKT,
           ST_ORGMAN     TYPE CRMT_ORGMAN_WRKT,
           ST_PARTNER    TYPE CRMT_PARTNER_EXTERNAL_WRKT,
          END OF struc1.
    and using fm CALL FUNCTION 'CRM_ORDER_READ' i got values  on this structure at run time.
    MOVE LT_ORDERADM_H  to STRUC1-ST_ORDERADM_H.
    MOVE LT_ORGMAN      to STRUC1-ST_ORGMAN.
    MOVE LT_PARTNER     to STRUC1-ST_PARTNER.
    MOVE LT_PRICING     to STRUC1-ST_PRICING.
    and after that using
    try.
      CALL TRANSFORMATION id
        SOURCE data_node = STRUC1
        RESULT XML xmlstring.
        CATCH cx_st_error.
    endtry.
    CLEAR:   tab_xstring,
             lv_filename,
             lv_path,
             lv_fullpath,
             lv_user_action.
    REFRESH: tab_xstring.
    lv_bytes = XSTRLEN( xmlstring ).
    IF lv_bytes > 0.
      lv_xstring = xmlstring.
      DO.
        APPEND lv_xstring TO tab_xstring.
        lv_xcnt = XSTRLEN( lv_xstring ).
        IF lv_xcnt > xsize.
          lv_xstring = lv_xstring+xsize.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
    now it  convert to xml file .
    problem is  it gives  me value of all field associated with  standared structure.
    but  client requirment is that  he want only selected values of given structure.
    so i think i make  a new structure for given value  but  i m not able  to get values in new structure.
    thanks

    Hi,
    create a structure in se11 with following fields
    ST_ORDERADM_H.
    ST_ORGMAN.
    ST_PARTNER.
    ST_PRICING.
    for example as STRUCT2.
    data : begin of i_struct2 occurs 0.
       include structure struct2.
    data : end of i_struct2.
    MOVE LT_ORDERADM_H to i_STRUCt2-ST_ORDERADM_H.
    MOVE LT_ORGMAN to i_STRUCt2-ST_ORGMAN.
    MOVE LT_PARTNER to i_STRUCt2-ST_PARTNER.
    MOVE LT_PRICING to i_STRUCt2_PRICING.
    then
    try.
    CALL TRANSFORMATION id
    SOURCE data_node = i_STRUCt2
    RESULT XML xmlstring.
    CATCH cx_st_error.
    endtry.

  • Significance of pass value checkbox in function module

    Hi all,
    Here is a confusion.....While creating a custom function module,i have checked the update module or RFC call radio button going to its attributes.But in the importing parameter if i pass a structure,it is giving a syntax error.It is only allowing table parameter.But if i check the pass value checkbox,it is not givng any syntax error if i pass any structure in the importing parameter.Can anybody please explain me the significance of pass value checkbox?
    Thanks in advance.......

    Hi,
    Function modules are cross-program, reusable procedures that are organized into function groups, and whose functions are implemented between the statements FUNCTION and ENDFUNCTION. Function modules and their interfaces are created in the Function Builder.
    Function Module Interfaces
    The parameter interface of a function module is defined in the Function Builder. It includes the definition of interface parameters and the specification of exceptions that can be triggered by a function module. The Function Builder automatically generates comment lines below the FUNCTION statement in the source code of the function module, which represent the interface of the function module with the following syntax:
    Syntax
    ... [IMPORTING parameters]
    [EXPORTING parameters]
    [CHANGING parameters]
    [TABLES table_parameters]
    [{RAISING|EXCEPTIONS} exc1 exc2 ...]
    The syntax and semantics of IMPORTING, EXPORTING, CHANGING, RAISING, and EXCEPTIONS mainly correspond to the definition of method interfaces with [CLASS-]METHODS. The additional option of defining table parameters using TABLES is obsolete.
    Interface parameters
    The interface parameters are defined on the relevant tab pages in the Function Builder.
    IMPORTING parameters are input parameters. When the function module is called, a suitable actual parameter must be specified for every non-optional input parameter. The content of the actual parameter is passed to the input parameter when the call is made. The content of an input parameter for which 'pass by reference' is defined cannot be changed in the function module.
    EXPORTING parameters are output parameters. When the function module is called, a suitable actual parameter can be specified for every output parameter. The content of an output parameter that is defined for <b>'pass by value'</b> is transferred to the actual parameter if the function module is completed without errors. An output parameter that is defined for pass by reference is not initialized when the function module is called.
    CHANGING parameters are input and output parameters. When the function module is called, a suitable actual parameter must be specified for every non-optional input or output parameter. When the function module is called, the content of the actual parameter is passed to the input/output parameter, and when the function module is completed, the content of the input/output parameter is passed to the actual parameter.
    TABLES parameters are table parameters. Table parameters are obsolete CHANGING parameters that are typed as standard tables with a header line. If an internal table without a header line or a table body is passed as an actual parameter to a formal parameter of this type, an empty local header line is generated in the function module. If an internal table with a header line is used as an actual parameter, both the table body and the header line are passed to the function module. Pass by value is not possible in formal parameters defined using TABLES. Formal parameters defined with TABLES can be replaced by formal parameters defined with CHANGING. A local work area can be created for the internal table in the function module by using the addition LIKE LINE OF itab of the DATA statement.
    Exceptions
    The exception of a function module are defined on the Exceptions tab page in the Function Builder. Here you can select exception classes to define whether class-based exceptions are declared or non-class-based exception are defined. Class-based exceptions are represented in the above syntax by RAISING, and non-class-based exceptions are represented by EXCEPTIONS.
    The addition RAISING is used to declare class-based exceptions that can be propagated from the function module to the caller. Exceptions in the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be explicitly declared, otherwise a propagation can lead to an interface violation. A violation of the interface leads to the treatable exception CX_SY_NO_HANDLER. Exceptions of the category CX_NO_CHECK are implicitly always declared. The declaration of exceptions of the category CX_STATIC_CHECK is statically checked in the syntax check. For exceptions of the category CX_DYNAMIC_CHECK, the check is not performed until runtime. In a function module in which class-based exceptions are declared with the RAISING addition, the statement CATCH SYSTEM-EXCEPTIONS cannot be used. Instead, the relevant treatable exceptions should be handled in a TRY control structure.
    The addition EXCEPTIONS is used to define a list of non-class-based exceptions that can be triggered in the function module using the statements RAISE or MESSAGE RAISING. Exceptions defined in this way - as with formal parameters - are bound to the function module and cannot be propagated. If an exception of this type is triggered in a function module, and no return value has been assigned to it with the homonymous addition EXCEPTIONS of the CALL FUNCTION statement when the call was made, this leads to a runtime error.
    Note
    For new developments after release 6.10, SAP recommends that you work with class-based exceptions that are independent of the function module.
    RFC is a technology which is used to access a functions (Modules) from
    the remote systems.
    If a function module is set as remote enabled which can be access from
    the remote system via RFC.Eg: U can access the Remote enabled function modules in ur VB,Webdynpro,Java,Visual composer program.
    A function module can be set as remote enabled by SE37->Go to ur FM->click the option Button "remote enabled".
    But Normal function modules can not accessd from the remote system.
    Good Example for RFC enabled function module is : BAPI(Business Application Programming Interface)
    Note: All BAPIs are Remote enabled but not all remote enabled function modules are BAPI.
    CALLING A FUNCTION MODULE:
    1)In U ABAP Editor --> Click "Patter" ---> Selection Option Button "Call Function"
    --> Write the Corresponding FM name --> Hit Enter
    2)The appropriate import ,export Parameters will be displayed in ur editor
    3)Pass the Values Here.
    Also check these links.
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    Check this link:
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
    Check this link:
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
    See the following links:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    Regards,
    Srilatha.

  • How to pass values one by one from Multiline container in workflows

    Hi,
    I have used a structure in my workflow as multiline container.
    I want to pass values 1 by 1 to the workflow but not all the three values..so how do i pass the values 1 by 1 rather all at a time..
    kindly suggest me
    Thanks,
    Shanky

    Hi,
    Create a new container with type I and set the initial value as 1.  EX : Index.
    Pass your Multi-line container and this index container to a new method. Get the multi line container data's into an internal table
    and read the data based on the index and append the data's to a new multiline container.
    Second time increment the index container by 1. So now the value of index container will be 2.
    Pass the multiline container value and index to method. now it will read the second record from the internal table.
    Call the method using the loop step type.
    Thanks,
    Viji.

  • Passing values to a function

    Hi, i'm new to Coldfusion, and i'm a little confused in
    regards to passing parameters to a function using
    <cfinvokeargument>. My question is: Does the name of
    parameter in the cfinvokearguments have to be the same name as the
    cfargument name that you're passing the value to? Because that
    seems to go against the whole "black box" thing i was taught. And
    is there a way to pass the values without having to have to know
    the name of the variables in the function?

    If you are passing variables to the function then yes the
    names need to be the same. There are ways around this which goes to
    your second question about passing variables without knowing the
    name. (see
    http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm ?context=ColdFusion_Documentation&file=00001056.htm)
    As an example I have a document that I want to index and some
    indexes will be filled out by the user and some will not so how
    would I be able to tell which vars are passed to the
    function….So I would loop the Indexes assigned to the
    document and check to see if they were passed to the CFC doing
    something like this...
    EXAMPLE:
    <cfquery name="getDocIndexes_rs"
    ... this is a query to the get the document's indexes ....
    </cfquery>
    <cfloop query="getDocIndexes_rs">
    <!--- check the arguments scope to see if this index var
    exist --->
    <cfif
    isDefined("arguments.Index#getDocIndexes_rs.IndexID#")>
    <!--- if defined then get the value ---->
    <cfset IndexValue =
    arguments["Index"&getDocIndexes_rs.DMIndexID]>
    <!--- do something with indexvalue ....... ---->
    Ok that was probably a bit much so to simplify this here....
    When I sent the variables to the function I did not use the
    cfargument to specify the name(s) because I have no idea what they
    were at the time.
    As an example for yourself pass a variable to a function
    using the cfinvokeargument but do not use the cfargument tag. Then
    return the variable by doing this.
    <!---- THE CFC PAGE (named testreturn.cfc) --->
    <cfcomponent>
    <cffunction name="myFunction" access="public"
    returntype="string">
    <cfset myResult= arguments.testvar>
    <cfreturn myResult>
    </cffunction>
    </cfcomponent>
    <!---- THE CFM PAGE THAT CALLS THE CFC --->
    <cfinvoke component="YourPath.testreturn"
    method="myFunction" returnvariable="myResult">
    <cfinvokeargument name="testvar" value="HELLO">
    </cfinvoke>
    <cfoutput>#myResult#</cfoutput>
    Hope that wasn’t confusing enough for you...I am tired
    so that is my excuse and this is the best I can do at the moment.

  • Passing values to standard screen from  an my internal

    Hi Experts,
    I want to pass values to the mb51 screen from my own internal table.
    in the program for mb51 there is include programLMIGOTV4 where what is use of following
    PBO module before start of LOOP.
    METHOD pbo.
    CALL METHOD super->pbo.
    tv_goitem-lines = lcl_migo_globals=>kernel->s_status-lines.
    ENDMETHOD.
    Also how can see the method Kernel and what is the use of that....
    Also when is the S_Status-lines update in the method Kernel.
    Please help me to understand ASAP.
    Thanks &Regards
    Tejaswini

    hi.
    You can pass values by two ways:
    1. use BDC option CALL TRANSACTION of the transaction MB51. But first you will have to see how it behaves during recording in SHDB.
    2 . Another is use
    SET PARAMETER ID 'MAT' FIELD WA_DATA-MATNR.
    CALL TRANSACTION 'MB51'.
    This would call the transaction with MB51 screen with material number initialised.
    check out   screen 1000 of prog 'RM07DOCS' for parameter id's of different fields.
    WRK- for werks
    LAG-storage location
    CHA for batch and so on.

  • Passing values to APEX items from external site

    All,
    Is it possible to pass values to APEX page items from an external web site?
    For example, I have an external web site where users type in a username and password into fields. When they click the 'log-in' button in the external site, I would like to have those values passed to the APEX log-in page. If possible, I would like to have the APEX log-in occur 'invisibly' and the user taken directly to the home page of the app. If that's not possible, it would be nice to simply have the 'user name' and 'password' fields filled in on the APEX side.
    I'm using APEX 3.0.
    Thanks in advance for any help!
    Alex

    Hello Alex,
    >> Is it possible to pass values to APEX page items from an external web site?
    The general answer is yes. You can use the f?p syntax to set the value of any APEX item - http://download-uk.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/concept.htm#sthref185 .
    In your specific example, the main question should be is it wise? The mere fact that you are using a login process suggests you have something to protect in your application. The f?p syntax uses a plain text for the items’ value, which means that the user name and password will be completely exposed.
    Regards,
    Arie.

  • Pass Value to Show Function in PLSQL PDK

    I've seen the other threads where people have portlets whose
    show mode is a form and they want to submit and return back to
    the same portal page. The answer is to use
    p_portlet_record.page_url.
    So now I have the page that I want to return to once I process
    the submitted results, but I need the Show function to know that
    it should show the results of the Form submit, not the Form
    again. How can I pass a value into Show so that it knows this?
    For example, lets says my Portlet gets stock quotes. My Show
    function provides a form where you specify the ticker symbol.
    When I submit the form, my CGI goes off and gets the stock
    quote, redirects me to the page identified by
    p_portlet_record.page_url, but then I want my Show function to
    know that now it should show the stock quote in the Portlet
    window, not the Form.
    Put simply, I want to show the results of a Form submit in the
    same portlet window. How can I do this? Thanks.

    The way we did this is by passing the relevant values from the
    form submission through session parameters with the portlet
    reference identifier. The 'show' code should then first check for
    any relevant values for its own reference path and according to
    those values perform a certain action. In our case, from a list
    screen in a portlet we go to an edit screen (form) in the same
    portlet while passing the record_id through session parameters.
    Check the parameter passing portlet in the PDK
    Cheers,
    Patrick

  • Passing values to JavaBean function using jsp scriplet

    Hi,
    I have a JavaBean funtion that is SaveData(parameters)
    which save the values from HTML form.
    Now i want a code for pass the values from HTML form to SaveData() function using jsp scriptlet.
    I used the code
    <jsp:useBean id="JDBC" class="bean.JDBCBean" scope="application"></jsp:useBean>
    <%=JDBC.saveData(phonenumber,manufacturer,model,email,country,newsletter)%>
    Here
    JDBCBean -> Bean Name
    phonenumber,manufacturer,model,email,country,newsletter ->HTML form's text values
    But it didnt work properly.
    Anyone help me to correct this.

    Hi,
    i have the same code like above
    I have to pass the parameters with form name under the following code.
    <jsp:useBean id="JDBC" class="bean.JDBCBean" scope="application"></jsp:useBean>
    <%=JDBC.saveData(registration.phonenumber.value,id_type.value,id_style.value,registration.email.value,registration.scountry.value,player_type.values)%>
    Here
    registration -> HTML form name
    But i got the error for
    package registration does not exist
    out.print(JDBC.saveData(registration.phonenumber.value,id_type.value,id_style.value,registration.email.value,registration.scountry.value,player_type.values));
    How to i correct this?
    Anyone help me......

  • Question - Passing date to a function from a Query

    Hello,
    I have a function which looks like this
    CREATE OR REPLACE FUNCTION CAL_DATES_FNC
    (fp_fddate IN VARCHAR2,
    fp_task IN VARCHAR2
    RETURN VARCHAR2
    IS
    BEGIN
    IF TO_CHAR(TO_DATE(fp_fddate,'YYYYMMDD'),'DD-MON-YYYY') <= TO_CHAR(ADD_MONTHS(TO_DATE(fp_fddate,'YYYYMMDD'),60),'DD-MON-YYYY')
    THEN
    RETURN TO_CHAR(ADD_MONTHS(TO_DATE(fp_fddate,'YYYYMMDD') +21,6 * SUBSTR(fp_task,-2)) ,'DD-MON-YYYY');
    ELSIF TO_CHAR(TO_DATE(fp_fddate,'YYYYMMDD'),'DD-MON-YYYY') >= TO_CHAR(ADD_MONTHS(TO_DATE(fp_fddate,'YYYYMMDD'),72),'DD-MON-YYYY')
    THEN
    RETURN TO_CHAR(ADD_MONTHS(TO_DATE(fp_fddate,'YYYYMMDD') +21,12 * SUBSTR(fp_task,-2)) ,'DD-MON-YYYY');
    END IF;
    END;
    I am using this function in a query as given below to pass a date fp_fddate
    The problem I am having is that the function is executing only the first part of the IF construct it is not going into the second IF condition.
    Can some one please let me know where I could be going wrong.
    SELECT ABC.PT,
    ABC.INV,
    ABC.INVSITE,
    ABC.TASK TASK_NAME,MAX(XYZ.FPDATE) fpdate ,
    CAL_DATES_FNC(MAX(XYZ.FPDATE),ABC.CPTASK) "DATE1",
    TO_CHAR(TO_DATE(ABC.D_YR||ABC.D_MON||ABC.D_DAY,'YYYYMMDD'),'DD-MON-YYYY') "DATE2"
    FROM ABC,
    XYZ
    WHERE ABC.PT = XYZ.PT
    AND PATSTAT.PT = '61090'
    GROUP BY ABC.PT,ABC.INV,ABC.INVSITE,ABC.D_YR,ABC.D_MON,ABC.D_DAY,ABC.CPTASK
    Regards
    Fm

    Hi,
    IQ wrote:
    Thanks for your messages. I am sending the scripts for the tables and insert statements in this message. Hope this will help to recreate the scenario.Don't forget to post the output you want from that data, and an explanation of how you get that output from the given data.
    Some of my answers are as follows,
    1) I know that the function is not in a proper syntax and thats the reason I need to fix it to be able to perform well. All I want is to compare the dates for a 5 year period(60 months) and then return something . For a period greater than 6 years (72 months) it should return something else.What dates do you want to compare? I assume fp_fddate is one of them, but what about the other(s)?
    When does the 5-year period begin or end?
    When does the 6-year period begin or end?
    I understand the fucntion may return either of two values. Do you care what those two values are? If so, give examples.
    What if the date is in neither the 5-year nor the 6-year period? (A fucntion has to return something in all cases. It can return NULL, if that's what you want.)
    What if the argument can't be interpreted as a date?
    2) Regarding the string datatype for date columns I cannot change the database design as this is done by another team, I can however explain them the points mentioned here.
    Please find below the scripts When you say TEST_DATES, do you mean TEST_DATES1. or is there another table? Test before you post.
    CREATE TABLE TEST_DATES
    pt VARCHAR2(10 BYTE),
    inv VARCHAR2(10 BYTE),
    invsite VARCHAR2(10 BYTE),
    task_name VARCHAR2(20 BYTE),
    fpddate VARCHAR2(8 BYTE),
    DATE1 VARCHAR2(4000 BYTE),
    DATE2 VARCHAR2(17 BYTE)
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (61090,'XDUMMY1'     ,'R1111','UP01'     ,'19990714','04-FEB-2000',     '17-JAN-2000');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,     'XDUMMY1','R1111','UP02','19990714','04-AUG-2000','20-JUL-2000');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,     'XDUMMY1','R1111','UP03','19990714','04-FEB-2001','19-JAN-2001');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP04','19990714','04-AUG-2001','21-JUL-2001');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP05','19990714','04-FEB-2002','20-JAN-2002');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP06','19990714','04-AUG-2002','19-JUL-2002');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP07','19990714','04-FEB-2003','17-JAN-2003');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP08','19990714','04-AUG-2003','15-JUL-2003');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP09','19990714','04-FEB-2004','20-JAN-2004');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP10','19990714','04-AUG-2004','25-JUL-2004');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP11','19990714','04-FEB-2005','27-JAN-2005');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP12','19990714','04-AUG-2005','25-JUL-2005');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP13','19990714','04-FEB-2006','28-JAN-2006');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP14','19990714','04-AUG-2006','30-JUL-2006');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP15','19990714','04-FEB-2007','31-JAN-2007');
    /You said that sometimes the data contains values like 'NA'. Shouldn;t the sample data have an example or two of that?
    Once the data is populated in the table , use the following query
    select TASK_NAME,RCM_CAL_THEORETIC_DATES_FNC(MAX(fpddate),task_name) "DATE1"
    from test_dates1
    group by task_name When you say
    RCM_CAL_THEORETIC_DATES_FNC, do you mean the function you posted in your first message, which was called
    CAL_DATES_FNC, or is there another funciton?
    When I make those changes and run the query, I get 15 rows:
    TASK_NAME            DATE1
    UP06                 04-AUG-2002
    UP07                 04-FEB-2003
    UP14                 04-AUG-2006
    UP08                 04-AUG-2003
    UP10                 04-AUG-2004
    UP12                 04-AUG-2005
    UP15                 04-FEB-2007
    UP01                 04-FEB-2000
    UP02                 04-AUG-2000
    UP03                 04-FEB-2001
    UP05                 04-FEB-2002
    UP13                 04-FEB-2006
    UP04                 04-AUG-2001
    UP09                 04-FEB-2004
    UP11                 04-FEB-2005Is that correct?
    If so, what is the problem?
    If not, what results should I get?
    What is the function supposed to do?
    Edited by: Frank Kulash on Nov 9, 2010 4:45 PM

Maybe you are looking for

  • How do i install iphoto on my macbook pro without the application disk?

    For some reason I uninstalled the Iphone app from my macbook pro, and now I want it back but dont have the disks either. I need some help installing it back without running the application disk. Please help!!!!!!!!!!!!!!!!!!

  • I need to get the cluster information using"MSCluster.Cluster" object

    Hi, Please anyone solve my problem ? I need to get the cluster information using"MSCluster.Cluster" object. Set objCluster = CreateObject("MSCluster.Cluster") objCluster .open <clustername> If i run the vbscript " Microsoft VBScript runtime error: Ac

  • ITunes will NOT open since updates.

    I dont know what it's problem is but im getting sick of it. iTunes will not open no matter how many times I click it. I get the little circle loading icon for about 1 second then nothing happens. I have uninstalled and re-instaled and it's still the

  • FieldLeafRef column in List

    On SharePoint 2013 Server, "FieldLeafRef" field appears on lists as well. Is this normal? Biggest issue I have so far is on lists, I can no longer add new item on quick edit mode. When I pulled properties of this field (listed below), it show it's "R

  • Shipment cost documents in automatic purchase order

    Does somebody can help me about a shipping problem ? While transferring shipment cost documents to FI-co with automatic generation of purchase order, SAP create one purchase item order for all my shipment cost documents. Is it possible to customize t