Custom Column Name in Webpart file and Itemstyle for Content Query WebPart

I was trying to incorporate  a custom column in the content Query WebPart.
The name of the column displayed in the list is "Risk Score"; a calculated column.
I right clicked on the field in the list settings and copy hte short cut which is pasted below:
http://<mainURL>/_layouts/FldEdit.aspx?List=%7BFE4CC761%2DE9B8%2D487C%2D8B92%2D1E42539144C4%7D&Field=Risk%5Fx0020%5FScore
Could you please let me know what can i type in the WebPart file exported and then to be imported in the section:
<property name="CommonViewFields" type="string"></property>
Also, please let me know what should i enter in the itemstyle.xsl in the section
<td style="width:30%; font-size:10px;font-family:Verdana;color:#007EB6; border-style:solid; border-width:medium;border-color:#E1E1E1;">
<xsl:value-of select="@Risk%5Fx0020%5FScore" />
</td>
Tnx

Ok.
Use like this
<property name="CommonViewFields" type="string">RiskStrore,Lookup</property>
and include like this in the itemstyle
<td >Risk store
     <xsl:value-of select="@RiskStore" />
    </td>

Similar Messages

  • Content Query Webpart not getting displayed in Mobile view

    Hi,
    I am having a Content Query Webpart in my page.
    In the mobile view it is not getting displayed.
    I read that you can create mobile adapters for the control. But I didnt get how to do it for Content Query Webpart.
    Any help appreciated..

    Is deactivate "Mobile view" a option for you? if then then CQWP will work in same page. You can deactivate that feature from site feature.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How can i get the column names in CSV file.

    Hi,
    After execution of infospoke i can not see the column names in that file.How can i get column of respective infoprovider?
    Thanks,
    Gananadha Lenka

    Hello Gana,
    Actually while exporting the data using Info Spoke, we have the possibility to modify the data that we send. This is possible using transformations.
    In your Info Spoke, you have a tab called Transformations.
    Here you need to create an implementation and then use BADi to populate data.
    Check if you can write a start routine sort of thing here and insert a new record into the internal table by hardcoding with your field headings.
    Let me know if you dont know how to create transformations.
    Kris...

  • Adding column names to data file

    Hi,
    I have a question regarding writing to file. Currently in my program, when I start running it, a dialog box pops up and the user gets to pick/ create a file. My data is written on to a file as columns. I want to add column names to the file. Any suggestions on how to do it? Since the file is created by the user at run time and since the column names have to be added just once at the beginning, I'm not sure how to go about doing this. Any suggestions or pointers?
    Thanks,
    Sukanya

    dear sir
    i wanted to ask you help. i saw your program bt i am having a big problem
    here is my VI. i actually have to do a database where there is the name of the student,
    date of equipment of borrowal. time of the equiment when it was borrowed and its date
    but when am doing this. each time i always have to create a new file each time.
    i cant use the only onw file.
    and also my 2nd problem is that when the output is being yielded, it is repeatedly
    givine me the same output twice, thrice and a lot like in the pic below
    help please
    Attachments:
    1we.JPG ‏84 KB
    doom..JPG ‏44 KB

  • Object Custom Program Name of class RE and language EN does not exist

    Hi All,
             We are getting this bbelow error while running a custome program ,
    Object <Custom Program Name> of class RE and language EN does not exist
    Do any one has faced this similar issue earlier.
    Regards,
    Sen

    Hi,
    How did you resolve this problem ?
    Re: Object <Custom Program Name> of class RE and language EN does not exist.
    I am also encountering the same issue when I am executing the report.
    Regards,
    SSR.

  • How to resolve unresolved column error when we change column name in BMM Layer and removed alias in presentation layer

    how to resolve unresolved column error when we change column name in BMM Layer and removed alias in presentation layer

    Looks like the presentation column got Alias before your BMM changes, so in your case renaming logical column and deleting alias is not good to go.
    Keep Alias

  • How to make the display of custom column names in UWL(not bother abt values

    Hi all
    i want to make the display of custom column names in UWL ( for example GP)
    i dont want or not looking about values for those custom columns . i know that thru custom connector we can achieve to retrieve the values for those custom columns. but currently i am looking only just to display the custom column names( for example GP custom column names, just i want to display the name of the columns ) in UWL .
    Thanks
    Sunil

    Hello Prashant,
    You can add the control to your custom pagelayout, the following article has an example:
    http://spandps.com/2012/02/22/showing-the-audience-target-field-in-an-editmodepanel-sharepoint-sp2010-in-projectserver-ps2010/
    Btw, the SPFieldTargetToControl has a required property:
    http://msdn.microsoft.com/en-us/library/microsoft.office.server.webcontrols.fieldtypes.spfieldtargettocontrol.required(v=office.14).aspx
    - Dennis | Netherlands | Blog |
    Twitter

  • Assign the name of a file and its extension when using DESTYPE=MAIL

    Hello,
    I've developed a report running Oracle Reports 10g that is being emailed to a user. I would like to specify the name of the file and it's extension that is attached. Are there variables or parameters in Oracle Reports that I can use to accomplish this?
    It looks like by default that the file name is using the Name value found in the Property Inspector for the report. I have not been able to find a way to re-assign this value with a value from either the input or select values in the data model.
    Will Oracle Reports 10g allow me to define the name of the file and the extension?
    Any help or direction would be greatly appreciated.
    Thanks in advance
    Jesse
    Message was edited by:
    Sutherland

    Thank you for the quick reply and information. I almost thought you had solved my problem until I found out that distribution and bursting do not support delimited and spreadsheet output. One of the two files I need to email has a desformat of SPREADSHEET.
    Is there any other way to manipulate the file name and extension when using destype of MAIL?

  • In content query webpart columns are not displaying after clicking on edit webpart.

    Hi,
    I created a content query webpart. I added one custom item style in ItemStyle.xsl. This template having some date operations. Some date comparisons. The issue is, template containing some variables but after selecting my template it is not showing the variable
    names to enter the list column. What will be the issue? Below is the code..
    <xsl:template name="BirthdayList" match="Row[@Style='BirthdayList']" mode="itemstyle">
        <xsl:variable name="SafeImageUrl">
            <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
                <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
            </xsl:call-template>
        </xsl:variable>
        <xsl:variable name="DisplayTitle">
            <xsl:call-template name="OuterTemplate.GetTitle">
                <xsl:with-param name="Title" select="@Title"/>
                <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
            </xsl:call-template>
        </xsl:variable>  
    <xsl:variable name="EmployeeDesignation">
            <xsl:value-of select="@EmployeeDesignation" />
        </xsl:variable>
        <xsl:variable name="Birthday">
            <xsl:value-of select="@Birthday" />
        </xsl:variable>
        <xsl:variable name="dateTimeBirthday" select="ddwrt:FormatDate(string($Birthday), 1033, 3)" />     
                    <xsl:variable name="dateOfBirthday"  select="substring-before(substring-after($dateTimeBirthday, ', '), ', ')"
    />
                    <xsl:variable name="monthOfBirthday" select="substring-before($dateOfBirthday, ' ')" />
                    <xsl:variable name="yearOfBirthday"   select="substring-after(substring-after($dateTimeBirthday, ', '), ',
    ')" />
                    <xsl:variable name="TodaysDateOfBirthday">
                        <xsl:value-of select="ddwrt:FormatDate(string(ddwrt:Today()), 1033,3)"/>
                    </xsl:variable>
                    <xsl:variable name="TodaysDateOfBirthdayyy"  select="substring-before(substring-after($TodaysDateOfBirthday, ',
    '), ', ')" />
                    <xsl:variable name="TodaysmonthOfBirthday" select="substring-before($TodaysDateOfBirthdayyy, ' ')" />
                    <xsl:variable name="TodaysyearOfBirthday"   select="substring-after(substring-after($TodaysDateOfBirthday,
    ', '), ', ')" />
                     <xsl:if test="($dateOfBirthday)=($TodaysDateOfBirthdayyy)">
                     <xsl:if test="($monthOfBirthday)=($TodaysmonthOfBirthday)">
         <div>
            <div>       
        </div> 
        </div> 
        <table width="100%"> 
        <tr width="100%">
                    <td width="80%">
                                    <table>
    <tr>
     <td><b><xsl:value-of select="$DisplayTitle"/></b></td>
                       </tr>
    <tr>
    <td>  <xsl:value-of select="$EmployeeDesignation"/>
    </td>
                       </tr>
                                    </table>
                    </td>
                    <td width="20%">
                                    <table>                                               
    <tr>                      
    <td valign="top">
       <img width="60" height="60" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" title="{@ImageUrlAltText}" />                                                  
     </td>       
                                    </tr>
                                    </table>
                    </td>
       </tr>
        </table>
    </xsl:if>
           </xsl:if> 
    </xsl:template>

    Hi,
    Based on your example above, which columns / variables are not appearing when editing the CQWP that you want to bind managed properties / list columns to?
    Eric Overfield - PixelMill -
    ericoverfield.com -
    @EricOverfield

  • Read from .txt file and output the content as two arrays

    I am using the contoured move to control the x-y stage. The trajectory datas for x and y axis are generated using my interpolation program and it is stored in a .txt file as two columns. What I want to do is read .txt file and output the content of this file as two arrays. Is there anyone has any ideas? Thanks, the .txt file is attached.
    Attachments:
    R.75.txt ‏172 KB

    Hi Awen,
    This is quite easy to do, you can merely use the "read from spreadsheet file" function to get a 2D array (2 columns and n rows) and then use the index array function to get whatever row/colums you want..
    Hope the attached VI helps you
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    read sprdsheet file.vi ‏27 KB

  • Custom Display template for Content Search webpart

    Hi,
    I am trying to customize the out of the box "slideshow" display template for content search webpart which renders Images.
    By default, the slideshow display template has a fixed the image size which is very small. Is it possible to increase the dimensions of the container or control template to show a much larger image size?
    Can anyone please help on how to do this?
    Thanks,

    Hi,
    According to your description, my understanding is that you want to increase the dimensions of the container or control template to show a much larger image size in the Content Search web part.
    I recommend to create a custom Display Template (control and Item display templates) and use JQuery Slider plugin to achieve this goal.
    More detailed information are provided in the link below:
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/02/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-2.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to display Column of a particular list to page using Content Search Webpart?

    Hi,
    I am having two columns 'Column1 & Column2' in a list names Demo. I need to display the items of both the columns into a page with the help of Content Search Webpart. I am using SharePoint 2013 Platform.
    Expecting some useful comments on the same...!!
    Warm Regards,
    Tony Joy.

    Hi,
    If you just want to display two columns of a list, Content Query Web Part will be more appropriate:
    http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/05/10/how-to-use-the-content-query-web-part-to-rollup-data-in-sharepoint-2013.aspx
    To display multiple columns, here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/1484df2b-0fb9-4b58-b833-a75019db88c7/content-query-display-multiple-columns
    Best regards
    Patrick Liang
    TechNet Community Support

  • Accessing a file and reading its contents.

    Hi all,
    I created a Portal Application to access a file and display its contents in an iView .
    But it showing the exception like "File Not Found".
    In simple java application i could able to get the result. In portal application i couldn't .
    I have given the full path of the file location.
    I need a help regarding this?
    Regards,
    Eben

    IS the file on the portal server? It must be visible to the service user that runs the Java engine...

  • How to create a file and store its contents into another file?

    Hi,
    I'm having some trouble trying to create a code where I have to to create a file and store its contents into another file?
    I read the API, but I'm not certain how this file thing works.
    Here's my code so far:
    public static void main(String[] args) throws Exception
              File file = new File("tasks.txt");
              if (file.exists())
                   System.out.println("File already exists");
                   System.exit(0);
              Scanner scan = new Scanner(System.in);
              Scanner scan2 = new Scanner(System.in);
              //Scans the input line by line
              scan.useDelimiter("\\n");
              //Scans the input by tabs
              scan2.useDelimiter("\\t");
              PrintWriter outputs = new PrintWriter("newtasks.txt");
              outputs.print("ok");
              outputs.println(3);
              outputs.close();
         }

    I managed to change my text into uppercase, but how do I store the uppercase content into another file.
    -So this is what I did so far, I took a text file and modified its strings to uppercase.
    -Now I need to put those modified strings into another text file, is there a way where I can do that with my current code?
    -I already tried printwriter, but it doesn't seem to work
    public static void main(String[] args)throws IOException
              //Task[] oneHundredTasks = new Task[100];
              String uppercase;
              String combine;
              Scanner scan = null;
              FileInputStream in = null;
            FileOutputStream out = null;
            PrintWriter output = null;
            try
                 scan = new Scanner(new BufferedReader(new FileReader("tasks.txt")));
                 scan.useDelimiter("\\n");
                 scan.useDelimiter("\\t");
                while (scan.hasNext())
                     if(!scan.hasNext())
                          scan.next();
                     combine = scan.next();
                     uppercase = combine.toUpperCase();
                     System.out.println(uppercase);
            finally
                if (scan != null)
                    scan.close();
            //The program will try the input and output files
            try
                 in = new FileInputStream("tasks.txt");
                out = new FileOutputStream("newtasks.txt");
                int c;
                //The number "-1" is used to indicate that it has reached the end of the stream.
                while ((c = in.read()) != -1)
                    out.write(c);
            finally
                if (in != null)
                    in.close();
                if (out != null)
                    out.close();
         }

  • How to browse a file and extract its contents

    i want to browse a file and extract its contents.My code is given below but its not working .Can anybody help me please
    JFileChooser fc = new JFileChooser();
              int returnVal = fc.showOpenDialog(jfrm);
              if (returnVal == JFileChooser.APPROVE_OPTION)
              File file = fc.getSelectedFile();
              //This is where a real application would open the file.
              fileName=file.getName();
              //This is a file function to extract data from a file.
              //It reads data from a file that can be viewed on cmd
              jlab3.setText(fileName);
              try
    // Open the file that is the first
    // command line parameter
    FileInputStream fstream = new FileInputStream(fileName);
    // Convert our input stream to a
    // DataInputStream
              DataInputStream in =new DataInputStream(fstream);
    // Continue to read lines while
    // there are still some left to read
    // while (in.available() !=0)
    // Print file line to screen
              fileName1=in.readLine();
              jlab3.setText(fileName1);
              in.close();
    catch (Exception e)
              System.err.println("File input error");
              }

    JFileChooser fc = new JFileChooser();
    int returnVal = fc.showOpenDialog(jfrm);
    if (returnVal == JFileChooser.APPROVE_OPTION)
    File file = fc.getSelectedFile();
    //This is where a real application would open the file.
    fileName=file.getName();
    //This is a file function to extract data from a file.
    //It reads data from a file that can be viewed on cmd
    jlab3.setText(fileName);
    try
    // Open the file that is the first
    // command line parameter
    FileInputStream fstream = new FileInputStream(fileName);
    // Convert our input stream to a
    // DataInputStream
    DataInputStream in =new DataInputStream(fstream);
    // Continue to read lines while
    // there are still some left to read
    // while (in.available() !=0)
    // Print file line to screenHere you are reading the first line of the file
      fileName1=in.readLine();
    //}and here you are displaying the line in a (I suppose) JLabel. A JLabel is not very suitable for displaying a file content, except is the file contain few characters !!!
    jlab3.setText(fileName1);
    in.close();
    catch (Exception e)
    System.err.println("File input error");
    }If you want to read the complete file content you must uncomment lines inside while instruction, like this
    while (in.available() > 0) {  // I prefer to test in.available like this, instead of !=
      // append text to a StringBuffer (variable named sb here) or directly in a textarea.
      sb.append(in.readLine());
    ...

Maybe you are looking for

  • How To Connect Microsoft Excel To Oracle DB

    Hi, My team recently took over a process from another company. The other company had a macro written which connects to oracle DB and gets the o/p result in Excel. If i try to use this macro based sheet, I get error. Though i pass the right password i

  • DOWNLOADING A REPORT PROGRAM CODE IN TO TEXT FILE

    I HAVE ONE SIMPLE REPORT PROGRAM SAY, *& Report  ZTEST25 REPORT  ZTEST25. DATA : A(8) TYPE C. A = 'ANDHRA'. WRITE  A. THE ABOVE MENTIONED REPORT PROGRAM SHOULD BE DOWNLOADED TO A TEXT FILE USING ANOTHER REPORT PROGRAM BY USING PARAMETER. THE OUTPUT I

  • OWB File_exist

    Dear all, In my OWB 10.2.0.2.8 project I created a process flow which simply contains a file_exists activity. The structure of my process is the following: START->FILE_EXIST IF(FILE_EXISTS=MISSING)->TRASFORMATION(LOG MISSING)->END_ERROR IF(FILE_EXIST

  • Export Error - EXP-00003

    EXP-00003 no storage definition found for segment(number, number) This is coming for all the tables having clob/blob columns. Pls provide the solution asap.

  • ADF table skins

    I have used jdev 11.1.1.6.0 I have create ADF table , In table header row ,if i drag column header to resize column,it will resize column data only first time, if i refresh column data, column will comes its original size and header remains in resize