Need proper syntax for CommonviewFields

Hello all,
Am using SP Online
I have read and tried many blogs and have had partial success with the steps proposed. But when I change
<property name="CommonViewFields" type="string" />
to
<property name="CommonViewFields" type="string" />Title, Text</property>
I get an error in sharepoint online, saying the XML might not be "well-formed"
If I export the Content search web part, and re-import it as is, I don't get the error.
Is there another line of code that I need to change? Or my syntax is wrong? I have tried other column names without success (using the internal name of course)
Thanks
Pierre
pgg02

Hi Pierre,
Please remove the first character /, then it should work.
<property name="CommonViewFields" type="string" >Title, Text</property>
Thanks
Daniel Yang
TechNet Community Support

Similar Messages

  • I need to know the proper syntax for my SELECT query, please.

    Hello All,
    Quick one for you:
    Let's say that I have several columns in a table with names such as subject_1, subject_2, subject_3, etc. The table's name is subject_names.
    The number in each of the three column name examples is also a value passed along a query string, the user can select choices, 1, 2 or 3. That query string's variable is $qs.
    So, what I want is a SELECT query that uses the query string value as follows (KEEP IN MIND, I know this is not the proper syntax):
    "SELECT subject_[$qs]
    FROM subject_names";
    I have tried all sorts of cominations of quotes (single and double), dots, brackets, braces and parenthesis. I just want to know how to include such a variable within this code.
    Any and all help is sincerely appreciated!
    Cheers,
    wordman

    Well, I did give you the syntax though.
    $query = 'SELECT ' . $qs . ' FROM tbl_name';
    I put spaces between the periods this time to make it more clear.
    If you put the actual word 'subject' in there and just want your form to name it's options as the numbers available you could do this:
    $query = 'SELECT subject_' . $qs . ' FROM tbl_name';
    In PHP you can use either single or double quotes around your query string, I always just use single quotes. I see a lot of other use double quotes.
    Double quotes would look like:
    $query = "SELECT subject_' . $qs . ' FROM tbl_name";
    Or when using double quotes you can actually just place the variable right in the string without having to concatenate multiple strings like above.
    Since you mentioned that you are good with passing variables I probably don't have to mention that you need to set the value attribute of your option tags (if you are using a select) to the value you want them to pass.
    Ex:
    <select name="choices">
         <option value="1">1</option>
         <option value="2">2</option>
         <option value="3">3</option>
    </select>
    If you have that part all figured out then you can use the syntax above for your query string.
    Good luck.

  • What is proper syntax for using PassBack in a Report page select statement

    In my select statement I reference the passBack function using:
    onClick="javascript:passBack()"
    In my Page Header I (Typically) define the passBack function as:
    <script language="JavaScript" type="text/javascript">
    function passBack(passVal1,passVal2) {
    opener.document.getElementById("P2000_CABLE_ID").value = passVal1;
    opener.document.getElementById("P2000_CABLE_LABEL").value = passVal2;
    window.opener.location.reload(true);
    </script>
    But I have never used the passBack function from the Select statement before and cannot happen onto the proper syntax.
    The Page Items I want to pass are:
    1. :P2004_CABLE_ID
    2. :P2004_LABEL
    I want to pass them to:
    1. :P2000_CABLE_ID
    2. :P2000_CABLE_LABEL
    Can someone please help me out... Again?
    Thanks- Gary

    Let's assume column XYZ has both numbers (1), and letters (any alphabet).
    I have a case statement on SQL to turn any value that's not 1 into 0, then I am getting a sum of that column.
    I am also grouping by Row A, B etc to get aggregated sum of column XYZ for those group.
    Now on Crystal Reports function, I need to sum up values under column XYZ for all the groups.
    If I try using sum function like below, I get an error stating:
    "A number field or currency amount field is required here"
    (sum({Command.XYZ}))
    So I thought if I can use a case statement to change the non-numbers to 0 prior to sum that will probably resolve it. But I could not get the below case statement to work either (Error: A string is required). 
    SELECT {Command.XYZ}
       Case 1:
          1 
       Default:
          0;

  • Need dcb syntax for labview

    Hello, I am trying to program an external i/o device and one of the function calls I need to make is to the kernel32.dll function SetCommState. One of the parameters for SetCommState is DCB. Unfortunately, kernel32.dll was designed for use with non-graphical programming languages, which leaves me in a bit of a pickle. I need to know the syntax for inputting the parameter DCB into labview. For example, normally, DCB's parameters are set individually (i.e dcbBaudrate, dcbByteSize, etc.) and these parameters are read into the system. However, I have not been able to find a way to set these parameters individually and I don't know the syntax for inputting them all together. Could someone please help. Also, I cannot set these parameters in visa, because the device I have I cannot seem to get to work with visa.
    Thanks for any help you can give.
    JOe P

    This is the third thread you start with the same subject, see e.g. http://forums.ni.com/ni/board/message?board.id=170&message.id=185253#M185253.
    In the other threads, people did suggest you to use VISA. This is also my suggestion.
    You still lack to explain why you don't want to use VISA, as you apparently are trying to rewrite the VB code and not to use it directly.
    Maybe you have valid reasons for not to want to do so, but please explain.
    Paolo
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • Proper syntax for email function including a repeat region

    Hey Guys, a fellow ADDT developer and myself ran into a odd challenge recently and was wondering if someone knew a shorter answer.
    LET ME BE CLEAR..I’m not looking for a suggestion, we have resolved the problem..we ARE LOOKING FOR PROPER or shortest FORMAT.
    (we used a submit redirect to a php page that used the “Send Page Section”  and then redirected back..the email looks great)
    This may be a mood point since ADDT is going away but, until then, we feel this will be an useful post because quite often you may have multiple products to email from your SQL statement.
    With that said. We used the send email function on submit.
    1.       Our email content was a HTML content file. Since it was not a php file our repeat region obviously did not work.
    2.       We substituted the HTML file for PHP (just for giggles)..no joy
    3.       We tried regular content as a string..no joy
    We know how to get single rows with the  {table.column} format…but we need to list all undetermined number of products/rows.
    So how would the string or function re-write look  if you needed a repeat region.
    EX:
    emailContent (“ this” . ‘does’. “work”);  regular string
    emailContent (“ this” . $var   . “work”);  regular string
    emailContent (“ this” .   do{  $row; } while( xxx = xxx)  . “work”);  DOES NOT WORK
    emailContent (“ this” .   while( xxx = xxx)  {  $row; }   . “work”);     DOES NOT WORK
    I assume the conflict is you can’t have a function like DO or While in the string….but I also can’t use a php include file.
    There must be a shorter, cleaner syntax that won’t require an advanced set of arrays or for each???
    so  how would a nice clean example of  repeat region results  inside email content, or include file for email contnent, look?
    Thanks

    David, in theory I agree with you, but to a large degree I am completely changing the logic of my human interface. My existing code pre-processes the raw data and saves the results to disk for any future usage. 
    It can then rapidly rebuild all pages for the entire Intranet site when your personal view of the data is changed. 
    After the full creation of all pages, the fixed pages can be viewed using your browser. 
    When you want to change your view, you run the code which completely rebuilds every Intranet page.
    My new software will approach the data differently.  My raw data will be stored with no pre-processing. The pre-processing will occur as the user changes dates and the pages will be built individually on demand, one at a time.
    The second phase of my Windows Form app will be to create pop-up windows that allow the users to modify the definitions for their custom views of the market. 
    When a view is changed, the software will be able to pre-process, as needed, the current date’s data and rebuild the current page with any new changes.
    I intend to create a Refresh.cpp file.  The various segments of the Form’s code will set variable such as date change, view changed, watch list changed, etc. and then call Refresh(). 
    The refresh code will then be able to do the minimum recalculation necessary to rebuild the proper HTML stream. 
    This is another reason to break up the code into various cpp segments such as: LoadRawData, RecalculateViews, BuildPage, etc.
    PS: David, I tried to send you a personal e-mail using your home page link. 
    Hope that was OK and not against forum rules!

  • Proper syntax for adding a keyboard event listener in Illustrator

    Hi all,
    Sorry for the newb question. For some reason, I am unable to capture any keyboard action in my extension. Probably doing it wrong....
    My extension is a panel that only has buttons. The shortcuts for cut and paste become disabled after clicking on a button and I wanted to see if my extension could capture "command-x" and then fire the command via script.
    Seems pretty basic, but for whatever reason I'm stumped. does the below look accurate? Why aren't I seeing any alert?
    function keyHandler(){
        window.addEventListener('keypress',
                function(e)
                    function that evaluates script to show alert("yuck");
                false);
    Also, when I do command A after clicking a button, it selects the objects in my extension panel. Then when I copy.... well, I get this....
    LSC
    Sure does seem like the panel has focus. Any workarounds?

    OK. No wonder. It doesn't appear that the panel can pick up key commands unless it has focus. I created a text input and when that was active, my code worked fine. BUT, my panel doesn't HAVE a text input. I don't mind hacking something together with a hidden or super small box that has hidden focus, but it does not appear that autofucus or document.getElementById("id").focus(); works. Anybody confirm.
    Does ANYBODY have any sort of workaround for this frustrating state of affairs. I just need for command + X to actually cut after clicking a button in my panel. I don't care if I have to send a menu-command to jsx. That would be fine. Just need to get focus somehow....

  • Need proper driver for cd/dvd not working

    TOSHIBA SATELITE M45-S269  
    I saw a few different drivers in the download section related to sound/dvd but not sure which one is right. The two that I tried downloading were zip files full of hundreds of different files?
    I'm just looking for the right driver to reinstall to fix this yellow exclamation error next to my driver in device manager.
    Cant play music or game cd's properly anymore
    Thanks for any help

    Satellite M45-S269
    The optical drive is supported natively in Windows XP.
    Double-click it in Device Manager and tell us what Device status has. It's on the General tab of the Properties box.
    -Jerry

  • Need correct syntax for global.ini for FC storage connector API

    for a scale out solution of 3 node HANA with master , worker and standby .
    this is my global.ini.  I am seeing an error when hana installer is trying to use the storage adapter to access the LUNs from specifications in global.ini.
    has anyone experienced this issue? I have not mounted the filesystems when I running the installer and want the storage adapter to do the mount
    the short error is :  I  have pasted the entire log at the bottom of this post.
                 Output line 8: no storage with key (partiton, usageType) = (1, data) configured
                Output line 9: no storage with key (partiton, usageType) = (1, data) configured
    [communication]
    listeninterface = .global
    [internal_hostname_resolution]
    10.1.73.140 = vmhdb1
    10.1.73.142 = vmhdb3
    10.1.73.141 = vmhdb2
    [persistence]
    basepath_datavolumes = /hana/data/VM2
    basepath_logvolumes = /hana/log/VM2
    [storage]
    ha_provider = hdb_ha.fcClient ç=
    partition_*_*_prtype = 6
    partition_*_log_mountOptions = -t xfs -o realtime, inode64,nobarrier
    partition_*_data_mountOptions = -t xfs -o realtime, inode64
    partition_2_data_wwid = 6001b970f24554e1f24554e118a9d796
    partition_2_log_wwid = 6001b970f24554e1f24554e1cc16bc02
    partition_1_data_wwid = 6001b970f24554e1f24554e11b582bda
    partition_1_log_wwid = 6001b970f24554e1f24554e1cfe7404e
    [system_information]
      usage = test
    The error is as below
    Enter Installation Path [/hana/shared]:
    Enter Instance Number [00]:
    Options:
      System usage | Description
      1            | System is used in a production environment
      2            | System is used for testing, not production
      3            | System is used for development, not production
      4            | System usage is neither production, test nor development
    Enter System usage [4]: 2
    Enter System Administrator (vm2adm) Password:
    Confirm System Administrator (vm2adm) Password:
    Enter System Administrator Home Directory [/usr/sap/VM2/home]:
    Enter System Administrator User ID [1001]:
    Enter System Administrator Login Shell [/bin/sh]:
    Enter ID of User Group 'sapsys' [79]:
    Enter Database User (SYSTEM) Password:
    Confirm Database User (SYSTEM) Password:
    Restart instance after machine reboot? [n]:
    Installation failed
      Error checking installation
        Checking system requirements failed
          Cannot mount storage devices
            Performing python script failed
              Starting external program /usr/bin/python
                Command line is: /usr/bin/python /mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdbmount.py --sid=VM2 --configFiles=/hana/shared --datapath=/hana/data/VM2/mnt00001 --logpath=/hana/log/VM2/mnt00001 --partition=1
                Output line 1: PYTHONPATH=['/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE', '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha', '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server', '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server', '/usr/lib/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/Numeric', '/usr/local/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/gtk-2.0']
                Output line 2: trying: __import__('hdb_ha.fcClient')
                Output line 3: trying: getattr(<module 'hdb_ha' from '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/__init__.pyc'>, 'hdb_ha.fcClient')
                Output line 4: failed with: 'module' object has no attribute 'hdb_ha.fcClient'
                Output line 5: trying: getattr(getattr(<module 'hdb_ha' from '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/__init__.pyc'>, 'fcClient'), 'fcClient')
                Output line 6: apiVersion = 2
                Output line 7: calling Storage Connector ...
                Output line 8: no storage with key (partiton, usageType) = (1, data) configured
                Output line 9: no storage with key (partiton, usageType) = (1, data) configured
                Output line 10: Traceback (most recent call last):
                Output line 11:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdbmount.py", line 164, in <module>
                Output line 12:     main()
                Output line 13:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdbmount.py", line 155, in main
                Output line 14:     cl = clClass(method, configPath, sid, datapath, logpath, tracelvl, partition)
                Output line 15:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/fcClient.py", line 47, in __init__
                Output line 16:     super(fcClient, self).__init__(*args, **kwargs)
                Output line 17:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/client.py", line 413, in __init__
                Output line 18:     self.attach([{"partition" : partition, "usage_type" : "data", "path" : mnt_data}, {"partition" : partition, "usage_type" : "log", "path" : mnt_log}])
                Output line 19:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/fcClient.py", line 133, in attach
                Output line 20:     raise Exception(msg)
                Output line 21: Exception: no storage with key (partiton, usageType) = (1, data) configured
                Program terminated with exit code 1

    Hi...I am getting the exact same error, while installing SAP HANA on EMC . Can you please share if you had resolved this error? Thanks in advance.
    - Vijay

  • Need proper sorting for 1b and 10b in order by close

    Dear friends
    i have a column which has data like this
    pos
    1b
    10b
    when i select this column and make an order by i get the data in following order
    Pos
    10b
    1b
    Techically this is right but logically not. i wan them to come in following way when i apply order by
    Pos
    1b
    10b
    Please advise

    col text format a10
    col ccc format a10
    select
    text
    ,to_number(substr(text,1,length(text) - length(ltrim(text,'01234567890')))) nnn
    ,substr(text,length(ltrim(text,'01234567890'))) ccc
    from
    ( select '1a' text from dual
    union select '10a' text from dual
    union select '3330b' text from dual
    union select '430b' text from dual
    union select '430a' text from dual
    union select '430' text from dual
    order by
    to_number(substr
    (text || 'z' ,1,length(text || 'z') - length(ltrim(text || 'z','01234567890')))
    TEXT NNN CCC
    1a 1 1a
    10a 10 10a
    430
    430a 430 430a
    430b 430 430b
    3330b 3330 3330b
    6 rows selected.

  • Syntax for page level process to invoke an on-demand app level process?

    I want to use a page level process (if that's the right thing to do) to run an application process on-demand each time certain pages load. What is the proper syntax for the page level process?
    I tried many variations of the following but it does not pass syntax checking.
    1.
    APPLICATION_PROCESS=GLOBAL_UPDATE;
    2.
    begin
    APPLICATION_PROCESS=GLOBAL_UPDATE;
    end;
    What is the proper syntax?
    Thanks,
    Linda

    Linda - If you want to run an application process when certain pages load, just create an application process (PL/SQL type) with the desired firing point, e.g., On Load: Before Header and in the process condition use a condition type like "Current Page Is Contained Within Expression 1 (comma delimited list of pages)". No need to create either a page process or an on-demand application process to do this.
    Scott

  • What is bind syntax for blob datatype for sqlite3

    Hi All,
    i have written 2 times.
    1. sqlite3bind_blob(insertstatement, 1, image, -1, SQLTRANSIT);
    it doesn't give compile error but when i run the applilcation it crash the
    simulator.
    2. sqlite3bind_blob(insertstatement, 1, image, -1);
    it gives error like too few arguments.
    here image is object of UIImage........
    pls anyone can tell me what is proper syntax for binding of blob datatype.
    Thankx.
    vavdiyaharesh is online now Add to vavdiyaharesh's Reputation Report Post Edit/Delete Message

    I wanted to do something similar, but as you mention, there isn't a lot of sample code to copy and paste etc, and I didn't have the time to spend investigating this one issue when plenty of other things needed my attention.
    In the end I decided to save my BLOB data as actual files in the document directory and then store a link to these in the database row. Something like primarykey_id_blobname.jpg etc.
    Probably not the answer you want, but hopefully it'll get you past a road block and onto the next item on your list.

  • Code to write syntax for JOB submit ( Please answer ASAP)

    Hi,
    I need sytax to submit a job
    Right now I am using this code to send 4 parameters.
    I need to send these 4 in a structure.
    submit Ztestjob USER sy-uname
    via job p_jobnm
    number p_jobcount
    with afko-rsnum eq afko-rsnum
    with aufnr_d eq aufnr_d
    with sernr_d eq sernr_d
    with p_lmnga eq p_lmnga
    AND RETURN.
    So I have to pass a structure of values into the BGprogram through a submit and do a couple of loops in the BGPROGRAM.
    I need the syntax for submit .
    I also need to know how to catch the structure with values in the BGPROGRAM.
    Anyone please answer ASAP
    Message was edited by:
            ramana peddu
    Message was edited by:
            ramana peddu

    Hi,
    <u>SUBMIT</u>
    Calls an executable program of type 1.
    Syntax
    SUBMIT <rep> [AND RETURN] [VIA SELECTION-SCREEN]
                              [USING SELECTION-SET <var>]
                              [WITH <sel> <criterion>]
                              [WITH FREE SELECTIONS <freesel>]
                              [WITH SELECTION-TABLE <rspar>]
                              [LINE-SIZE <width>]
                              [LINE-COUNT <length>].
    Calls the program <rep>. If you omit the AND RETURN addition, the current program is terminated. Otherwise, the data from the current program is retained, and processing returns to the calling program when <rep> has finished running. The other additions control the selection screen and set attributes of the default list in the called program.
    Regards,
    Bhaskar

  • Syntax for Data Pump in Oracle Database 11g

    Hi, thanks to all. i myself clarifying many doubts by refering the POSTS in this Forum.
    I need the syntax for the Data Pump in Oracle 11g.
    Could you post the syntax plese.
    Thanks & Regards..

    Hello,
    You may have all the options in Datapump by typing the statements belows:
    expdp help=y
    impdp help=yElse, you'll have much more details and examples in the Utilities book from Oracle 11g documentation on the link below:
    http://www.comp.dit.ie/btierney/Oracle11gDoc/server.111/b28319/part_dp.htm#i436481
    Hope this help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Apr 19, 2010 11:07 PM

  • Proper syntax when binding a boolean to a view node

    What is the proper syntax for binding a nodes visability (or any variable that can be bound) to a boolean variable.
    There are three choices, tell me which of the fallowing is proper.
    var loginPassed: Boolean = false;
    var loadingBox: VBox = VBox {
        visible: bind if (loginPassed) then true else false
        content: [loadingLabel,progressIndicator]
    var loaddingBox: VBox = VBox {
        visible: bind loginPassed
        content: [loadingLabel,progressIndicator]
    var loadddingBox: VBox = VBox {
        visible: loginPassed
        content: [loadingLabel,progressIndicator]
    }Let me know and thanks

    Yes it seams that the problem was not with my bind of the content. The error was actually occuring when running in browser mode. At start up the program was throwing an odd exception. Showing in the stack trace were traces of Node and boolean.
    The error was being thrown when I had Control.TextBox as my default input focus.
    After changing the TextBox to a SingExtension.TextField the error went away.
    I will try to reproduce the error and post in a seperate thread.

  • Proper syntax???

    I was trying to find out the proper syntax for the following select statement. I just started JSP and cannot find info on this. Is this proper?? --
    String Pass= request.getParameter("Password");
    String sql = "Select WEB_USER_ID FROM WEB_USER_INFO WHERE UserName = Pass";
    Thank you for the help!!

    I tried that and got the following error. The asdfasdf is what I typed in the password field.
    500 Servlet jspservlet: unable to service request: [Sybase][ODBC Driver][Adaptive Server Anywhere]Column not found: Column 'asdfasdf' not found

Maybe you are looking for