By the way a column as a parameter name

Good afternoon

I was wondering if any of you ever come across the following situation and found a way to work around...

I recently created a PivotTable using SQL query (body of function from PL/SQL returning SQL query).

The table was composed of the following information:
-Date range, Type of object, and count.

The final table looks like this (forgive the lack of fancy markup, if all goes well he will get the message):
Date        Object A    Object B    Object D    Object G
01-apr-09   10           16         50          43
02-apr-09   1            15         77          35
03-apr-09   19           0          14          17
04-apr-09   15           7          70          20
05-apr-09   7            6          65          50
And he keeps going.
I had to create the code dynamically because I don't know what objects I will get course in the same range of dates (for example: I could have something to object C and nothing for object D in March). I had a loop of the cursor in the types of objects before creating the SQL query that creates the table above.

The table now works fine. What I'm trying to do now is to do a little data mining.

Since everything is built dynamically, I can't give the real column names in my report. Is it possible that, when I click on, for example, the '10', on April 1 in one who opposed the column heading 'Object A' is passed? #COL02 # pass only the value '10', which is not what I want, and I have tried other variations such as: COL02 and & COL02. without much luck.

If you can shed some light on this problem, that would be greatly appreciated!

Thank you for your time.

Ivan

Hello

You can also use the substitution #COLUMN_HEADER # (ie. not #COL2 #, but in fact #COLUMN_HEADER #)

See you soon

Ben

Tags: Database

