How to track the URL that comes from a referred page using XSQL Custom Handler

Hi,
I have a cold fusion page(say cf.cfm) that sent a request to xsql page(say test.xsql) and then xsql page displays results. I want to capure the URL of cf.cfm page and then after checking its host name and path name for correctness then want to display the test.xsql results.
Please let me know how can I capture URL of the refered page(cf.cfm) in the Custom Handler and then I want to extract host-name and path-name out of that url and on the basis of their values I want to display the result of XSQL page(test.xsql).
Regards
a2012

req.getHeader("Referer") will return the referring url

Similar Messages

  • How to grab the view that comes from Onyx?

    Hello,
      i started using Onyx project recently. That's really amazing what it does. I am wondering if there is some possibility to check the main view ... let my try to explain this.
    I want to change option for esxi5 box - advanced/Logging to external syslog server.
    While in gui i did my steps and Onyx prints the output:
    # ------- UpdateOptions -------
    $changedValue = New-Object VMware.Vim.OptionValue[] (1)
    $changedValue[0] = New-Object VMware.Vim.OptionValue
    $changedValue[0].key = "Syslog.global.logHost"
    $changedValue[0].value = "tcp://x.x.x.x:514"
    $_this = Get-View -Id 'OptionManager-EsxHostAdvSettings-456'
    $_this.UpdateOptions($changedValue)
    This is working as expected. I can throw this to powercli and it will set up the option. This will work only for that particular esxi box. I want to create a loop that will change this option for each esxi box in the cluster.
    The view that onyx is using is : "Get-View -Id 'OptionManager-EsxHostAdvSettings-456'"
    So he already knows the view/host moref .
    But if i would like to have this in a loop so it will do it for each host, so  how can i get to that kind of view ?
    So far i could only build something like
    foreach($vmhostview in (get-view -viewtype HostSystem -Searchroot (get-cluster "xxyyzz").id))
    $changedValue = New-Object VMware.Vim.OptionValue[] (1)
    $changedValue[0] = New-Object VMware.Vim.OptionValue
    $changedValue[0].key = "Syslog.global.logHost"
    $changedValue[0].value = "tcp://x.x.x.x:514"
    $number=$vmhostview.moref.split("-")[1]
    $_this = Get-View -Id OptionManager-EsxHostAdvSettings-$number
    $_this.UpdateOptions($changedValue)
    Which is totally stupid approach i belive although it's working.. splitting moref...
    After some time i noticed that
    http://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.option.OptionManager.html
    Says that OptionManager is the property from Config manager. So from that i could get the id of this view:
    ((get-vmhost myHost |get-view).ConfigManager.AdvancedOption).ToString()
    which will result in output : OptionManager-EsxHostAdvSettings-456
    So having this i could do my loop at the end:
    foreach($vmhostview in (get-view -viewtype HostSystem -Searchroot (get-cluster "xxyyzz").id))
    $changedValue = New-Object VMware.Vim.OptionValue[] (1)
    $changedValue[0] = New-Object VMware.Vim.OptionValue
    $changedValue[0].key = "Syslog.global.logHost"
    $changedValue[0].value = "tcp://x.x.x.x:514"
    $_this = Get-View -Id ($vmhostview.ConfigManager.AdvancedOption).ToString()
    $_this.UpdateOptions($changedValue)
    Now i do not know that it was just a luck that i found the location of this view name or is this the way how i am supposed to find the view id name. I am wondering how other people are handling that kind of case, if there is easier way to do it. If someone could share his experience i would really appreciate it.
    Regards,
    Greg

    There is no need to construct these View-Ids as you see them coming from Onyx.
    In fact I would write that script like this
    $changedValue = New-Object VMware.Vim.OptionValue[] (1)
    $changedValue[0] = New-Object VMware.Vim.OptionValue
    $changedValue[0].key = "Syslog.global.logHost"
    $changedValue[0].value = "tcp://x.x.x.x:514"
    Get-View -ViewType HostSystem -Searchroot (Get-Cluster "xxyyzz").ExtensionData.MoRef | %{
      $optMgr = Get-View $_.ConfigManager.AdvancedOption
      $optMgr.UpdateOptions($changedValue)
    Move the part that doesn't change with each HostSystem outside the loop
    The ConfigManager is an array with MoRefs that point to the respective Managers. You can just do a Get-View with a MoRef and it will return the object representing the Manager
    From the Manager object you can now call the method
    Btw, you better consult the latest SDK Reference.
    You can find the HostConfigManager here.

  • How to track the flow of data from R/2 to BI ?

    Hi Experts,
    Question: How to track the flow of data from R/3 to BI ?
    I want to load master data from R/3 to BI. In BI, i create an infopackage to load data from R/3. Under processing tab i set it as "PSA and then in the InfoObject (package by package)". Its a Full update.
    Now, i start the update to InfoObject. The load goes on well.
    Now, i want to track the flow of data from the master data table in R/3 to Datasource in R/3 then Extractors and then in the PSA in BI and then till the InfoObject. That is the complete flow of data from source table (in R/3) to Target table (in BI).
    Please help me know how this can be done. (For example lets take cost element master data)
    Regards,
    Suraj S Nair

    Hi,
    Data flow :
    BW :
    When u right click on the Master Data Info object -> Select Data flow.Then  it will  show u the details like DS name,IS (If 3.x)
    Once u know the DS then you need to find out the source tables for the R/3 DS.This information will get using ROOSOURCE or ROOSFIELD tables  or help.sap.com.
    My suggestion better to search in Help site for DS source tables.
    DS Tables :
    The following link will provide you the source tables for some of the LO DS.
    https://wiki.sdn.sap.com/wiki/display/BI/BWSDMMFIDATASOURCES
    Regards
    Ram.
    Edited by: Ramakanth Deepak Gandepalli on Dec 22, 2009 9:29 AM

  • How to find the file that delete from time capsule?

    How to find the file that delete from time capsule?

    I mean I saved JPEG file in Time capsule and unfortunately delete the file. Can I get it back
    IF.... .no other backups have occured since you deleted the file, you might be able to retrieve it using an application like Disk Warrior. It's about $100 as I recall, and there are no guarantees that it will work.
    DiskWarrior 4 - The Disk Utility for Mac  Disk Repair, Mac Directory ...
    Any of the free or low priced utilities that you might see or try will not be able to retrieve a deleted file from a Time Capsule.
    If any backups have occured since you deleted the file, the deleted file has almost certainly been overwritten. No way to retrieve it in that case.

  • How to delete the list that comes up in Open Recent

    I apologize because I know this has been answered before, but I cannot find the answer after quite a bit of searching in the forum. I'd like to delete the list that comes up when I choose File/Open Recent and I can't remember how to do that. Could someone please tell me? Thanks.

    *Click the (empty) input field on the web page to open the drop down list
    *Highlight an entry in the drop down list
    *Press the Delete key (on Mac: Shift+Delete) to remove it.
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    *http://kb.mozillazine.org/Password_Manager

  • How long is the charger that comes in the box?

    I'm going to get an iPad 2 and I am going to get an adapter for the charger, but I wanted to know how long the charger that comes in the box so I know if I should get the little box adapter or the six-foot long adapter.

    Sorry, misunderstood
    Yes the cable is 1m long. And if its a charger itself it should work fine
    Jason

  • How to edit the url of sites in new tab page of firefox

    If we open newtab in firefox 9 tabs are visible. How to edit the url address of the previously pinned tab.

    I found solution for this problem.
    1. Type ''about:config'' in firefox url and click enter.
    2. An alert will be shown on click on "I'll be careful, I promise!" button.
    3. Type ''browser.newtabpage.pinned'' in textbox and click enter.
    4. Right click and select '''Modify''' option to edit the url address.
    ''I want to change this url address''
    [{"url":"http://localhost:8080/Admin/login","title":null},]
    After change the url address in firefox is
    [{"url":"http://localhost:8080/Admin","title":"Admin"},]

  • How do I convert ip that comes from the user in String as an argument to...

    InetAddress style?
    Thanks,
    Amir

    Depending on the format that your user types in, you could use InetAddress.getByName(userInput)
    Good Luck
    Lee

  • How to install the JRE that comes with JME 3.0 to a Windows Mobile device

    From Sun's JME download page:
    Integration with 3rd party emulators and Windows Mobile devices
    The new Java ME Platform SDK architecture allows integration of 3rd party emulators and devices. Java ME Platform SDK comes with Sun's Java runtime environment for Windows Mobile. A user can install this runtime on a Windows Mobile device or a Microsoft device emulator and experience all the on-device features of Java ME Platform SDK.*
    My question is, how can I install the Java runtime environment that comes with Java ME Platform SDK 3.0 to a Windows Mobile device. I am a newbie in this device programming and I'm setting up my development environment. So far, I have installed JME in my computer, and have also installed both the Windows Mobile 5 and Windows Mobile 6 emulator. I've been searching the internet for answers, but it always points me to using a third party java runtime such us Mysaifu, etc. I would like to stick with what is packaged with JME if possible.
    If anybody assist me or direct me to an online documentation on how to do this. All help is greatly appreciated :-)

    I had some success installing on a real Mobile 5 device [http://forums.sun.com/thread.jspa?threadID=5344195]
    There is a link to a doc on the main download page, item 5 under How to Install. [http://java.sun.com/javame/downloads/sdk30ea.jsp] I used this for the real device, Treo 700w. Did not try it with an emulator.
    The support looks to be an emulator rather than a JVM per say. But then again I could be wrong on that. I too had poked around looking for a JVM, CrEme, J9, etc..
    I do have a commercial app installed on the Treo that uses IBM's J9, which is seems requires a contact with a sales person to get ahold of. I had hoped to find something that might clue me in on how to "hook up" my own J2ME app with the J9 installed by the commercial package. But I've pretty much decided to get a real J2ME handset rather than continue to waste my time hacking up something with WM. Now the question is which one makes a good reference platform?

  • WPF: How to know the selection is come from datagrid or from ListBox?

    Our application has a page which includes DataGrid and ListBox.
    Both ItemSource are binding to PlateCells.
    public ObservableCollection<CellVM> PlateCells
    public class CellVM : BaseViewModel
    public CellVM(int wellNumber)
    WellNumber = wellNumber;
    Row = wellNumber / define.NumberofWellsInRow;
    Col = wellNumber % define.NumberofWellsInRow;
    // row and col are 0-based
    public int WellNumber { get; set; }
    public int Row { get; set; }
    public int Col { get; set; }
    bool _isSelected;
    public bool IsSelected
    get { return _isSelected; }
    set
    _isSelected = value;
    OnPropertyChanged("IsSelected");
    string _sampleId;
    public string SampleId
    { get { return _sampleId; }
    set
    _sampleId = value;
    OnPropertyChanged("SampleId");
    when a cell is selected, the cell will be highlight in both DataGrid and ListBox.
    We also implement SelectAll button for both DataGrid and ListBox.
    And SelectAll is ToggleButton. First time click is select All cells and second time click, it will unselect All cells.
    What we notice when SelectAll button is click, all cells in both DataGrid and List box  are highlight.
    After that click on a grid any cell, all cells becomes unselected in both DataGrid and ListBox.
     We assume this the behavior from DataGrid, after click SelectAll and click any cell in DataGrid will remove all selection and only highlight one cell in the datagrid.
    However, this is behavior does not happen in ListBox. click any cell in ListBox only unselect that cell and not unselect all cells.
    So we need to know click(selection) is coming from DataGrid or ListBox and take different actions.
    How do we know the click is coming from DataGrid or ListBox? Thx!
    JaneC

    >>How do we know the click is coming from DataGrid or ListBox? Thx!
    It depends on where in the code you want to be able to determine this. In the view model class you cannot really know if the user clicked in the ListBox or in the DataGrid because the view model knows nothing (and shouldn't know either) about any of these
    controls. It only exposes a property that may be set from anywhere.
    Handling the GotFocus event for any or each of the controls seems to be a good solution because then you can take the appropriate action depending on which control was focused/clicked.
    You could of course move the code that is being executed when the GotFocus event occurs, i.e. the code in your event handler, from the code-behind of the view to the view model class by using a command in the view model class and then hook up the GotFocus
    event to this command using event triggers:
    <DataGrid>
    <i:Interaction.Triggers>
    <i:EventTrigger EventName="GotFocus" >
    <i:InvokeCommandAction Command="{Binding YourCommand}" />
    </i:EventTrigger>
    </i:Interaction.Triggers>
    </DataGrid>
    How to do this is a topic of its own though. Please refer to my blog post about how to handle events in MVVM for more information:
    http://blog.magnusmontin.net/2013/06/30/handling-events-in-an-mvvm-wpf-application/. You will need to reference an assembly that is part of the Expression Blend SDK which you can download from here:
    http://www.microsoft.com/en-us/download/details.aspx?id=10801.
    Anyway, as mentioned, handling the GotFocus event seems like a good idea here since you cannot determine which control that was clicked in the setter of the source property in the view model class.
    Hope that helps.
    Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question.

  • How to find the urls that are longer than 260 characters

    Hi
    I'm getting an error using Restore-SPSite thats most likely caused by URL's longer than 260 characters. How can I find out which URL's are too long? It's a huge site collection so it's not an option to search manually.
    Regards
    Jakob

    check this blog, allows you to take an inventory of all files in your web application and flag those files where the path (or URL) is longer than 260 characters.
    Locating files and pages with URLs that are too long for SharePoint
    Also check this: http://social.technet.microsoft.com/Forums/en-US/881d62e6-08c3-43b6-a9f1-96161ffa0201/how-to-write-a-powershell-script-to-find-the-url-path-length-of-all-the-files-and-folders-in?forum=sharepointdevelopmentprevious
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How to install the fonts that come standard in other environments

    I am new to archlinux. I've used Fedora and Ubuntu before. I have a fresh install and it runs smooth. I like it a lot. There are a few things I need to work out. The thing I'd like to do at the moment is to get the fonts that other desktop environments use. Right now I am using LXDM+LXDE. I just want the standard fonts that I had before but I want to stick with LXDE. Things start look really ugly quickly in programs like skype. What is the best way to do this?
    http://s13.postimg.org/unodh3wrb/2014_0 … _scrot.png
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

    Please mark solved threads as solved (https://wiki.archlinux.org/index.php/Fo … ow_to_Post).

  • Populate the URL for popupURL from a Table/Page Item?

    Dear all,
    Would someone please tell me if the URL to run a BIP report can be populated from a table/page item when using popupURL and if so, how?
    Background:
    I have a Table called TBL_LETTERS with a varchar2 column REPORT_URL
    I have a Page (Pg 303) which populates a Text Page Item (P303_REPORT_URL) with an appropriate URL string from the table.
    Here is my problem:
    I would like to replace my working javascript function (see below):
    run myLetter_40()
    popupURL('&BI_URL.Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf=&_xpt=1&P_CASE_ID=&P303_CASE_ID.&P_PERSON_ID=&P303_PERSON_ID.&_xt=MM_40_xf=rtf');
    with something like:
    run myLetter_40()
    popupURL($x("P303_REPORT_URL").value);
    ...but this doesn't work.
    With my limited javascript knowledge I can only guess that the variables successfully assigned values in my first function example are not successful in my second, I am probably just passing the whole thing as a simple string (like this: +&BI_URL.Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf=&_xpt=1&P_CASE_ID=&P303_CASE_ID.&P_PERSON_ID=&P303_PERSON_ID.&_xt=MM_40_xf=rtf+), but would very much welcome any advice.
    Do I need to
    a. Create the REPORT_URL string differently in the table so that when passed to the Page Item it includes the required variable data?
    b. Something completely different?
    c. Forget it, it's not possible!
    ps. I am using Apex 3.2.1
    Thank you in advance.
    Sue
    Edited by: smp245 on Aug 21, 2012 2:19 PM

    Thank you Erik-jan
    when I look at the parameter in de popupURL function I notice that you use substitution variables &P303_CASE_ID. and &P303_PERSON_ID.
    The value for these variables are filled in by Apex on page rendering.
    If you use this same URL in your column REPORT_URL Apex will not fill in the values for these substitution variables.
    Yes, this is exactly what is happening.
    I would suggest you use option A to build your URL with the desired values.
    If the values for &P303_CASE_ID. and &P303_PERSON_ID. are in the same table TBL_LETTERS you could use them to make a pseudo column for the URL string.
    &P303_CASE_ID. and &P303_PERSON_ID. are not in the same table. How would it be possible to build the string (to store in the table) so that when it is run javascript identifies the variables?
    I have tried building the string in various ways using syntax similar to below but nothing is working:
    '&BI_URL.Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf=&_xpt=1&P_CASE_ID=' + &P303_CASE_ID. + '&P_PERSON_ID=' + &P303_PERSON_ID.' &_xt=MM_40_xf=rtf'
    Do you have any ideas?
    Thanks
    Sue

  • How to hyper link the text that comes from database ?

    Hi all,
    Jdev Ver :11.1.1.4.0
    I have one usecase like, to highlight(using af:commandlink) the keywords from some content..
    And i have some set of keywords, and where ever the keywords appears in the content i need to show those words as a af:commandlink in the page ..
    Anyone aware of this kind of usecase ? Please suggest some ideas..
    thanks,
    Gopinath J

    Hi,
    It is not straight forward, here is the sample code to do that where i replaced the text key with the hyperlink and bounded it to outputText
        <af:outputText value="#{<Bean>.text}" escape="false"/>
        //variable text inside bean with setters and getters
        private String text = "This is a sample text where the text key is shown as hyperlink";
        public void setText(String text) {
            this.text = text;
        //replaces the text "key" references with the hyperlink
        public String getText() {
            text = text.replace("key","<a href=\"http://google.com\">key</a>"); //escape sequence the quote to provide value for href
            return text;
        }Sireesha

  • How to deactivate the flex builder licence from one machine and use it on other machine

    Hi,
    I have a "Flex builder 3" licence running on my machine.
    I have to deactivate that and use it on another machine.
    How should I do that? As there is no otpion in flex builder.
    Any help appreciated.
    Thanks,
    Tushar

    What happens when you just install Flex Builder on the other machine and enter the serial number? I was not aware of Flex Builder having a mechanism that tracks activations like the Creative Suite products.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance
    www.ChikaraDev.com
    Flex Development and Support Services

Maybe you are looking for

  • In google video chat, video is not working in safari

    video is not working in google video chat. it shows a black screen. what could be the problem. i have tried in safari, firefox, chrome. face time is working properly. (camera is working)

  • R&R Queue Demon is hanging in status STOPPING

    Hi folks, I'm currently facing a problem I don't seem to cope with so I hope you may be able to help me. Here we go: I implemented the SAP CRM Groupware Integration into a CRM 5.0 SP6 system. At first it worked quite well. But today I encountered a p

  • FINDER & PREVIEW issue

    Yesterday I scanned in heaps of photos and using preview made a new folder and saved pictures there. Today I go to Finder to look for folder, nothing, nadda. I use finder and search yesterday...weird hardly anything listed. I go back to preview and s

  • How to Find Classes Urgent!

    I have loaded .class files using classLoader .. i want to find calsses & interfaces which are present in perticular package structure(in memory)..if i use Package.getPackages() mathod its returning me all the packages which are loaded in memory.using

  • Find out if instance is running with WLST

    I have not found a way to find out if a server instance is running with WLST. There's the state() function. However, it does not return a value, it only prints out a result. I figured I could redirect stdout to a StringIO and catch it that way. It di