Dynamic URL-variables

I have this URL-variables: test.php?id=1&kw=lente. id and
cat_lev02 are dynamic placed.
Now I want to filter the content so only item id="1" with
cat_lev02 = "lente" are shown:
id and cat_lev02 are dynamic placed in the link above. How
can I do this? Look at the code I use to get id: How can I put
something like WHERE name_lev02 = %s AND cat_lev02 = %s... (because
this is not working)?
Thanks a lot for further help.

Ullitasch wrote:
> Now I want to filter the content so only item id="1"
with cat_lev02 = "lente"
> are shown:
> id and cat_lev02 are dynamic placed in the link above.
How can I do this?
Build the SQL query in the Advanced mode of the Recordset
dialog box.
For each dynamic value, define a variable by clicking the
plus button
alongside Variables, and entering the details in the dialog
box.
For example, build the query like this:
SELECT * FROM ul_posts WHERE id = col1 AND cat_lev02 = col2
Define col1 like this:
Name: col1
Type: Integer (in older versions of Dreamweaver, this is
Numeric)
Default value: -1
Runtime value: $_GET['id']
Define col2 like this:
Name: col2
Type: Text
Default value: -1
Runtime value: $_GET['kw']
David Powers
Adobe Community Expert, Dreamweaver
http://foundationphp.com

