Dynamic Images based on textfield values

First time poster LONG time lurker.
Im using the latest version of livecycle.
My project is essentially creating a pdf that allows reps to just type in model numbers into a TEXTFIELD and based on the that will populate an image along with a description of what the product is based on the url's H1 tag within source code (More explanation below)
1st box is a TEXTFIELD
For this box people will be typing in 7 digit model numbers of products
2nd is an IMAGE that needs to be dynamic & have the source href based on what was entered in the TEXTFIELD
Problem is the structure would be http://mywebsite.com/products/[TEXTFIELD].jpg
***example 1 : if a user types in 1234567 in TEXTFIELD , then the image should be sourced from
http://mywebsite.com/products/1234567.jpg
Also the next crucial part is being able to pull out the data from an H1 tag from a URL's source
So if I were to go to a product page [http://mywebsite.com/productid?=1234567]
the product description is placed in a <h1> tag
I will have to have at least a few rows of these fields so that a rep can just type in the model numbers while the image popup accordingly
If anyone could please help me out with this I would be forever in your debt.

based on user authorizationThat is already standard Apex functionality.
and values in a tableYou can use jQuery to hide a tab. So, you create a tab in Apex, but hide it when necessary when running the page. Something like:
if (<some condition>) {
   $("#tab_id").hide();
};Put this in the "Execute when Page Loads" in the JavaScript section on the Page definition.

Similar Messages

  • How to dynamic select based on runtime value ?

    how to dynamic select based on runtime value ?
    I want to write a select function, which do selecting based on parameters. eg,
    CREATE OR REPLACE FUNCTION myfunction
    (tableName VARCHAR2, pkName VARCHAR2, pkValue VARCHAR2, requestString VARCHAR2)
    RETURN VARCHAR2 AS
    BEGIN
    select requestString from tableName where pkName=pkValue;
    RETURN NULL;
    END;
    myfunction('users', 'user_id', '100', 'user_name'); it will select 'user_name' from table 'users' where 'user_id' = '100'.
    This way could save lots of coding. but it can't pass compiler. how to work out ?
    Thanks.

    While this may save code, if used frequently it will be ineffecient as all [explicative deleted]. The danger is that it would be used even for repeatable statements.
    This mode of operation ensures that every statement [calling the funciton] needs to be reparsed, which is extremely expensive in Oracle (in CPU cycles, recursive SQL and shared pool memory).
    Such reparsing is rarely a good thing for the environment ... it could easily lead to buying more CPU (bigger box) and therefore adding more Oracle license ... which could quickly exceed the typical developer's salary.
    However - if you really, really want to do this, look up 'execute immendiate' in the PL/SQL manuals.

  • Dynamic tabs based on table values

    Hi all,
    How can you display tabs dynamically based on user authorization and values in a table that contains the page id's and tab id's for example?

    based on user authorizationThat is already standard Apex functionality.
    and values in a tableYou can use jQuery to hide a tab. So, you create a tab in Apex, but hide it when necessary when running the page. Something like:
    if (<some condition>) {
       $("#tab_id").hide();
    };Put this in the "Execute when Page Loads" in the JavaScript section on the Page definition.

  • CAML Query to get specific item in folder based on dropdown value using Javascript client object model

    Hi,
    I am using the Javascript Client object model.
    I have a custom list and a custom document library.
    Custom list contains 2 columns - dlName , dlValue
    The document library contains 2 folders - "folder1" ,  "folder2" and contains some images.
    The image name starts with the "dlValue" available in the custom list
    I am using a visual webpart and using javascript client object model.
    I am trying to achieve the below functionality:
    1) Load a dropdown with the custom list.
    2) set the image based on the value in dropdown.
    I have achieved the first option, I have set the dropdown, but not sure how to query the folder and set the image.
    Below is the code i have used so far:
    //In Visual webpart
    <select id="ddlTest" >
    </select>
    <br/>
    <div id="PreviewLayer">
    <img id="imgPlaceHolder" runat="server" alt="Image" title="imgPlaceHolder" src=" " />
    </div>
    // In Javascript file
    function RenderHtmlOnSuccess() {
    var ddlTest = this.document.getElementById("ddlTest");
    ddlTest.options.length = 0;
    var enumerator = this.customListItems.getEnumerator();
    while (enumerator.moveNext()) {
    var currentItem = enumerator.get_current();
    var dropdownValue = currentItem.get_item("dlValue");
    ddlTest.options[ddlTest.options.length] = new Option(currentItem.get_item("dlName"), dropdownValue);
    setImage(dropdownValue); // Not sure how to query the folder and set the image based on value.
    // Also if dropdown value is changed, corresponding image should be shown
    How to query the folder and based on dropdown value, show the image? Also, how to handle the dropdown value change?
    Thanks

    Hi,
    Here are two links for your reference:
    Example of how to Get Files from a Folder using Ecmascript \ Javascript client object model in SharePoint 2010
    http://sharepointmantra.wordpress.com/2013/10/19/example-of-how-to-get-files-from-a-folder-using-ecmascript-javascript-client-object-model-in-sharepoint-2010/
    SP2010 JSOM Client Object Model: How to get all documents in libraries including all folders recursively
    http://sharepoint.stackexchange.com/questions/70185/sp2010-jsom-client-object-model-how-to-get-all-documents-in-libraries-including
    In SharePoint 2013, we can also use REST API to achieve it.
    http://msdn.microsoft.com/en-us/magazine/dn198245.aspx
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Dynamic Select List based on TextField data

    Hi,
    I like to dynamically display the select list based on the value in the textfield, the data in the textfield is of character type.
    Thanks

    Hello,
    Well as you now know HTML based select lists don't work like that, that widget is called a combo box and there will be built in combo boxes in APEX 3.0, it's a fairly complex dhtml widget.
    What you might want to do is provide a text item next to your select box and an Add New Value Option in your select list.
    Carl

  • Plot a chart dynamically based on the values selected

    Hi All,
    I have some requirement like this i want to plot a chart . The chart should change dynamically based on target_name and date. What type of UI should I use ? I tried using multiselect or shuttle for choosing the target_name and date picker tool for date once i choose all this the chart should appear. Can I have a custom button called submit so once all the values are entered it plots chart ? Please help me out with our ideas.
    Thanks in Advance

    Hi,
    Using the dependent value sets you can govern the values which can be selected based on a specific value selected in a particular segment. Example if Country name is selected in segment 1 then specific states names as per the country selected can be displayed in segment 2.
    As per the requirement described you want to enable different fields based on the value selected in segment1, currently there is no standard mechanism available to enable/disable fields based on a value and you will have to do an extension/customization to meet this requirement.
    Thanks,
    Sanjay

  • Hide multiple rows in a dynamic table based on the row value.

    Hi,
    I need to hide multiple rows in a dynamic table based on the specific value of that row.
    I cant find the right expression to do that.
    please help

    Go to the Row Properties, and in the Visibility tab, you have "Show or hide based on an expression". You can use this to write an expression that resolves to true if the row should be hidden, false otherwise.
    Additionally, in the Matrix properties you should take a look at the filters section, perhaps you can achieve what you wish to achieve through there by removing the unnecessary rows instead of just hiding them.
    It's only so much I can help you with the limited information. If you require further help, please provide us with more information such as what data are you displaying, what's the criteria to hiding rows, etc...
    Regards
    Andrew Borg Cardona

  • Dynamic variable value based on a value from xml

    I have a invoice template and it is for 4 different companies in my organization. Based on the organization I need to have a different value for a variable that adds blank lines to the end of the invoice. Is there anyway to assign a value to variable based on the value of a xml tag.
    Thanks

    I should have explained better before. I have one invoice template and we want to keep it one template for all companies. Each invoice is run individually, each companies footer is different, I am calling multiple headers and footers based on each company. Since the headers and footers are different I need to be able to add different amounts of lines and the end of each invoice depending on that company. I have accounted for the page break in my logic based on the amount lines the page is long. I just need a dynamic variable that I can assign different values on the fly.
    Thanks

  • Dynamic image displays depending on yes / no value

    Dynamic image displays depending on yes / no value    
    I´d like to have a image showing, depending on a specific value (y/n)
    ..sorry need some help.
    I can´t get it workin.....
    <img <?php $status="n";
    if ($status == "y") {
      echo 'src="stecker_on.png" alt="yes"';
    } else {
      echo 'src="stecker_off.png" alt="no"';
    } ?> height="71" width="101" />
    The image ist not showing... ideas ?
    All I get ist some text showing:
      height="71" width="101" />
    MANY THANKS !!!!

    Presumably you mean this -
    http://mediaconsults.de/1test/steckertest.php
    And it's not clear what that is going to show me.  Looking at the code on the page -
    <html>
    <head>
    <title>Unbenanntes Dokument</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    MM_reloadPage(true);
    //-->
    </script>
    </head>
    <body background="test%20png.png">
    <div id="Layer1" style="position:absolute; left:1290px; top:246px; width:95px; height:112px; z-index:1"><img src="stecker_off.png" alt="no"height="101" width="71" /></div>
    </body>
    </html>
    I would advise you the following:
    1.  Put a valid and complete doctype on that page!
    2.  Get rid of the resize if NN4 javascript - it hasn't been needed for nearly a decade.
    3.  Fix your image code (note the missing space after "no"!
    4.  1290px is way too wide unless you want lots of people scrolling right to see things.

  • Retrieving dynamic textfield values

    hi all,
    i have a frame that contains a button.On clicking the button i create a textfield.Since i am creating it dynamically, i cannot get the value entered into it using "txtfieldobj.getText()" method.Is there any other way to get the value in the textfield.Please help me to solve this problem.Its very urgent.
    Thanks in advance
    Regards

    you are mixing pure java with mark-up language syntax.
    for that to execute i would think you have your for statment inside:
    <% %> tags or you have it inside a servlet..
    either way...your line should be:
    String ca1 = request.getParameter("ca1_" + i );
    when you get this working you should look into preparedstatements when doing repetative sql.
    gl, hope that helps.

  • Dynamic image report not working

    Hi,
    I am trying to create a report which has a dynamic image.
    - the report has
    a parameter: {?image_path}
    - user specifies the image location (ie. c:\image1.png)
    - the report take the image location as a parameter and change "graphic location" of the picture object.
    The following works fine in Crystal Report 11 R2, but not in .net application.
    I checked the passsed parameter value by displaying it, and the parameter value was correct.
    does anyone know why the picture object is not updated based on the value of parameter?
    Thanks,

    If you are using IIS on your local machine then that does not necessarily mean that the application has access to the root of the C drive (or your image folder).  Depending on the version of IIS you are using (IIS5 on XP and Win2k) or IIS6/7 on win2k3/2k8 there are different possibilites.
    I'll assume Windows 2003 server.  Here permissions of the application are determined by the application pool that the application is running under.  Typically this will be the 'Network Service' account which would not likely have permissions to all of the files and folders on your machine.  An easy test (to find out if its permissions) is to change the Identity used by your application pool from 'Network Service' account to the 'Local System' account, which should have access to most folders on your machine.  If this works, then its a permissions issue.
    If you are running the application directly from the Visual Studio IDE and you created your website as a 'File System' web site, then it will not use IIS but rather a personal web server called WebDev.WebServer.exe.  If this is the case, you'll see that executable in Task Manager.  This process will run under your currently logged on credentials and should have full access to the file system as would Crystal Reports designer or any Windows application you run.  If images still do not show up in this case (or the case of IIS running under the Local System account, then the next possibility is that you do not have CrystalImageHandler set up correctly in your application's web.config file. To make sure this is set up correctly then you will need to set this up as described in the [Crystal Reports Developer guide|http://help.sap.com/businessobject/product_guides/cr2008V1/en/crsdk_net_dg_12_en.zip]
    If you download this help file, search for "web.config" and look at the CrystalImageHandler section.
    If you are on Win2k8 using IIS7, then you will need to run your application pool in 'Classic' mode rather than 'Managed Pipeline' mode in order for dynamic images to show properly.
    Dan

  • Dynamic Image Marker

    Dears,
    Is it possible to create dynamic image marker theme? for example, I have a geometry table which contains the location of schools and universites, i would like to show different marker for each type. the geometry table has a code field (S: for school and U: for university). is it possible -some how- to dynamically change the marker based on the code value?
    Tahnk you

    You can either use an advanced style or, in your javascript, a layout customizer that looks at attributes stored in the FOI array.

  • Pulling dynamic images/JS issue

    Hi All,
    I have a problem I was hoping I could get some help with. I
    am using Zoomify (www.zoomify.com) to zoom in on products. The
    products are loaded up dynamically based on a sting that is passed
    after the URL. Example:
    http://www.grjd.com/zoom/dynamic.html?zoomifyImagePath=back/&zoomifyZoom=25&zoomifyMinZoom =25
    Problem is I am unable to get rid of IE’s ‘click
    to activate this control’ annoyance. Typically I use the
    general JS’s out there to remedy the issue, however the
    javascript that is currently available doesn’t jive with the
    javascript in the HTML (see below) that declares the variables that
    in turn pull in the dynamic images.
    Does anyone have a remedy for this? Any help would VERY MUCH
    be appreciated.
    Thanks,
    Greg.
    HTML Code:
    <script language="javascript">
    var urlString = document.location.href;
    var paramIndex = urlString.indexOf("?")+1;
    var paramString =
    urlString.substring(paramIndex,urlString.length);
    document.write("<OBJECT
    CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'");
    document.write("CODEBASE='
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0'");
    document.write("WIDTH='503'");
    document.write("HEIGHT='385'");
    document.write("ID='theMovie'>");
    document.write("<PARAM NAME='src'
    VALUE='zoomifyDynamicViewer.swf'>");
    document.write("<PARAM NAME='FlashVars' VALUE='" +
    paramString + "' >");
    document.write("<EMBED SRC='zoomifyDynamicViewer.swf'");
    document.write("FlashVars='" + paramString + "'");
    document.write("PLUGINSPAGE='
    http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'");
    document.write("WIDTH='503'");
    document.write("HEIGHT='385'");
    document.write("NAME='theMovie'>");
    document.write("</EMBED>");
    document.write("</OBJECT>");
    </script>

    Have you tried SWFObject?
    http://www.explorinlauren.com/repository/flash/fixing-the-flash-embed-issue-for-internet-e xplorer.html

  • How do I access a value of a variable in SSIS and control the flow accordingly based on its value?

    So I have a Foreach Loop Container that Enumerates a read Excel spreadsheet and this Foreach Loop get its User::SheetName. Can I change my flow accordingly based on the value of the User Variable User:SheetName that is dynamically valued by the Foreach Loop
    Container? So if the User::SheetName is "Enrolled", I want to load that worksheet to a certain SQL Server Table using an Excel Source and OLE DB Destination and if the User::SheetName is "Engaged", I want to load its worksheet contents
    to a different SQL Server Staging Table. What Task can I use to determine the value of User::SheetName or am I going to have to write a C# script to do this?
    Any help and/or suggestions are GREATLY appreciated.
    Thanks!

    Hi ITBobbyP,
    According to your description, you want to read data from excel by using the Foreach Loop container with the appropriate enumerator. If that is the case, please refer to the following steps:
    Inside the ADO NET enumerator, add a data flow task.
    Inside the data flow task, add an Excel source.
    Open the Excel source, and point to the Excel data source set up in the file enumerator.
    Select one of the sheets that shows in the drop down.
    Close the Excel source.
    Select the Excel source.
    In the properties window, copy the name of the sheet you selected. It's in the 'OpenRowset' property.
    Set this as the initial string in your sheet name variable created to gather the sheet name from the ADO NET enumerator.
    Select the Excel source.
    In the properties window, change the 'AccessMode' to OpenRowset from Variable. This will change the property 'OpenRowset' to 'OpenRowsetVariable'.
    Change the 'OpenRowsetVariable' to the variable created to hold the sheet name via the dropdown.
    Open the Excel source. You should see your variable as the sheet name.
    Click the 'Columns' tab to verify you can connect and mess with columns.
    For detail information, please refer to the following document:
    https://technet.microsoft.com/en-us/library/ms345182.aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Dynamic image is not being displayed in Adobe Reader 8.1

    Hi,
    In interactive form, we have followed below required steps to show a dynamic image.
    For the left image, drag and drop an Image Field element from the standard Library tab to the Body Pages pane. Select this image field and edit the following properties:
    • Click on the Layout tab and choose None for the Caption position.
    • Click on the Object, then the Binding tab and choose None for Default Binding.
    • Click on the Field tab, enter $record.SapOnlineShopUrl for the URL entry, and select Use Image Size for the Sizing field.
    • Click on the script editor and enter the following FormCalc script statement, which enables the dynamic integration of the image. Show: initialize Script: this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    Language: FormCalc Run At: Client
    Image is displayed properly in Adobe reader 7.1 but it's not being displayed in Adobe reader 8.1.
    I was going through some forums and understand that Adobe 8.1 blocks href URL. If this is indeed true, what's the alternative way to show a dynamic image?
    Regards
    Chandra
    Edited by: Chandrashekhar Singh on Apr 24, 2008 7:28 AM

    Soory, I thought its static image....
    Regards,
    Vaibhav Tiwari.
    Edited by: Vaibhav Tiwari on Apr 24, 2008 11:45 AM

Maybe you are looking for

  • Best way to replicate a directory share to a new Windows 2012 serv, keeping all permissions and timestamps the same?

    We have a legacy Windows 2008 R2 server, with a single network share on it, that was acting as a primary file share.   Inside the network share are about a dozen different folders (with subfolders) all with different permissions applied to them at th

  • OS 10 in classic mode

    I am running OS 10.4.8 and trying to use it in classic mode (kid games). When it was installed I did not upgrade, but simply loaded a new version of Tiger. I want to buy/download the software I need to run in classic mode for these games. Can anybody

  • Should I keep Classic or Nano video or even Both?

    I have both the new 80g classic and the ipod nano video 8g. I don't know if I should keep both. I like the to use the nano when I go for a jog in the morning but I also like the classic because it holds all the music videos movies and pictures. I kno

  • Messages, function modules and Batch Input

    Hi, I need to modify some values on the BP transaction with a batch input and I encapsulated it on a function module, because I need to call this FM from a Web Dynpro ABAP. The problem is that some success messages are raising from the batch input, e

  • Wrapper cannot find servlet class

    Hi all Can anyone please help me to resolve this error. It come about since I've provided the package (pa_sodev.pr_add_user_diary_event). My Java file is in Java Resources:src folder . I don't have a folder called classes in my WEB_INF directory. Man