Similar Questions

  • Issue by the way CHIEF: ChefHost Chief Workflow parameter in vRealize Orchestrator API

    I have an environment with vRealize Orchestrator with CHIEF plugin installed. I want to call the API to initiate a workflow LEADER in vRealize Orchestrator.

    I want to call the workflow MANAGER Add New Role . The input parameters for this workflow are

    <input-parameters> 
         <parameter description="Chef Server" type="CHEF:ChefHost" name="host"/> 
         <parameter description="Name of new role" type="string" name="role"/> 
         <parameter description="(Optional) Description of new role" type="string" name="description"/> 
    </input-parameters>
    

    The format for sending the parameters of the form type="string" is

    In JSON

             

    {
         "value":{"string":{"value": "role name"}},
         "type": "string",
         "name": "role"
    }
    

    In XML

    <execution-context xmlns="http://www.vmware.com/vco">
      <parameters>
           <parameter name="role" type="string">
                <string>Role Name</string>
           </parameter>
      </parameters>
    </execution-context>

             

    The problem, I do face is with the parameter type="CHEF:ChefHost" . I can't get the correct syntax for the shipment of type = "CHIEF: ChefHost '. During the test with the factor, I always get a 400 error with descriptionThe request sent by the client was syntactically incorrect.

    Is there a document that shows how to create a CHEF:ChefHost type?

    PS: I asked this question in http://stackoverflow.com/questions/37405901/issue-in-passing-chefchefhost-parameter-for-chef-workflow-in-vrealize-orches...

    Because I don't have an answer of SO, I ask you here.

    Chief Guest, as any other plugin object are passed as objects sdk-object are identified uniquely by their type and the id attributes. Here's how the body of the request should look like:

    in XML:

    
        
            
                
            
        
    
    

    in JSON:

    {
      "parameters" : [
        {"value":{"sdk-object":{"type":"Chef:Host","id":"b0c408c4-1d85-4a97-9314-727552fd5a39"}},"type":"Chef:Host","name":"host"}
      ]
    }
    

    You need to replace the id attribute in applications above with the current host id. To find the real ID of your host, you can query vRO catalog REST API - /GET https://{vro-host-or-ip}:8281/vco/api/catalog/Chef/Host

    In the returned response, find your host data, get the value of the dunesId attribute (must be a GUID string) and use it as a value for the id attribute in applications above.

  • By the way a column value to Javascript

    Hi all

    I have an interactive relationship with the following SQL:

    Select

    EmpNo,

    Ename,

    "< a href =" # "onclick = 'test ("show it");' > ' |" jobs jobs | "< /a > ' job

    de)

    Select 10 empno, ename 'John', 'Manager' of the double job

    Union

    Select the 20 empno, ename 'Bookmark', 'Clerk' double work

    )

    Here is the definition of the test() function:

    < script type = "text/javascript" >

    function test (x) {}

    Window.Alert (x);

    }

    < /script >

    The report works very well. I can click on the column values of work e.g. Manager, the value hardcoded clerk alerts and function 'show it '. I want to show the value of employment, so if I click Manager, the alert must be 'Manager' and if I click on clerk then the alert should be "clerk." I tried to call the function like test(#job#) but no use.

    Help, please.

    Thank you

    ZKay wrote:

    I have an interactive relationship with the following SQL:

    Select

    EmpNo,

    Ename,

    '' | job |'' as job

    de)

    Select 10 empno, ename 'John', 'Manager' of the double job

    Union

    Select the 20 empno, ename 'Bookmark', 'Clerk' double work

    )

    Here is the definition of the test() function:

    The report works very well. I can click on the column values of work e.g. Manager, the value hardcoded clerk alerts and function 'show it '. I want to show the value of employment, so if I click Manager, the alert must be 'Manager' and if I click on clerk then the alert should be "clerk." I tried to call the function like test(#job#) but no use.

    It does not seem very useful, but all that is needed is to concatenate the value of employment in the event hours code:

    select
      empno,
      ename,
      '' || job || '' as job
    from(
    select 10 empno, 'John' ename, 'Manager' job from dual
    union
    select 20 empno, 'Mark' ename, 'Clerk' job from dual
    )
    
  • Correction of names of imported files (rename the way of bulk in original file names)

    Accidentally, I've included a change of file name when I imported a whole batch of several hundred images. I broke a rule that I teach my own students of Lightroom and is watching carefully the choice of Panel to import before continuing.

    How can I fix it so that the files are named as they were originally? I know how easily fix file names in Windows (using a tool called BulkRename, for example), but then I have to "find" each image one by one and point correctly to the renamed version. I tried selecting all images, then using F2 rename, but none of the templates allows to remove a part of the file name. I know I can remove all the catalog and re-imported, but is there a simpler solution? Thank you.

    Dilip

    P.S. Here is an example of what I mean:

    MAP:

    IMG_0001.NEF

    ...

    IMG_0300.NEF

    WHAT I ACCIDENTALLY RENAMED:

    IMG_0001 {photographed by John Doe}. NAVE

    ...

    IMG_0300 {photographed by John Doe}. NAVE

    You are probably not see because it is not stored in the catalog. My guess is that the files are renamed when importing are treated as if their original name is the one they rechristened themselves to.

    Then you're probably out of luck and either settle for your new names, or you delete the files and the re - import.

    Or... maybe... If the files are still all there, you might be able to select them all (sorted in the order in which they were shot) and use LR rename function to synthesize the original names, complete with added by the camera sequence numbers. If it works for you?

    Ja.

  • XML: How to get the value of the node when the node of pasing as a parameter name

    Hello

    I've got some xml:

    var xmlData:XML = 
    <1stNode>
        <buttonID>first child node value</buttonID>
        <imageID>second child node value</imageID>
        <labelID>third child node value</labelID>
    </1stNode>
    

    So, I want to read the value of specific node based on a value passed to a function. .

    var buttonID = new Button;
    
    var imageID = new Image;
    
    var labelID = new Label;
    
    
    getNodeValue(buttonID); //the value here is set dynamically
    
    private function getNodeValue (nodeName:String):void {
    
    trace (xmlData.nodeName)                      //doesn't work
    
    var str:String = "xmlData." + nodeName;
    var xml:XMLList = str as XMLList             //doesn't work
    
    }
    

    I don't know how to get the value when the name of the node is changed dynamically.

    use:

    getNodeValue(buttonID); //the value here is set dynamically
    
    private function getNodeValue (nodeName:String):void {
    trace (xmlData[nodeName])
    }
    
    
  • How to find the way to rows and columns of matrix

    Hello everyone

    I have a matrix N * M with some of the elements with only 0 and 1.

    has every element that is 1 (line, column).

    I want to find the elments 1 and find the way to lines which is 1, and also the average columns.

    Thank you very much

    my email: [email protected]


  • The columns of metadata will not stay the way which I order them

    I PPro CS6 and impossible to get metadata columns or their status/deactivate stay as I would like.  I tried save my settings on a custom name and find that use it to try to restore my settings does nothing, at least not with regard to the order I want columns.  In addition, the metadata Panel settings should change when I change workspaces?  I'm doing something wrong?  Any help would be appreciated.  Thank you.

    The arrangement of the Panel project - the columns that are displayed and in what order - is saved as part of your workspace. So after getting everything the way you want, including the disposal of the Panel, go Windows > Workspace > NewWorkspace to save your personalized settings. Then you can select that workspace in any project.

    These parameters are also stored in a more transitional manner with the current project. So if change you the settings of the workspace - and save it before closing - so the next time you load the project, the parameters must be the same as when you registered. In addition, if a project is open when you create a new project, the existing project workspace settings will be inherited by the new.

    But in order to apply your settings to another existing project or to return to your default settings after moving, you must save a custom workspace.

  • Filters in the way different on the same column

    http://img848.imageshack.us/i/screenshotwjk.PNG/

    If you take a look at the screen at the time there is view pivot that has about 10 columns one of them is the type of scene that always contains two values Foster Care child and current CPS, my requirement is if I click on the month column values if the month value is in the category Foster Care child, then he must pass three id filters , id of the person and if she has the current CPS then it must pass two filters case id and month is it possible if say me. I will be very happy if you can help out me.

    Thank you

    Already answered.

    Filters in the way different in the same report

  • By the way the value of the report column in Javascript

    Dear magicians Apex,
    I am a bit stuck now to implement a modal pop-up/iframe/javascript and this forum is my last hope to solve this problem.
    Anyway, I will try to explain what I'm trying to accomplish.
    What I need, is: I want to have a SQL report, as first column I want to have an 'ID' of my table numbers and I want this column to have a "link in the column" located in the appropriate links "column attributes. The thing is that when I click on the link of the column (when I run my report on the Apex page) I need a JQuery modal window where the pop-up in IFrame will be another page and this page uses an 'ID' of my link URL column to display the data. So, basically, I want to pass a value of 'ID' of my page parent to my page of the child which appears in an iFrame modal window.
    And here's what I have:
    1. I have a SQL report:
     
    select SUBNET_ID, 
           long2ip(NETWORK_ADDRESS), 
           long2ip(SUBNET_MASK), 
           long2ip(END_HOST), 
           long2ip(START_HOST), 
           MAX_HOSTS, 
           long2ip(BROADCAST_IP), 
           NETWORK_CLASS, 
           NETWORK_SIZE, 
           HOST_SIZE 
    from   YC_CM_IP_SUBNETS 
    2 then, in 'The column attributes' to 'SUBNET_ID' a have put a "link in the column" URL like:
    javascript:ViewNetworkDetails(#SUBNET_ID#);
    3. now, when I run my page and point my mouse over any item in my column "SUBNET_ID", I see that she receives a number of "SUBNET_ID" of my table and it shows it in the button of the browser as:
    javascript:ViewNetworkDetails(1);
    , or (2) or anything that is 'SUBNET_ID '. So, that's good.
    4 and here I am confused, basically, I need to pass a value of
    javascript:ViewNetworkDetails(#SUBNET_ID#);
    , which seems to work as it gives me good numbers of my table to my 'ViewNetworkDetails' JavaScript function, then it can paste this value in "f?" p =... "IFrame URL. Here is my Jquery Modal script form and Javascript to redirect me to my popup page (the script is located in the HTML header):
     
    <script type="text/javascript"> 
    function ViewNetworkDetails(){ 
    var apexSession = $v('pInstance'); 
    var apexAppId = $v('pFlowId'); 
    var subnetIDNumber = document.getElementById(#SUBNET_ID#); 
    
    $(function(){ 
    vRuleBox = '<div id="ViewNetworkDetailsBox" title="View Subnet Details"> 
    <iframe src="f?p='+apexAppId+':103:'+apexSession+'::NO:103:P103_SUBNET_ID:'+subnetIDNumber+'
    "width="875" height="500" title="View Subnet Details" frameborder="no"></iframe></div>' 
    $(document.body).append(vRuleBox); 
    $("#ViewNetworkDetailsBox").dialog({ 
                            buttons:{"Cancel":function(){$(this).dialog("close");}}, 
                            stack: true, 
    modal: true,                             
                            width: 950,                     
    resizable: true, 
    autoResize: true, 
    draggable: true, 
    close : function(){$("#ViewNetworkDetailsBox").remove(); 
                            location.reload(true); } 
    }); 
    }); 
    } 
    </script> 
    PS My hypothesis is that there is a problem with this part of my script
    var subnetIDNumber = document.getElementById(#SUBNET_ID#); 
    where I can't get my "SUBNET_ID" value from
    javascript:ViewNetworkDetails(#SUBNET_ID#);
    in 'subnetIDNumber' variable and that's why I can't spend my iFrame URL.

    P.S. P.S. the child page 103 has a "Automated row fetch", is not a problem. In addition, I did a simple test, where I had a page element 'P102_Value' with values and in my script I had instead
    var subnetIDNumber = document.getElementById(#SUBNET_ID#); 
    This
    var subnetIDNumber = $v('P102_Value'); 
    and it worked perfectly fine... but cannot operate against the SQL Select statement :-(

    HEEEEEEEEEEEEEELLLLLPPPP.
    Thank you

    Change your column to link to send the value of the subnet_id column to the function call (you mentioned, but I don't know if you've actually done m)

    JavaScript:ViewNetworkDetails(#SUBNET_ID#);

    You pass the value of the parameter to the function, but not defined all the parameters in the function definition (this is possible in JS, no other parameter is ignored)
    For example, to change the function to accept the subnet ID parameter (I'm really surprised how you missed it) and assign this parameter to a variable.