Similar Messages

  • Dynamic URL Configuration using variable range - WAD

    Hi,
    I am trying to configure a URL dynamically using variable range values. There are two variables which I pass to the URL, Sales Document Number and Posting Date. Sales Document Number has a single value and Posting Date is a range variable. The single value for sales document is passed to the URL but the date range is not passed and hence the web template gets the blank value for the date and shows the variable screen as this is mandatory. The URL is as follows.
    CONCATENATE
    l_web_protocol
    l_portal_server
    Initial URL
    '/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE='
    l_web_template
    '&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE'
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING'
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING='
    l_var_value  "variable value
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE='
    l_var_name   "Variable for info object
    '&BI_COMMAND_2-BI_COMMAND_TYPE=SET_SELECTION_STATE_SIMPLE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR=INTERVAL_SELECTION'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-ATTRIBUTE_MEMBER_SELECTION-
    INFO_OBJECT=0PSTNG_DATE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER=MEMBERS_EXIT'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-MEMBERS_EXIT='
    l_range_var_name  "Customer Exit Variable
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-MEMBER_NAME='
    l_range-low     "Variable Value - Low
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-ATTRIBUTE_MEMBER_SELECTION- INFO_OBJECT=0PSTNG_DATE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER=MEMBERS_EXIT'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-MEMBERS_EXIT='
    l_range_var_name     "Customer Exit Variable
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-MEMBER_NAME='
    l_range-high      "Variable Value - High
    '&BI_COMMAND_2-RANGE_SELECTION_SIGN=INCLUDING'
    '&BI_COMMAND_2-TARGET_DATA_PROVIDER_REF_LIST=DP_TAB'      "Tab in the Web Template
    into  l_url.
    Can someone tell me asto what's going wrong with this URL? I passed single value for Posting Date and it worked fine.
    Thanks and Regards,
    Arya

    Thanks for the reply. However I did not understand couple of things. Should I try the URL like below?
    BI_COMMAND=&
    BI_COMMAND-TARGET_DIALOG_REF=l_var_name&
    BI_COMMAND-BI_ADVANCED=DLG_VARIABLE_vsc_DropdownVariants& "Which value to be passed?
    BI_COMMAND-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&  "Which value to be passed?
    BI_COMMAND-PASSIVE_ID=DLG_VARIABLE_vsc_DropdownVariants_combobox& "Which value to be passed?
    BI_COMMAND-PASSIVE_VALUE=l_var_value&
    BI_COMMAND_1=&
    BI_COMMAND_1-TARGET_DIALOG_REF=l_range_var_name&
    BI_COMMAND_1-BI_ADVANCED=DLG_VARIABLE_vsc_CommonVariablesList_VAR_1_VARINPUT& "Which value to be passed?
    BI_COMMAND_1-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&
    BI_COMMAND_1-PASSIVE_ID=DLG_VARIABLE_vsc_CommonVariablesList_VAR_1_VARINPUT_inp& "Which value to be passed?
    BI_COMMAND_1-PASSIVE_VALUE=l_range_low-l_range_high&
    BI_COMMAND_2=&
    BI_COMMAND_2-TARGET_DIALOG_REF=l_range_var_name&
    BI_COMMAND_2-BI_COMMAND_TYPE=OK
    Thanks and Regars,
    Arya

  • Dynamic list to generate url variable

    Hello, I am using a dynamic list to pull product codes from a
    database. I then want to pass the code into a url variable when it
    goes to the results page. This is so customers can chose which code
    they want to go to a detail page about. I already have the dynamic
    list working, I just can not figure out how to embed the selected
    code into a url variable. For example I want it to do the
    following:
    sitename.com/search.php <--- here is where you start and
    make the selection then it brings you to:
    sitename.com/details.php?code=202 <---- code202 was
    selected on previous page in dynamic list.
    I know how to do it by pulling results from a database and
    generating links for each one, but I need to do it from a dynamic
    drop down list.
    Here is the coding that I was trying to use:
    Thank you for your assistance.

    Sorry, dumb error on my part. Used method=post rather then
    get.

  • Dynamic XML content displayed in HTML using url variable

    Hi guys,
    The following is code i am having issues with:
    <script type="text/javascript">
    <!--
    var xml_connect_00 = "new Spry.Data.XMLDataSet(";
    var xml_connect_01 = "assets/xml/toolkit.xml\",
    \"toolkit/section/";
    var xml_connect_02 =
    "/product\",{sortOnLoad:\"product_name\",sortOrderOnLoad:\"ascending\"";
    var xml_connect_03 = ")";
    // Create variable to see if there is a ? in the url
    var url_input = document.URL.indexOf('?');
    // Create variable from ? in the url to the end of the string
    var xml_category = document.URL.substring(url_input+1,
    document.URL.length);
    var dsSoftware =
    document.write(xml_connect_00,xml_connect_01,xml_category,xml_connect_02,xml_connect_03);
    --->
    </script>
    dsSoftware is my XML Data set connection string, and by using
    document.write, the correct string i want is displayed (in my
    html), but - as you can probably guess by now(!) - i want it to
    display in the actual Javascript code so i can connect to the xml
    file and display the contents depending on the url variable sent.
    Is this possible, and if so, am i going about it the right
    way? I am not the most proficient at JavaScript, so may have some
    ugly code (and not even 100% that this can even be done)!!
    Just to give you an outline as to why i am doing this - my
    XML file has different categories within it for different products.
    I send the category name via a url variable to another page
    (containing the above code) that will display the appropriate
    category information depending on what url variable is sent.
    Cheers in advance for any help.

    Me again!
    Sorry to keep updating, but i have now surpassed my last
    question and got the alert to work correctly. The question i have
    now regards the following code:
    <script type="text/javascript">
    <!--
    var params = Spry.Utils.getLocationParamsAsObject();
    var dsSoftware = new
    Spry.Data.XMLDataSet("assets/xml/toolkit.xml", "toolkit/section");
    //If the URL parameter 'software' has a value, set the XPath
    that includes a filter and then load the data.
    if (params.software){
    dsSoftware.setXPath("toolkit/section[name =
    '"+params.software+"']/product");
    dsSoftware.loadData();
    //alert(params.software);
    //-->
    </script>
    Everything seems to work without error, but i cannot load my
    xml file. The problem, i think, is that my xml heirachy is as
    follows:
    "toolkit/section/section_name/product"
    section_name is unique for each section, and that is what i
    am trying to pass through the url variable, so i can display all
    the products from that section.
    Can anyone tell me what i am doing wrong?
    Cheers in advance - again!!

  • Dynamic URL in SOAP Receiver adapter

    Hi all,
    I have a scenario where I am using a SOAP receiver adapter to send a cXML document to some vendors. I need to change the URL based on the vendor number (passed by sender SRM system). So I have created a user-defined function and used in message mapping to assign the right URL to the variable TServerLocation. But the communication channel still prompts for a static URL which appears to be a mandatory field. Even though the DynamicConfiguration tab in Message Monitoring shows that the TServerLocation was correctly assigned, the scenario does not work when I put some dummy in the static URL field like 'dummy' or '*'. Any ideas on how to make the communication channel go for the dynamic URL field and ignore the static URL field? I have already selected the'Use Adapter Specific Message attributes' and 'Variable Transport Binding' check boxes. Am I referring to the correct variable that references the target URL? Also other than the two checkboxes that I mentioned, I am not displayed anything else under "Adapter Specific Message Attributes" section in the comm. channel.
    Thanks

    James,
    I ve just been digging into SAP help, and have tried it too ... Looks like it doesnt work the way it is supposed to.
    Anotheer point i found was, in the FILE ADAPTER, when we say ADAPTER SPECIFI ATTRIBUTES , we can select the attirbutes.. This is not possible in a SOAP adapter...
    Maybe, we can only access the ADAPTER SPECIIFC ATTIRIBUTES of a SOAP adapter, but cannot set them dynamically.
    Let me know if you find something on this issue.
    Regards,
    Bhavesh

  • Dynamic URL creation in Adapter Module

    I have a situation in which I need to create a dynamic URL to send data using an HTTP POST ( using  HTTPS).
    I created an UDF to use Dynamic Configuration, this works fine for the UrlParam in the HTTP CC and the TServerLocation in the SOAP CC.
    My issue is that both variables have the same limitation of 200 chars max, and sometimes the URL is longer than 200 chars (I have to pass more than 20 parameters in the URL). The message mapping with the UDF fails whenever I try to put more than 200 chars in the Dynamic Configuration Variables. Therefore I cannot use Dynamic Configuration.
    I'm now thinking of creating an Adapter Module which creates an URL out of the XML message passed to the adapter, and use this value to overrule the URL defined in the Communication Channel. The URL field in the Communication Channel does not have a  200 chars limitation.
    Does anybody know how to do this? Is it possible to replace the value of the URL field in the Communication Channel with another  value in an Adapter Module?
    I have to pass the data as parameters in the URL, not as Header fields in the message.
    Thanks,
    Andre

    Hello Chris,
    The error is:
    RuntimeException during appliction Java mapping com/sap/xi/tf/_mm_paymentClusterCreate_ Thrown: com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-field mapping /ns0:mt_newPaymentClusterData/merchant_name; root message: Exception:[java.lang.IllegalArgumentException: Value is too long (471/200):
    It's even in the SAP Help:
    http://help.sap.com/saphelp_nwpi711/helpdata/en/48/ce299c3a8e5430e10000000a42189b/frameset.htm
    The length of the attribute value is defined by the XI message protocol. Values can be a maximum of 200 characters long. If, for example, you assign longer values in the mapping or adapter modules then this can lead to processing errors at runtime or the values are shortened to 200 characters. This shortening can also lead to a processing error. The processing error that occurs depends on the components that access the attributes.

  • Opening Centered Pop-up window with Dynamic URL

    I got some code for a centered pop-up window in Flash from a
    Kirupa tutorial. It works well, except that you are supposed to put
    an actual URL for the 'address' variable. I'm using a dynamic URL
    (+url[p]+) for my URL. When I put address = "'+url[p]'"; for the
    address, it doesn't work.
    Here's the code for the button:
    on (release) {
    //customize the window that gets opened
    // 0 equals NO.
    // 1 equals YES.
    address = "'+url[p]+'";
    target_winName = "FlashDevelopment";
    width = 700;
    height = 400;
    toolbar = 0;
    location = 0;
    directories = 0;
    status = 1;
    menubar = 0;
    scrollbars = 1;
    resizable = 1;
    //sends data back to the function
    openWinCentre(address, target_winName, width, height,
    toolbar, location, directories, status, menubar, scrollbars,
    resizable);
    And here's the function:
    // New Window Function
    _root.openWinCentre = function (url, winName, w, h, toolbar,
    location, directories, status, menubar, scrollbars, resizable) {
    getURL ("javascript:var myWin; if(!myWin ||
    myWin.closed){myWin = window.open('" + url + "','" + winName +
    "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar +
    ",location=" + location + ",directories=" + directories +
    ",status=" + status + ",menubar=" + menubar + ",scrollbars=" +
    scrollbars + ",resizable=" + resizable +
    ",top='+((screen.height/2)-(" + h/2 +
    "))+',left='+((screen.width/2)-(" + w/2 + "))+'" +
    "')}else{myWin.focus();};void(0);");
    Any idea why my dynamic url is not being recognized?

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • CRM5.2 UI-Call a dynamic URL on button click

    Hi all, 
               My requirement is to call a dynamic url on the click of a button in the overview page. I have added a custom button in  the method  IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS , and the related code in do_handle_event.I have created a custom method for the button event. I have enhanced a custom controller and created an attribute.In the custom method created for the button event, I have written the code for retrieving the parameters to be passed to the url.
    In the layout of the view associated with the display view , I have written the following code for calling the URL in a new window.
    <%
    DATA: lr_cuco_EMA TYPE REF TO ZL_BP_CONT_BPCONT_IMPL,
          lv_url TYPE string,
          lv_url1 type string,
          lv_count type i.
      lr_cuco_EMA ?= controller->get_custom_controller( 'ZBP_CONT/BPCONT' ).
      check lr_cuco_EMA is bound.
      if lr_cuco_EMA->gv_VALUE is not initial.
      if lr_cuco_EMA->gv_COUNT IS NOT INITIAL.
      clear lr_cuco_EMA->gv_COUNT.
      endif.
      LV_URL = lr_cuco_EMA->gv_VALUE.
      Concatenate 'http:/' LV_URL  into LV_URL1.
      Concatenate '"http:/' LV_URL '"' into LV_URL.
        lv_count = lr_cuco_EMA->gv_COUNT mod '2'.
        if lv_count Ne 0.
      lv_url = lv_url1.
    endif.
      %>
         <scrpt language="Javascript">
            window.open(<%= lv_url%>).focus();
          </script>
       <%
             lr_cuco_EMA->gv_COUNT = lr_cuco_EMA->gv_COUNT + 1.
             clear lr_cuco_EMA->gv_value.
             clear lv_count.
             clear lv_url.
             clear lv_url1.
             ENDIF.
    %>
    But here my URl is getting called alternate times.If I do not write the code  by using the variable GV_COUNT the url is getting called only the first time of the button click  and to call the URL again you need to navigate back to the search page and again back to the overview page and click on the button.
    Can anyone help me regarding this? I want the URL to be called in a new page on every button click.
    Thanks in Advance,
    Chandana

    Hi Nisha,
    The crux of your issue here is that you want to call the event triggered with onClick before calling the event triggered on onClientClick. This can be achieved by the following code in the function called on the onClientClick.
    function fn_button()
               htmlbSL(this,2,'b_row_selection:onInputProcessing()');
               window.open("new_page",target="BLANK");
    Here, fn_button is the javascript function called on button click, and b_row_selection is the event triggered on the onClick event of row selection.
    Try this out and let us know if it works for you.
    Regards,
    Saurabh

  • Passing multiple ID's in URL variable

    How can I show results from a mysql database from selected ID's using URL variables?
    Showing results from one ID works fine:
    mypage.php?id=1
    But,
    My table has 10 rows and I want to show 3 of those rows:
    mypage.php?id=1&id=3&id=4
    Thanks for a point in the right direction.

    Are any of you original participants in this thread still around? I'm a bit of a "Jack of all trades, master of none" and I'm having a hell of time. I'm pretty sure this post relates to what I'm trying to do, but I'm just starting in dynamic site building with PHP and I can't seem to translate this situation into my situation.
    What I'm trying to do is set up a series of menu items for categories of merchandise (rugs), with subcategories for size. I've succeeded in making links where the user can choose ALL sizes within a category and (separately) I've succeeded in making links where the user can choose a size within a specific category, but I'm not able to create links where the user can choose a specific size OR see all sizes out of a single menu.
    Here's what I've got:
    3 tables: products, categories & size
    The size table has 2 columns - sizeName, and SizeID - the sizeID column is an integer and it links to products table.
    The categories table also has 2 columns - categoryName and categoryID - the categoryID column is also an integer which links with the product table
    I also built a menu with categories, and each category has a drop down menu where the viewer can choose a size.
    Each size link has a parameter which includes the categoryID as well (in following example, all the sizes are within one category):
    small - products.php?categoryID=8&sizeID=1
    medium - products.php?categoryID=8&sizeID=2
    large - products.php?categoryID=8&sizeID=3
    On the receiving page (products.php) I created a recordset which looks like this (I'm looking at the recordset dialog box within Dreamweaver CS4):
    SELECT price, `description`, categoryID, largeImage, smallImage, sizeID
    FROM products
    WHERE categoryID = colname AND sizeID = varSize
    ORDER BY price ASC
    the variables look like this:
    Name: colname
    type: Integer
    default value: -1
    Runtime value: $_GET['categoryID'}
    Name: varSize
    Type: Integer
    Default value: 1
    Runtime value: $_GET['sizeID']
    (Dreamweaver created colname and I created varSize. I'm not really sure why the default values are as they are).
    This works, but it doesn't give the "all sizes" option. So I've tried applying what I saw in the thread, by creating this link instead:
    products.php?categoryID=8&sizeID=1&sizeID=2&sizeID=3
    In the recordset I created the new variables like this (all as integers with 1 as default value):
    varSmall = $_GET['sizeID_1']
    varMedium = $_GET['sizeID_2']
    varLarge = $_GET['sizeID_3']
    And I wrote this code:
    SELECT price, `description`, categoryID, largeImage, smallImage, sizeID
    FROM products
    WHERE categoryID = colname AND sizeID = varSize
    OR
    WHERE categoryID = colname AND sizeID = varSmall AND sizeID = varMedium AND sizeID = varLarge
    But within the recordset dialog box, I hit the test button and I got a message about a syntax error.
    Am I anywhere near the solution? Any help would be greatly appreciated.
    Thanks,
    Dave

  • Spry XML data set and dynamic post variables

    Hi,
    I am trying to create an XML data set that has dynamic post
    variables.
    Everytime something is pressed on the page a variable changes
    and I then want to reload the XML data set using the new variable.
    I know I can just pull in an XML with all possible variables
    and filter client side but this would make it way too large.
    Does anyone know what I may need to do.
    I tried this:
    var myVar = 0;
    var dss = new Spry.Data.XMLDataSet (
    '../../cgi-bin/server_details.pl' , 'top' , { method: 'POST' ,
    postData: sid=ajaja21&ip=127.0.0.1&cid=' . myVar ,
    subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
    "true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
    "descending", useCache: false, loadInterval: 10000 } );
    onclick="myVar=1";
    But the script doesn't understand the post variables sent (it
    does when I remove the . myVar part and put in a static value). I
    think it isn't sending that dynamic variable with the post
    variables.
    Any ideas anyone?
    Thanks

    Well I had it working when I stripped back everything and
    just had the dss data set and a single onclick function, but now
    that I put it back together it hash foobared again.
    Here are the relevant bits of code that I've changed.
    The function to change server id:
    //function to run when changing the server id
    function changeServer ( sid ) {
    //set the url to use the current server id
    dss.setURL = ( '../../cgi-bin/server_details.pl' , { method:
    'POST' , postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid='+sid
    //force a reload of the server data
    dss.loadData();
    The inital load of the data set
    var dss = new Spry.Data.XMLDataSet (
    '../../cgi-bin/server_details.pl' , 'yams' , { method: 'POST' ,
    postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid=0' ,
    subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
    "true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
    "descending", useCache: false, loadInterval: 10000 } );
    And the part that changes the server id
    <td align="left" style="cursor:default; width:174px;"
    onclick="changeServer({dsv::servers/server/@id})">{dsv::servers/server/name}</td>
    I checked that the function is receiving the correct server
    id and I even tried hard coding the cid variable to 2 in the change
    function but it still wasn't changing on the server side.
    Any ideas?
    Thanks

  • How to use web services with Dynamic url behaviour

    Hi,
    IView created by me currently uses some web services whose url behavior is static but i want to give a dynamic url behavior. i.e. i want to use the url which user provides. So here are my questions
    1. How I shall assign the url supplied by the user to IView?
    2. If I want to set some config variables during runtimes how I shall do it?
    Thanks in advance,
    Vishvesh

    Hi,
    1. I'm guessing you mean the webservice's url the user provides is pointing to an identical webservice to what you used to create your proxy... otherwise I think it will be very hard to do (I can imagine creating the proxies using the wsdl tool in run time or using code dome.. but that can't be what you want, right?).
    So if what you wanted is to use the same web service with a different url, then the web service's proxy class you created has API for doing this in code! (it inherits it)
    2. you can't, simply since the portal application doesn't ever use the config file... it isn't even deployed to the portal... so dynamic properties are "out of the question" here, sorry... see 1 again
    Regards,
    Ofer

  • PHP URL Variable from Insert Record Issue

    I have a very simplistic forum style website I have put together. Everything is functionally properly except for one aspect. The basic structure is a page that lists the existing threads (ie: ThreadA, ThreadB, and ThreadC). I have the name of these threads stored in a MySQL database table that is used to generate a repeating dynamic table to grow as the number of threads increases. If the user clicks on one of these links they are taken to a page that displays all of the comments pertaining to that thread. All of the comments are stored in another MySQL database table. I perform a query on this comments page to filter the information in the comments database by the thread name which is passed over from the first page via a URL variable. The link attached to the name of the thread in the repeating table that generates the URL variable is "comments.php?thread=<?php echo $row_threads['threadName']; ?>" This works perfectly, If the user clicks on ThreadB they are taken to the comments page where only the comments pertaining to ThreadB have been filtered and displayed. After the user inserts a comment form ThreadB the comments page reloads displaying the newly created comment.
    Also, on the first page, the user has the option to create a new thread; call it ThreadD. The name of this new thread has to be inserted into two tables; one in the master threads table and one in the comments page any time someone adds a comment. (I'm sure there is a better way to structure this, but this was all I could figure out and for my purposes at hand it is sufficient). When the user is taken to this new comment page I have a query set up to pull the last entry in the threads table from the logged in user, ie the newly created thread topic. I have dragged this query to the page to make sure it is pulling the correct thread heading, and it works just fine. What I'm wanting to have happen is after the user enters the first comment I'm wanting them to be redirected to the main comments page with their new comment listed; giving the illusion that the new comment and existing comments page are the same. I'm trying to pass the newly created thread name, ThreadD, in the URL to the main comments page just like I do if they select it from the existing threads page. Under the insert record wizard I click the 'browse' button to select the comments.php page. I then select 'parameters' to add the thread name query as the URL parameter. The generated code is "comments.php?thread=" . $row_threadName['threadName'] . "". The user does go to the main comments page but the URL variable is not coming with it. What I'm left with in the address bar is ..."/comments.php?thread=&" , but it should be ..."comments.php?thread=ThreadD". I tried copying and pasting the URL link from the existing threads page since that works perfectly, and when I do that the main comments page shows up blank after being redirected from the new comments page. If I hard code this, for testing purposes, into the redirect after insertion section (ie: "comments.php?thread=ThreadD") everything works perfectly and the URL in the address bar of the main comments page is "...comments.php?thread=ThreadD&" I noticed the extra "&", but didn't give it much thought since the site is giving me the behavior I'm looking for. My question is, how do I get this new comment page to pass the variable of the newly created thread name to the main comments page to behave like it does when the thread is selected from the list of existing threads? I know it has to do with how the URL variable is either being generated or built from my query, or how I have it listed in the redirect section of the insert wizard, but I can't figure out where I am going wrong. Please let me know if there are any questions or if I need to clarify any aspect. Any and all help is always appreciated. Thank you.

    Ok, so just to summarize so I am understanding this correctly.  You have an ordering page for tires/wheels.  A customer places an order for tires/wheels and the data is submitted successfully and this includes a symbol for measurement (in.).  But on another summary page the symbol is returning a blank value.
    If this is correct we need to see:
    - First, the code that is inserting the symbol to the database table in question
    - Second, the query and code where you are printing the data to the screen.

  • Dynamic URL Smartforms

    Hi all,
    I've to insert a DYNAMIC url in a Smartform behind a label.
    Some topics to consider:
    - The Url is created in running time.
    - The Smartform is called by a Standard Program, so, I can not change the Impressor Program.
    - I want the url behind the word "LINK"
    For example:
    CONCATENATE: 'www.' sy-mandt 'sap' sy-datum '.com' into lv_url.
    so I want insert it behind a text "LINK"
    When SAP sends the form by email the user could click on "LINK" and go to the url before created.
    Thanks a lot
    Regards
    Rodrigo
    ABAP HCM

    I've used this Solution for E-Rec Forms too. Its a little old, you've to adapt it for the new SAP version. I mean, using a Enh Spot for the corresponding Enh.
    Example:
    In the SmartForm, this link:
    We are currently processing your application. We appreciate
        your patience and will contact you again as soon as possible.
        HTTP://[CLIENT URL]:8000/sap/bc/bsp/sap/hrrcf_start_ext/application.do?sap-client=300&BspClient=300&sap-language=E&BspLanguage=E&rcfSpId=0002&rcfContext=ATT&sap-themeRoot=/sap/public/bc/ur/Design2002/themes/att_theme
    Becomes this:
    We are currently processing your application. We appreciate
        your patience and will contact you again as soon as possible.
    Click here to continue to E-Recruiting.
    Step 1:
    Copy the function group HRRCF00_CALLBACK, renaming it ZHRRCF00_CALLBACK.  Also, rename the functions within this group as well.( ZHR_RCF_SF_URL_CALLBACK, ZHR_RCF_SF_URL_PREPARE_CALLBAC, and ZHR_RCF_SF_URL_REFRESH_GT)
    Step2:
    In the function ZHR_RCF_SF_URL_CALLBACK, change this code accordingly:
      READ TABLE data WITH KEY code = 'ST' INTO ls_name.                  
      CHECK sy-subrc = 0.                                                                               
    lv_name = ls_name-string.                                                                          INSERT                                                                               
    READ TABLE gt_url INTO ls_urlkey WITH KEY name = lv_name.       INSERT    
      CHECK sy-subrc = 0.                                                                               INSERT    
      DELETE gt_url INDEX sy-tabix.                                                               INSERT                                                                               
    READ TABLE data WITH KEY code = 'LK' INTO ls_url.                  
      CHECK sy-subrc = 0.                                                
      DELETE data WHERE code = 'LK'.                                                                               
    lv_name = ls_name-string.                                                 COMMENT    
    READ TABLE gt_url INTO ls_urlkey WITH KEY name = lv_name.  COMMENT    
    CHECK sy-subrc = 0.                                                      COMMENT    
    DELETE gt_url INDEX sy-tabix.                                            COMMENT                                                                               
    l_str = ls_urlkey-url.
    Where INSERT is inserting the code in blue, and COMMENT is commenting out the code in blue, respectively.   This change makes sure that an alias has a URL associated with it.
    Step 3:
    Two standard classes must be modified in order to produce the alias.  These classes are: CL_HRRCF_CS_DOC_CAT_APPL as well as CL_HRRCF_CS_DOC_CAT_INVITATION.  Code must be added to the method GENERATE_DOCUMENT in both classes:
    u2026u2026.
    CONCATENATE l_prot '://' l_host ':' l_port '/' INTO l_base_url.                                                                               
    ls_xsf_param-name = 'BASE-URL'.                                           
    ls_xsf_param-value = l_base_url.                                          
    APPEND ls_xsf_param TO me->sf_output_options-xsfpars.                                                                               
    me->sf_output_options-urlcall = 'ZHR_RCF_SF_URL_CALLBACK'.         INSERT
                                                                                    CALL FUNCTION me->sf_properties-function_module                           
       EXPORTING                                                               
         control_parameters = me->sf_control_pars                
    Step 4:
    In the SmartForms, code must be added to the u2018Initializationu2019 portion in the u2018Global Definitionsu2019 section.  Also, data types must be defined in BOTH the u2018Global Datau2019, and the u2018TYPESu2019 section as well.
    In the TYPES section, define these variables:
    TYPES ls_recruiting_team_member type rcf_s_cs_di_recruiting_team.
    TYPES: BEGIN OF ty_url,
                    name(80) TYPE c ,
                    url  TYPE string,
                  END OF ty_url.
    TYPES: ty_urltab TYPE TABLE OF ty_url.
    TYPES: GD_URL TYPE string.
    TYPES: DISPLAY_URL TYPE string.
    In the u2018Global Definitionsu2019 section, define these variables:
    GS_URL     TYPE          TY_URL
    GT_URL     TYPE          TY_URLTAB
    GD_URL     TYPE          STRING
    DISPLAY_URL     TYPE          STRING
    Also, here you can define any other constant aliasu2019 you would like to use (e.g. G_ALIAS_TEST type STRING with Constant value 'Test Link').
    In the u2018Initializationu2019 of the SmartForm, the correlation between the link and the alias is defined:
    gs_url-url  = CANDIDATE-PERS_PAGE_URL.
    gs_url-name = 'Persönliche Seite'.
    APPEND gs_url TO gt_url.
    or
    gs_url-url  =u2019http://whatever.comu2019.
    gs_url-name = 'Testlink'.
    APPEND gs_url TO gt_url.
    In our case, we generated the URL in a string, then assigned the dynamic string to the URL:
       concatenate
          ls_protocol '://'
          ls_host ':'
          ls_port
          '/sap/bc/bsp/sap/'
          'hrrcf_start_ext/application.do'
          '?sap-client=' sy-mandt
          '&BspClient=' sy-mandt
          '&sap-language=' sy-langu
          '&BspLanguage=' sy-langu
          '&rcfSpId=0002'
          '&rcfContext=ATT'
          '&sap-themeRoot=/sap/public/bc/ur/Design2002/themes/att_theme'
          into GD_URL.
    gs_url-url  = GD_URL.
    gs_url-name = 'Testlink'.
    APPEND gs_url TO gt_url.
    The link MUST be defined within the SmartForm.
    Next, make the call to the custom function:
    CALL FUNCTION 'ZHR_RCF_SF_URL_PREPARE_CALLBAC
                  TABLES
                         pt_url = gt_url.
    Now we link the DISPLAY_URL to the name that we defined in gs_url-name.
    display_url   = gs_url-name.
    This will make the text whatever you define it in the code above, and also makes the actual URL whatever you defined it as.
    Step 5:
    In the Main Window of the SmartForm (under Pages and Windows), you must define the DISPLAY_URL as a variable to be displayed.  Using the INSERT FIELD button on the page, type in:
    &DISPLAY_URL&
    Then, highlight the variable, and then click the HYPERLINK button to make it a hyperlink.  The variable should now become highlighted in blue.
    Let me know if you need some help
    Regards
    Rodrigo

  • Help writing dynamic URL that has spaces in it in workflow email

    I have a list called "ctcLink Q & A".   I am trying to create a dynamic URL in a Designer workflow that will link to the list item.
    I did put %20 in the spaces, but the workflow takes them out when it runs, thus creating a broken link.  I need some advise on how to create this URL.
    This is the URL I need to reproduce in my workflow variable:
    https://domainname.com/Lists/ctcLink%20Q%20%20A/AllItems.aspx
    There are no mistakes; every result tells you something of value about what you are trying to accomplish.

    You'll need to do some URL encoding to get around this.  Here's a good article to help you get started:
    http://info.lanactech.com/blog/bid/191323/Making-the-Encoded-absolute-URL-work-with-a-list-in-SharePoint
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint

  • Rewriting my dynamic URL

    Hello,
    I am currently working on a new webshop at which i want to
    rewrite a dynamic URL.
    Currently the UL looks like this:
    http://www.mysite.nl/product.php?categorie=hat&subcategorie=red%20hat&slug=super%20hat
    I want to make it look like this:
    http://www.mysite.nl/hat/red-hat/super-hat/
    However, I cannot get this to work!
    I currently have this code running which always makes sure
    the URL starts with "
    http://www."
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www\.mysite\.nl$ [NC]
    RewriteRule ^(.*)$
    http://www.mysite.nl/$1
    [R=301,L]
    I want to use this code to rewrite the URL:
    RewriteRule
    http://www.mysite.nl/(.*)/(.*)/(.*)/
    product.php?categorie=$1&subcategorie=$2&slug=$3
    So the .htaccess file looks like this:
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www\.mysite\.nl$ [NC]
    RewriteRule ^(.*)$
    http://www.mysite.nl/$1
    [R=301,L]
    RewriteRule
    http://www.mysite.nl/(.*)/(.*)/(.*)/
    product.php?categorie=$1&subcategorie=$2&slug=$3
    However, this doesn't seem to work. Can anybody help
    me?

    Hello,
    I have a little followup question concerning this point. I
    currently use this URL php to build my URL:
    <a href="/<?php echo str_replace(array('%20', ' '),
    '-', $row_Recordset1['categorie']) . "/" . str_replace(array('%20',
    ' '), '-', $row_Recordset1['subcategorie']) . "/" .
    str_replace(array('%20', ' '), '-', $row_Recordset1['slug']) .
    ".html"; ?>">
    This works perfectly, however, I need to write a "slug"
    variable for every inputted product. The slug is simply the name
    where dashes and such are replaced by "-" so no errors occur when
    the GET is done on the product page. No ID number is used because
    the SLUG is better SEO, t contains the product name...
    This takes too much time however. I really want to use the
    "name" (product name) variable instead. Someone wrote a nifty peace
    of code for this:
    * function to automatically convert text string to URL string
    * @param string $str text string to convert
    * @param int $optimize - set to max number of words in URL
    * @return string $str
    function writeUrl($str,$optimize = false) {
    //global $config;
    //uses('sanitize');
    $str = strtolower(trim($str));
    $str = html_entity_decode($str, ENT_QUOTES);
    $patterns[0] = '/ - ¦ \/ /'; // existing hyphen with
    space, or existing forward slash with spaces (' - ', or ' / ')
    $patterns[1] = '/ ¦ /'; // space and double space
    $patterns[2] = '/\//'; // forward slash
    $replacements[0] = '-';
    $replacements[1] = '-';
    $replacements[2] = '-';
    $str = preg_replace($patterns, $replacements, $str);
    //$sanitize = new Sanitize;
    //$str = $sanitize->paranoid($str,array('-'));
    // shorten and optimize url if required
    if ($optimize) {
    $stopWords = array('all',
    'and',
    'its',
    'the',
    $acceptableWords = array(
    'le', // eg: le mans
    $strArray = explode('-',$str);
    // remove empty values
    $strArray = array_filter($strArray);
    // remove stop words and short words
    foreach ($strArray as $key => $value) {
    if (in_array($value,$stopWords) ¦¦
    ( strlen($value) <= 2 &&
    !in_array($value,$acceptableWords) ) ) {
    unset($strArray[$key]);
    // remove duplicate values
    $strArray = array_unique($strArray);
    // slice array to max number words, resetting array keys in
    the process
    $strArray = array_slice($strArray, 0, $optimize);
    // if last word is numeric, remove it so as not to confuse it
    with page number
    for($i=0;$i<count($strArray);$i++) {
    $lastKey = count($strArray)-1;
    if (is_numeric($strArray[$lastKey])) {
    unset($strArray[$lastKey]);
    // construct complete url string
    $str = implode('-',$strArray);
    return $str;
    The following code outputs text where all dashes and such are
    replaced by "-":
    $text = 'The quick brown fox jumps over the lazy dog';
    echo writeUrl($text, 6);
    // result:
    // quick-brown-fox-jumps-over-lazy
    I think it should be possible to use this to create the URL,
    something like:
    <?php
    $text = '". $row_Recordset1["categorie"] ."/".
    $row_Recordset1["subcategorie"] ."/". $row_Recordset1["name"]
    .".html';
    echo writeUrl($text, 6);
    ?>
    This doesnt seem to be written properly, can you guyz tell me
    if this is a good way and how exactly do I need to formulate the
    php input?
    Thanks!

Maybe you are looking for

  • Report Manager: How to make value sets appear in security workbench

    Hi: R12.1.3 In Report Manager Security Workbench, when I search for value sets, I see none of the custom value sets I created. Can anyone tell me what the rules are for accessing a custom value set through the Security Workbench? Thanks.

  • Setting selectableRange in DataChooser 

    problem in setting selectableRange, 1st selected date is unselected after selecting another date, i dont know the reason why it is happening and in this array arrSelectedDates selected dates are adding properly but dateRanges its showing wrong data.

  • How to use a link bar or navigation bar for display only?

    My app has a link bar in an Application Control bar that is bound to the view stack of the steps in my application. I would like to use this as a mechanism to show the user which step he is on and how many are left, but NOT to click on it to navigate

  • Satellite P300-133 restart in the same time every night

    Hi to all I bought new laptop satelliate P300-133 two weeks ago, since 3 days ago the laptop always restart in the minight about 3 AM, does anyone have same problem like this? I do not think the problem from the machine,becasue the problem just came

  • Apps that I own do not show as purchased in AppStore

    I have logged into more than one iPad to troubleshoot this. When I search for apps that I have purchased, free and paid, it shows up with the price instead of saying "Install". I know I am signed into the correct account.