Passing dynamic value into HTML from webforms

We're setting up an imaging application on the web, and I need the ability to read an image path from the database with forms (or a stored PL/SQL procedure I can call from forms), and have that open an HTML file in a web browser and pass it the name of the file I need opened. The HTML file is mostly static, but needs to accept the filename parameter at runtime.

For our application, we're using an image viewer called Spicer Image a.X 7.20 for the web.
What I had to do was build a procedure named web_image in pl/sql to be called from a webform with web.show_document('server/pls/portal30/web_image?filename_in='||<oracle_file_id>,'_blank')
That call worked just fine and I get a new instance of the web browser with the HTML I set up in my web_image procedure.
Here's the procedure.
create or replace procedure web_image(filename_in varchar) as
begin
htp.p('<HTML>');
htp.p('<HEAD>');
htp.p('<TITLE>AEC Web Image Integration</TITLE>');
htp.p('</HEAD> ');
htp.p(' <BODY>');
htp.p('<!-- Embed the Image aX View Control. -->');
htp.p('<OBJECT');
htp.p(' CLASSID="clsid:1120C1B3-8768-11D1-8108-020701190C00"');
htp.p(' ID="SpicerViewControl"');
htp.p(' ALIGN="center" WIDTH="800" HEIGHT="500" BORDER="0" VSPACE="0" HSPACE="0">');
htp.p('</OBJECT> ');
htp.p('<!-- Embed the Image aX Document Control. -->');
htp.p('<OBJECT');
htp.p(' CLASSID="clsid:895CDC65-8837-11D1-8109-020701190C00"');
htp.p(' ID="SpicerDocumentControl"');
htp.p(' ALIGN="center" WIDTH="1" HEIGHT="1" BORDER="0" VSPACE="0" HSPACE="0">');
htp.p('</OBJECT> ');
htp.p('<!-- Open a file. Bind the View Control to the Document Control. -->');
htp.p('<SCRIPT LANGUAGE="JavaScript">');
htp.p(' <!--');
htp.p(' SpicerDocumentControl.OpenFile("'||filename_in||'"');
htp.p(')');
htp.p(' SpicerViewControl.BindToDocumentControl(SpicerDocumentControl)');
htp.p(' //--> ');
htp.p(' </SCRIPT>');
htp.p(' </BODY>');
htp.p(' </HTML>');
end;

