Alias Names for Column names in the Prompt

Hi,
I have a scenario where I am taking column names into prompt. I have used the following SQL in the SQL results under "Show" option of the Prompt.
SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By OrderDate"' END FROM " Real Time"
UNION ALL
SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By ShipDate"' END FROM "Real Time"
My problem here is I am getting the column names into the Prompt as "Orders"."By OrderDate" and "Orders"."By ShipDate", which is not acceptable and readable format for the user. I tried using the alias name in the SQL query this way.
SELECT (CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By OrderDate"' END) AS "By OrderDate" FROM " Real Time"
UNION ALL
SELECT (CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By ShipDate"' END) AS "By ShipDate" FROM "Real Time"
but it is throwing an error.Is there any way that I can assign an alias name for the column names such as OrderDate and ShipDate in the above SQL.
Your quick respose is appreciated.
Thanks,
Rama

Change ur
SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By OrderDate"' END FROM " Real Time"
UNION ALL
SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By ShipDate"' END FROM "Real Time"
To
SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE By OrderDate END FROM " Real Time"
UNION ALL
SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE By ShipDate END FROM "Real Time"
So that it displays the Name as required
Then in the Fx for that column in the Report Use '"Orders"."@Presentation variable"'.
This worked for me Let me know if it worked for you.

Similar Messages

  • Host name on SSL certificate did not match the alias name in the URL addres

    To the XI gurus,
    One of our vendors had problem to send us xml invoices because the url address had our server alias name and the SSL certificate we asked them to install had the server name.
    To resolve this issue, can we install two certificates (one has the alias name and one has the server name) at our XI server or we can only have one SSL certificate installed at any time?
    Thanks!
    Fisher Li

    Fisher Li,
    > we can only have one SSL certificate installed at any time?
    To my knowledge we can install  only one certificate.
    Cheers
    Agasthuri

  • Need to Display columns depending on the prompt selection

    I  need to show the only the columns as per the prompt selection given by the user.
    Suppose there are 5 prompts say (first name, last name, phone number, address, DOJ). All the prompts should be optional. If the user gave input for first name and last name then only this two columns must be displayed in the report.

    Yes it is possible but you will have to write down formulas for these columns.
    First add all required object in your report and format them in your report.
    Now say you want Last name to appear when you user enters last name in prompt.
    Write down following formula
    Report Detail Area
    =If(UserResponse("Last Name"))="USER INPUT" Then [LNAME]
    For column Heading you can use
    =If(UserResponse("Last Name"))="USER INPUT" Then "Column Heading"
    The same pattern may be applied for other columns.
    Regards,
    Bashir Awan

  • How to call the column names into the prompt and display values dynamically

    Hi,
    i have a typical requirement where I have to call 3 columns into the AGE Prompt (I know we can use the Column Selector to call the columns) .Below is the Screen Shot.
    !http://i46.tinypic.com/2qjfukh.jpg!
    2nd Requirement)
    The three columns I have are order Date, Ship Date and Entry Date.
    Whenever I click on Orderdate from the Prompt, It should dynamically show its values in the report.
    and When I click on the Ship Date from the Prompt, it should display the corresponding values in the report.
    and so on with the Entry Date.
    Can anybody help me how to acheive this.
    Thanks a ton.

    Ok so then you can use a fake column prompt. Here's one quick approach (nicer and cleaner with LOV tables but I don't if you have any of those).
    - Create a fresh prompt using any column you want.
    - Open the column formula using the fx button and replace the formula with 'abc'.
    - Use "SqL Results" as the "Show" option.
    - SQL:
    select case when 1=0 the Markets.Region else 'Order Date' from Paint.Markets UNION ALL
    select case when 1=0 the Markets.Region else 'Ship Date' from Paint.Markets UNION ALL
    select case when 1=0 the Markets.Region else 'Entry Date' from Paint.Markets
    - Set Variable = Presentation Variable = @{vPresVarSelectedDate}{Order Date}
    - Label = Date
    Then in the request, you change the column formula for the date. I'm going to make it short and just assume you called your time dimension alias(es) like the lowest grain:
    "@{vPresVarSelectedDate}{Order Date}"."@{vPresVarSelectedDate}{Order Date}"
    Cheers,
    C.

  • How to ask the I2C device alias name from the MAX

    Hi,
    How can I ask the I2C device alias name which MAX uses in Labview? If the VISA Alias on My System is for example I2C in MAX, I need to ask it in Labview and write it then to Device Reference In input of a I2C vi.
    BR,
    Jick
    Solved!
    Go to Solution.

    Here is a picture which should clarify the problem a bit more.
    As you can see I use "I2C2" as an alias in MAX and I need somehow query that alias in Labview and write it to the device reference in input node. How?
    BR,
    Jick
    Attachments:
    pic1.JPG ‏21 KB

  • Schedule a Webi XIR2 report to run for all values of the prompt ...

    Hi there,
    Any ideea about if it's possible to schedule a Web Intelligence XIR2 report to automatically run for all  150 different prompt values in the LOV (and have 150 different instances)?
    BOXIR2, Java deployment.
    Many thanks.

    You'd be scheduling the document 150 different times, each for one value of the LOV.
    You'd use the ReportEngine (REBean) SDK to read the LOV values, then use the Enterprise SDK to schedule.
    Here's a bit of code that illustrates how to schedule a Webi doc a single time with specified prompts.  You'd do something similar, but iterate the prompt setting and scheduling:
        IInfoStore iStore  = (IInfoStore) eSession.getService("InfoStore");
        ReportEngine reportEngine =  ((ReportEngines) eSession.getService("ReportEngines"))
                                        .getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
        IInfoObjects objs = iStore.query("Select TOP 1 * From CI_INFOOBJECTS Where "
                                          + " SI_KIND='Webi' And SI_INSTANCE=0 "
                                          + " And SI_NAME = '" + reportName + "'");
        //============================================================================
        // Open Webi document, then get and set Prompts collection
        //============================================================================
        IWebi            webi    = (IWebi) objs.get(0);
        DocumentInstance di      = reportEngine.openDocument(webi.getID());
        Prompts          prompts = di.getPrompts();
        for(int i = 0, m = prompts.getCount() ; i < m ; i++) {
            Prompt prompt = prompts.getItem(i);
            String name   = prompt.getName();
            if("Enter value(s) for State:".equals(name)) {
                Lov lov = prompt.getLOV();
                lov.refresh();
                Values values = lov.getAllValues();
                prompt.enterValues(new ValueFromLov[] { values.getValueFromLov(0),
                                                        values.getValueFromLov(1)});
            } else if ("Enter Shop Id:".equals(name)) {
                prompt.enterValues(new String[] { "261" });
        //===========================================================================
        // Copy prompts over to InfoObject
        //===========================================================================
        PromptsUtil.populateWebiPrompts(prompts, webi);
        //===========================================================================
        // Schedule Webi report to run once now
        //===========================================================================
        webi.getWebiFormatOptions().setFormat(IWebiFormatOptions.CeWebiFormat.Webi);
        ISchedulingInfo schedInfo = webi.getSchedulingInfo();
        schedInfo.setRightNow(true);
        schedInfo.setType(CeScheduleType.ONCE);
        iStore.schedule(objs);
    Sincerely,
    Ted Ueda

  • Can we use alias name in the case statement?

    select sal,
    case sal
    when 500 then 'low'
    when 5000 then 'high'
    else 'medium'
    end case
    from emp;
    OUTPUT
    sal    case
    4587 medium
    5000 high
    .....so  can i have range in the place of  case  at output?

    select nvl(sal,0) sal, case when nvl(sal,0)<=500 then 'low' when nvl(sal,0)>=5000 then 'high' else 'medium' end range from emp;
    Output
    SAL RANGE
    450 low
    5000 high
    300 low
    4000 medium
    3700 medium
    4750 medium
    2000 medium

  • Alias name for the column name in Prompt

    Hi,
    I have a scenario where I am taking column names into prompt. I have used the following SQL in the SQL results under "Show" option of the Prompt.
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By OrderDate"' END FROM " Real Time"
    UNION ALL
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By ShipDate"' END FROM "Real Time"
    My problem here is I am getting the column names into the Prompt as "Orders"."By OrderDate" and "Orders"."By ShipDate", which is not acceptable and readable for mat for the user. Is there any way that I can assign an alias name for the column name such as OrderDate and ShipDate in the above SQL.
    Your quick respose is appreciated.
    Thanks,
    Rama

    hi,
    try an alternative one....in your administrator make new columns with alias to ones you want...so you wiil be able to show whatever you want.
    Otherwise,is it possible to show
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By OrderDate"' as "xxxxxxxxxxxxx"END FROM " Real Time"
    UNION ALL
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By ShipDate"' as "yyyyyyyyyyyyyyyy"END FROM "Real Time"
    Ending,you want the data from your columns?or just the name??
    hope i helped...
    http://greekoraclebi.blogspot.com/

  • Generating VO XML File wih alias names for the view attributes

    Hi,
    I am using the WriteXML() method on a VO to generate the XML. I need to map the generated xml to a rtf template and get the PDF generated. I have some view attributes for those I want to give a meaningful alias names, and for the repeated columns say "Name" for each Name field that I select from different tables it gets reflected as Name, Name1 and so . I want to give them proper alias names like Name as Buyer_Name and Name1 as Supplier_name so that its easy to comprehend and also easier to map to the rtf template. I gave alias names to those columns But the alias names of the view attributes are not getting reflected in the XML file generated. The XML tags are still on the attribute Name and not the aliases. Can someone suggest a workaround for this
    Thanks a lot in advance
    Rakesh

    Just to confirm that this is not a Library or deployment setup problem, Now, I changed the deployment scope to include business components in the ViewController to just to be sure it was being picked up in the ViewController too. I Created a separate AppModule in the ViewController and Added the VO to it, It Ran Properly including the Addition and Commit Control.

  • Unable to open the Projects from Project center with the Alias name PWA 2010

    Hi,
    I am unable to open the Projects from Project center with the Alias name with the server name i am able to open the projects, version is  project server 2010,
    My system is ABC.DC.IN  alias name i have given is DEF.AD.COM  
    With the system name i can able access PWA and all are working fine.
    As i have observed with alias name i can able to login to  pwa and all the server  setting approval center all are working fine but only in the project center i am not able to open the projects (http://DEF.AD.COM/pwa/ProjectDrillDown.aspx .xxxx) its
    is coming in the below of the ie. 
    But with Alias name these are the issues i am facing,
    1.when longing with alias name its asking two times for user name and password
    2.when i click on a project from project center its taking some time and asking for user name and password after i enter user name and password "PAGE cannot displayed" error i am getting.
    3. I have observed one more thing if click on Project details then only this issue  is coming project schedule and project information is also opening with Alias name.
    can any one Help me. 
    Vijay kommireddi

    Hi
    Hope the below link will help you.
    And also please check the browser which you are using as mostly IE 8.0 won't support, Please try it in IE 9.0 and Chrome.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c03300d2-2a27-4d5d-b3f6-a3660805e125/alternative-access-mapping-when-accessing-the-site-it-is-asking-for-username-and-password
    Thanks
    Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.

  • DNS alias name for portal server

    Hi
    I am using sun ONE portal server 6.2. We have added the DNS alias for the hostname in the DNS server for the portal server.
    I have added this alias hostname configuration in
    a. organizational alias name of the amconsole
    b.Have modified the gateway.virtualhost name parameter in the /etc/opt/SUNWps/platform.conf.default file.
    Kindly let me know if I have to add to any other places as we are using SUN ONE webserver, application server, IM server.
    Waiting for your reply
    Best Regards
    Ramkumar Raghavan

    you also might need to add an entry into /opt/SUNWam/lib/AMConfig.properties and add a FQDN entry for your new dns alias.

  • How to change the Existing alias with new alias name...MAXL SCRIPT

    HI Experts
    I need to change alias name of the existing member with new alias name.
    please send me maxl code to change the alias name .
    My thought is
    1) Old alias should be replaced with new alias name .
    2)There is one account that should be rolled out to another parent..these parents are already exsist
    3) I need a MAXL Script to change the new alias name .
    please suggest ASAP.
    Thanks
    USER

    John
    I heard that we can replace existing alias name with new alias thru MAXL
    i.e replace alias name XXXX member with YYYY ;
    please correct me if iam wrong ,might be Maxl command is wrong but this is the idea.
    Thanks
    USER

  • How to use Alias name in OData service in SAP HANA

    Hi,
         I need to change one column name with alias of another name in odata service definition or odata url running in rest client. I am trying to give alias name with as key in the service definition like sql query.
    ex:
    There is one table with column name of PRODUCT_ID. I exporting that table via odata service to SAP UI. In the UI i dont want the product id column as PRODUCT_ID. It should be ike "Prodcut". Like we are using in SQL example
    select "PRODUCT_ID" as "Product" from "producttab";
    But i can't use as key for alias name. So i am getting syntax error.
    I have tried in rest client also ie executing odata file in rest based service. But i got error only.
    If anyone knows about this alias name in odata service, Please help me to resolve this issue..

    Hi Thomas
         Thanks for your reply.
         Actually in odata service definition i am using attribute and calculation views only. But in some case from the model view itself i need to use some alias names to the UI through odata service.
         For example in attribute view i have some columns with name col1,col2... I am getting those columns in UI using  odata service, for particular col2 column i need to change column name as product. And i am using the same view as source of another odata service in that service i need to change that column name as productname.
         In that case i need alias name usage. So that only i am searching alias keyword in odata service.
         Is there any possibility to use alias names in odata service.

  • One logical column used twice in the prompt

    Hello Gurus,
    I have a report which is presently showing
    Sales across country
    COuntry Name | Sales
    USA 100$
    Japan 100$
    Country NAme | Statename 1 | Satename 2 |
    Usa 50$ 100$
    But State 1 and state 2 are one logical column called state in the RPD.
    User should have the ability to slect some states in state1 prompt and slect some states in state 2 prompt.
    If it is not clear let me know?
    With regards!
    Alan

    In the prompt take the state column... edit the fx as
    Case when 1=0 then "any varchar column name" else "State" end
    Drag the same column twice in the prompt.. edit the fx as
    Case when 1=0 then "any *other* varchar column name" else "State" end
    for the both the columns define the presentation variable pv_state1 , pv_state2
    so now you have the same column being used in prompts for two states..
    In the Report filter add the filters as
    state is equal to pv_state1
    OR
    state is equal to pv_state2
    Note-> to add presentation variable in filter, you have to click on Add-->presentation variable
    Your report is ready...
    Hope it helps...
    Thanks
    Ashish Gupta

  • Unable open Project details or a project from PWA Project server 2010 with Alias name

    Hi,
    I am unable to open the Projects from Project center with the Alias name with the server name i am able to open the projects, version is  project server 2010,
    My system is ABC.DC.IN  alias name i have given is DEF.AD.COM  
    With the system name i can able access PWA and all are working fine.
    As i have observed with alias name i can able to login to  pwa and all the server  setting approval center all are working fine but only in the project center i am not able to open the projects (http://DEF.AD.COM/pwa/ProjectDrillDown.aspx .xxxx)
    its is coming in the below of the ie. 
    But with Alias name these are the issues i am facing,
    1.when longing with alias name its asking two times for user name and password
    2.when i click on a project from project center its taking some time and asking for user name and password after i enter user name and password "PAGE cannot displayed" error i am getting.
    can any one Help me. 
    vijay kommireddi

    Hi Eric,
    Thanks for your Reply.
    As you said i have added in Manged Path as  (Testpwa/projects.aspx as <Wildcard inclusion>) But still problem is there it is asking user
    name password again if click on any project in project center and  and showing page cannot be displayed error. 
    This is url its is showing in the below of the IE ( http://def.ad.com/testpwa/projectdrilldown.aspx?ProjUid=e28c6d43-85b6-478d-9542-2961cc81a69e)
    I have observed one more thing if click on Project
    details then only this issue  is coming project schedule and project information
    is also opening with Alias name.
    My farm version is 14.0.7015.1000
    Vijay Kommireddi

Maybe you are looking for

  • OS Command batch script issue (FTP)

    All, I am running into a problem (i think it's simple) which I just can't seem to figure out. I have a FTP command which is in a batch script and I can run it manually (Its run in an old enviroment with Informatica) and the ftp script works just fine

  • Excel OLE problems

    Can anyone provide information on how to call the different methods on an Excel. object. We used OLEgen to create the PEX file for Excel. However, when I try to invoke the Opentext method on the Excel.Application.Workbooks class, I keep getting an 'O

  • Entity based VO not showing all the rows

    Hi, I am having a entity based VO in a page. When we run a page from Jdeveloper the table shows all 1300 rows. But in Front end it shows onli 1001 rows

  • Popup windows with Skins

    Hi all, I'm looking for a way to have a popup window (initiated from a button within a portlet) automatically set its skins to that of the current portal. Specifically I'm implementing a "print article" type function. thanks, Markus

  • I am trying to update my software to iOS 7, and i keep getting a Network error or a connot connect to i Tunes. What can i do

    I have the Iphone 4s, and was trying to update my software to iOS 7, and i keep getting a network error, or an Unable to connect to iTunes. Can some please help me or explain what this means.