Similar Messages

  • How to passing value into Captivate from html?

    How to passing value into Captivate from html?
    Or
    How to communicate between objects in one slides?

    Hi czhao0378 and welcome to the forums!
    Captivate does not natively allow you to communicate your own
    data, either internally or externally. The only way to make this
    happen is to create your own functionality, either via custom-built
    Flash objects or JavaScript code executed in the browser or a
    combination of both.
    The only example I've seen of any "data passing" inside
    Captivate is a custom text input/output solution that was posted on
    the Captivate Developer Exchange:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
    This solution consists of an input box that takes information
    from the user on one slide and a second box that displays that
    information on another slide. The functionality was built in Flash
    and is embedded in Captivate as a Flash "animation". Unfortunately,
    since this is a custom functionality, the information is not
    included in the user completion results Captivate can pass to a
    Learning Management System.
    Since the solution mentioned above relies on a Flash
    Actionscript variable to hold the information that is displayed,
    you can also pass the information from HTML to Captivate using the
    "SetVariable" command in JavaScript. This would at least allow you
    to display your own HTML-based data inside Captivate.
    Beyond that, I'm not aware of any other way to gather and
    pass data in Captivate.

  • How can I pass a value into a page fragment?

    How can I pass a value into a page fragment?
    I am implementing four search screens. And the only thing different about them will be their backing bean.
    So I’d like to do something like have four pages, each which retrieves its appropriate backing bean, sets that bean to a variable, and then includes a page fragment which contains the generic search page code (which will make use of that variable).
    The code in the four pages would be something like this:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <c:set var="searchPageBackingBean"
    value="#{pageFlowScope.employeeSearchPageBean}"
    scope="page"/>
    <jsp:include page="./SearchPageBody.jsff"/>
    </jsp:root>
    At this point, what I’m seeing is that the fragment page, SearchPageBody.jsff, has no visibility of the searchPageBackingBean variable, either referencing it as #{pageFlowScope.searchPageBackingBean} or just #{searchPageBackingBean}

    The following will work, assuming you are needing to access a managed bean:
    Put this in the parent page:
    <c:set var="nameOfSearchPageBackingBean"
    value="employeeSearchPageBean"
    scope="request"/>
    Put this in the child, SearchPageBody.jsff:
    <c:set var="searchPageBean"
    value="#{pageFlowScope[nameOfSearchPageBackingBean]}"
    scope="page"/>

  • Pass dynamic values to search-query in wlp-syndication-config for RSS

    Hi All,
    I want to pass dynamic values to the <search-query> element for the <syndication-feed> node in the wlp-syndication-config.xml file for implementing RSS feeds.
    Here's a sample
    <syndication-feed>
              <name>RSSFeed</name>
              <search-query>cm_objectClassInstance=='Node' &amp;&amp; date == 'x'_</search-query>
              <search-type>pubmeta</search-type>
         </syndication-feed>
    I tried passing the parameter in the url but the feed doesn't read it. The only option i have is to manually put the value to get the content from the repository, which sucks...because the values can change any time. is there any way that I can avoid it
    Any help on this would be appreciated.
    Thanks,
    K

    James:
    Passing filters to an IR within the URL is described here
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#sthref989
    Varad

  • How to Pass Dynamic values to XML in flex

    Hi,
    i just want to pass dynamic values. it must be stored in XML
    List or XML .for Ex: In my App i want to pass
    Edu_Institute,From_date,To_Date,Qualification fileds to
    Education table. I have used Webservices to connect with the
    Backend.
    At that time of processing, i want to pass 2 or more sets of
    Dynamic Values of Edu_Instiute,From_Date,To_Date....... to my
    webservice .
    i fetch the Edu_Institute value from text1.text From_Date
    from Datefield1.text etc... when i click the Add Button it must be
    stored in XMLnode[0],XMLnode[1]......& i will pass this nodes
    to my table
    How to do that??
    Can anyone please find out the solution for me??
    Thanks
    Regards,
    Thenmalar v

    Are you asking how to build XML in Actionscript?
    If so, the "literal" syntax is easy:
    var xmlData:XML = <root><text
    myAttr={test1.text}</root>
    You can also work directly with the XML class methods.
    Tracy

  • How to pass src value into img tag in ADF

    Hi,
    My Dev : 11.1.2.3.0
    How to pass row values into <img> tag.,I used the below code but it's taking empty.,
    I tried both ways like #{row.CdFilePath}   and   ${row.CdFilePath}
    <af:iterator var="row"
                      value="#{bindings.xxx.collectionModel}"
                     id="i2">
         <img src='/ShowImage?src=#{row.CdFilePath}' border='0' style="width:100px; height:100px; margin:5px;"/>
    </af:iterator>
    Please tell me any other option is there..
    Thanks

    This works if you use a normal table so I guess it should work here too.
    Are you sure the el #{row.CdFilePath} return something?
    Why don't you use the adf image tag <af:image source="/ShowImage?src=#{row.CdFilePath}".../> instead of the html img tag?
    Should the src property not be enclosed with " instead of your '?
    Timo

  • Dynamic update another html from pop

    Hi,
    I have a main html(jsp) page which calls a pop up window to let user to add some items.
    When user finished adding items in popup window, how can I update the main page(to show some items, like the finished uploading of attachment in "Yahoo Compose Mail") without refreshing the whole screen.
    This question seems much more related to dynamic html(I don't know)
    and anyway hopes someone can give me some advices?
    thank
    john

    Hi,
    dynamic update another html from pop???In this situation you can make use of Scripts like JavaScript or
    VBScript for updating the mail html browser content from popup window.
    These scripts provides access to objects like parent window..
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support/

  • How i can pass the value into 1 line

    Hi expert,
    how do i pass all the value for sales document flow item in one line?
    i'm using this function
    CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
        EXPORTING
          aufbereitung  = '2'
          belegtyp      = i_del-vbtyp
          comwa         = l_comwa
          nachfolger    = ' '
          vorgaenger    = 'X'
          v_stufen      = '50'
        TABLES
          vbfa_tab      = lt_vbfa
        EXCEPTIONS
          no_vbfa       = 1
          no_vbuk_found = 2
          OTHERS        = 3.
    so now lt_vbfa already got data line by line....
    line 1 : contract : 00010 : 1000000 : 19,000.00
    line 2 : order     : 00010 : 2000000 : 10000.00
    line 3 : delivery : 00010 : 3000000 : 10000.00
    how i can pass the value into 1 line?
    for example :
    contract  | line     | amount     | Order     | line     | amount    | delivery   | line     | amount     |
    1000000 | 00010| 19,000.00 | 2000000 |00010 | 10000.00 | 3000000 | 00010 | 10000.00 |
    Edited by: anuar jusoh on Aug 17, 2009 4:02 AM

    Hi,
    What is requirement for passing the data in a single line ? Do you finally need to append the same in the internal table and pass it in the module ?
    You can create an internal table of type 1000 character and can loop the existing internal table. Then you can append the Work area in a single line and can finally append it to the table.
    DATA : ITAB type standard table of char1000.
    Loop at <existing table>.
    concatenate table work area wa_char100 into Itab_char_1000.
    endloop.
    APPEND itab_char_1000 into itab.
    Hope this helps.
    Thanks,
    Samantak.

  • EmailNotification- passing dynamic value to From address

    hi,
    on configuring email activity,
    we are passing the from address dynamically.
    From address is taked from the payload.
    but when the email is triggered, the email comes from the address which we have configured in the UMS in the server side..
    why does this happens.. ??

    i am referring to From Account name only..
    configured the From account name in the server UMS (for eg: [email protected])
    but, i need this to be passed dynamically from the payload..
    in the Email assign activity, From account name is mapped to the payload From address..
    but its not taking that address from the payload..
    the account name configured n the server is taken as default..
    what should be done for dis?

  • Passing request value into a query

    Hi,
    I was wondering whether it was possible to pass a request value into a report query in apex 3.2.
    I have a button with a submit value of "ALL" which when pressed i need to open up all the contents of a query as opposed to on those that have been completed.
    SELECT *
    FROM TABLE
    WHERE (STATUS = 'COMPLETE' OR :REQUEST = 'ALL')
    I was expecting this to return only completed records, unless the Button is pressed and then I want to return all records regardless of status.
    Can someone please advise whether this will work? At present it does not seem to recognise the request.
    Cheers,
    ca84

    query could not be parsed: select "ASCIDD" "ASCIDD", "TEMIDD1" "TEMIDD1", "NAME" "NAME", "LSTIDD1" "LSTIDD1", "ASCORDOPT"
    "ASCORDOPT", "ASCORD" "ASCORD", "TEMIDD2" "TEMIDD2", "TEMDES_COUNT" "TEMDES_COUNT" from ( /* Formatted on 2010/12/06
    15:23 (Formatter Plus v4.8.8) */ SELECT ascidd, temidd1, (SELECT temdes FROM lsttem WHERE temtyp = 'D' AND lsttem.temidd =
    temidd1) NAME, lstidd1, ascordopt,ascord,TEMIDD1 TEMIDD2, CASE (:REQUEST) WHEN 'COUNT' THEN
    LSTTEM_PKG_1.CountRecords(TEMIDD1) ELSE 0 END "TEMDES_COUNT" FROM lsttemasc WHERE lstidd1 = :p355_lstidd and exists
    (select 'y' from lsttem where bizidd1 = :P355_BIZIDD1 and lsttem.TEMIDD = lsttemasc.TEMIDD1) order by ascord;) apex$_rpt_src
    failed to parse SQL query: ORA-00911: invalid characterThe ";" looks very suspicious...
    And please:
    <li>Update your forum profile with a better handle than "user13453962"
    <li> DON'T post unrelated questions as follow-ups to existing threads. This issue is not connected to the OP.

  • Pass a Value to Variable from the unix environment in ODI (ELT)

    Hi
    i am very new to ODI environment.
    i want know how to pass a value to variables in oracle data integrator from unix environment.
    Example:
    Variable name : Sales
    for variable name sales i want to pass the value from unix environment.
    Regards,
    Raj
    Edited by: user11137587 on Aug 19, 2009 6:26 AM

    Work Around !
    You can execute OS commands using Jython script. Probably you need to flush your enviornment variables value into a file using jython script and then read those value into ODI variable from the file.
    BUt may I know why you want to read environment variable vaules in ODI, Dont you think this will make your application less portable
    Regards,
    Amit

  • How to pass dynamic values to JDBC Database adapter in PureSQL operation?

    I want to fetch the records from the table via JDBC database adapter with the criteria but I should not hardcode the values inside my query. I am using Execute by PureSQL operation. Values might change in future and it is the reason I should not hardcode the values and instead I should pass it dynamically.
    This is my query:
    SELECT FROM Table0 t0, Table1 t1 WHERE t0.Field1= 'ABC' AND t0.Field2= 'DEF' AND t0.Field3 = 'CBA' AND t1.FLAG IS NULL AND t1.Field1 = t0.Field4*
    The values 'ABC', 'DEF', 'CBA', 'NULL' are not fixed and it can be changed. Hence, I need to pass the values for these fields dynamically. What must be passed in the query and where to pass the User Defined Values during the run time.
    Please can anyone suggest how to resolve this. I am using SOA 11g.
    Thanks in advance.

    Hi,
    Ensure that you use the Adapter Configuration Wizard to do the query modification suggested by Arik. This will allow the schema for the DB Adapter getting created automatically. Also revisit this schema to assure that the data types of the bind parameters (parameters with #) have been correctly populated in the schema.
    You can get some help from this too although this doesn't fully match your use-case.
    Regards,
    Neeraj Sehgal

  • Passing dynamic values in WebElements

    Hi
    I have created a report with webelement using WESelect. For drop down values we are creating a sting of values with allelements.Is there a way i can get the values from a database column or dynamic values.
    For example a Week WESelect is created with values as follows:
    string allelements:= ("week","wk01|wk02","wk01|wk02",{?week},"")
    instead of this values can we get values from database column like {week.weeknumber} ?
    How can this be solved.
    Thanks & Regards
    Mahesh

    hello Mahesh,
    in the tips and tricks section of the webelements user guide there is the following information...
    Can webElements be used with live data?
    Yes. Controls such as select menus that require that data be rolled up or
    amalgamated before the control is created are populated by running a
    Report Header subreport that rolls the data up. The data is then passed
    to the main report via a shared variable which is used in the control.
    Please see the DCP reports in the webElements .zip package for ideas on
    how to do this.
    Controls such as check boxes or radio buttons can be populated by
    placing the formula containing the control in the Details section or the
    Group Header / Footer section where the control is needed. Ensure that
    the controls do not span more than one page. See the Requirements
    section of the User Guide for more information.
    i hope this helps,
    jamie

  • Pass a value in textbox from choose from list.

    Hi SAP experts,
    How to pass a value from a choosefrom list into textbox.?
    i'd created a form then in my one textbox, i inserted a choosefrom list. im trying to pass a CardCode but im getting a Bad Value ERROR.
    whis is my code in Creating a textbox with choosefrom list
    oItem = oForm.Items.Add("txtCFrom", SAPbouiCOM.BoFormItemTypes.it_EDIT)
                oItem.Left = 40
                oItem.Width = 80
                oItem.Top = 10
                oItem.Height = 14
                oItem.Enabled = True
                'Set txtCFrom
                oForm = SBO_Application.Forms.GetForm("60004", 0)
                oForm.DataSources.DBDataSources.Add("OCRD")
                Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                oCFLs = oForm.ChooseFromLists
                Dim oCFL As SAPbouiCOM.ChooseFromList
                Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                oCFLCreationParams.ObjectType = "2" 
                oCFLCreationParams.UniqueID = "DVDCFL"
                oCFL = oCFLs.Add(oCFLCreationParams)
                oEditText = oItem.Specific
                oEditText.DataBind.SetBound(True, "OCRD", "CardCode")
                oEditText.ChooseFromListUID = "DVDCFL"
    AND this is my code in ITEM  PRESSED - when choosing a BP
    Select Case pVal.BeforeAction
                    Case False
                        Select Case pVal.FormType
                            Case "60004"
                                oForm = SBO_Application.Forms.GetForm("60004", 0)
                                Select Case pVal.ItemUID
                                    Case "txtCFrom"
                                        Select Case pVal.EventType
                                            Case BoEventTypes.et_CHOOSE_FROM_LIST
                                                oCFLevent = pVal
                                                Dim oDataTable As SAPbouiCOM.DataTable
                                                oDataTable = oCFLevent.SelectedObjects
                                                oItem = oForm.Items.Item("txtCFrom")
                                                oForm.Items.Item("txtCFrom").Specific.value = oDataTable.GetValue(0, 0).ToString
                                                SBO_Application.MessageBox(oDataTable.GetValue(0, 0))
                                        End Select
                                End Select
                        End Select
                End Select
    thanks,

    First create userdatasource.
    frmPayment.DataSources.UserDataSources.Add("AFolder", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
    Second bind the datasource to editText
    fl_DP = frmPayment.Items.Item("fl_DP").Specific
    fl_DP.DataBind.SetBound(True, , "AFolder")
    Third in ChooseFromList event
    frmAmortSched.DataSources.UserDataSources.Item("AFolder").ValueEx = oDataTable.GetValue(0, 0)

  • How to pass a value into a SQL Query?

    Hi There,
    I want to know if there is a possibility to pass a dynamic value in a sql query. For example I have a currency rate value (ex: rate = 1.319, 2.23 etc) which user wants to input when running the query (The rate is not taken from the system, so I cannot compare to any table column and pass it as a parameter).
    And this rate has to be used in my query to do some calculation. Is this possible? The value :p_currency_rate doesn't work
    Any ideas please?
    Thank you,
    Prathibha

    SELECT DISTINCT
    hou.name
    ,poh.segment1 po_num
    ,pol.line_num po_line_num
    ,poh.currency_code
    --,trunc(poh.creation_date) po_creation_date
    ,pol.cancel_flag
    ,msi.segment1 item_num
    ,pol.unit_price
    ,round(cost.item_cost,5)
    ,round((&p_rate * pol.unit_price),5) "CONVERSION"
    ,(cost.item_cost - round((&p_rate * pol.unit_price),5)) difference
    ,pov.vendor_name
    FROM
    po.po_headers_all poh
    ,po.po_lines_all pol
    ,po.po_vendors pov
    ,hr.hr_all_organization_units hou
    ,inv.mtl_system_items_b msi
    ,bom.cst_item_costs cost
    WHERE
    poh.po_header_id = pol.po_header_id
    and pov.vendor_id = poh.vendor_id
    and poh.org_id = hou.organization_id
    and hou.organization_id = :p_operating_unit
    and poh.currency_code = :p_currency
    and poh.creation_date between :po_creation_date_from and :po_creation_date_to
    and poh.type_lookup_code = 'BLANKET'
    and msi.inventory_item_id = pol.item_id
    and cost.INVENTORY_ITEM_ID = pol.ITEM_ID
    --and (cost.item_cost - pol.unit_price) <> 0
    and (cost.item_cost - round((&p_rate * pol.unit_price),5)) <> 0
    and cost.organization_id = 1
    and msi.organization_id = 1
    and cost.cost_type_id = 3 --- Pending cost type
    and nvl(upper (pol.closed_code),'OPEN') not in('CANCELLED', 'CLOSED', 'FINALLY CLOSED', 'REJECTED')
    and nvl(upper (poh.closed_code),'OPEN') not in('CANCELLED', 'CLOSED', 'FINALLY CLOSED', 'REJECTED')
    and nvl(pol.cancel_flag, 'N') = 'N'
    and &p_rate user parameter
    I want this p_rate to be passed as a user parameter.

Maybe you are looking for

  • PPro CC crashes when using Track Select tool

    This is probaby the most bizzare bug i have encountered so far - everythig works - i can scub, play and adjust footage, apply effects, titles and time remapping, but when i select Treack Select tool and click on the timeline, Premiere Pro crashes. Th

  • ORA-01031: insufficient privileges in oracle 10.2 in windows 2008r2

    Dear All, We have install SAP ecc6 EHP4 on oracle 10.2.0.5 on windows 2008R2 whenever we schedule any activity in db13 we are getting below error . ================================= Job started Step 001 started (program RSDBAJOB, variant &00000000000

  • Deleting parked documents

    hello,   we have a bunch of parked invoices in the system .....which we don't want to post and remove them so they don't show up in the parked document list anymore. Kindly provide suggestions how to do this. Thanks in advance

  • Installation aborting after 50% on Win2K sp4

    Hi, Installtion is aborting once it reaches 50%, it is closing the Installer window. The following error is logged in the install log file. Method 'dispose()' Not implemented in class 'OiStarterDBConfig' *** Install Page*** Oneoff entries cannot be r

  • MacBook Pro is frozen

    The people at apple told me to download kaspersky after I download parallels. After I did my computer started beeping and I shut it off and now when it starts up my mouse is frozen and my icons on my desktop won't load completely