How to convert any CAML query to SharePoint Search query (like KQL , FQL )etc
Hi ,
To query multiple lists with lookup column, CAML query is preferred over Search API.
Is there an easy way to get this done with Search API or using Search OOB features like query rules,result types etc?
Can CAML query configured in Content search webpart
Swati
SP Page: http://www.facebook.com/SharePointQ SP Blog: http://swatipoint.blogspot.com
Hi Swati,
As I understand, you would like to query lookup column in content search web part. I found a similar issue for your reference:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/6be2fd2b-df0d-4054-af5d-bb23200593b2/content-query-web-partquery-on-lookup-fields
For more information:
http://blogs.msdn.com/b/kaevans/archive/2009/02/23/the-content-query-web-part-and-working-with-lookup-fields-in-a-custom-web-part.aspx
Regards,
Rebecca Tu
TechNet Community Support
Similar Messages
-
I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.
Hi Frank ,
Please refer to the following link and see if this helps.
https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
Regards
Sukrit Dhingra -
How to convert milliseconds to date format in sql query
Hi All,
The following code is in java.
String yourmilliseconds = "1316673707162";**
Date resultdate = new Date(Long.parseLong(yourmilliseconds));
could you plese tell me how to convert milliseconds into date format in query and comparing with another date like(sysdate-3)Hello,
http://stackoverflow.com/questions/3820179/convert-epoch-to-date-in-sqlplus-oracle
Regards -
Full Guide: How to convert any DVD and videos to iPod Touch/Classic/Nano
This full guide includes four parts.
(1) How to Crack DRM video and audio files
(2) How to Rip a DVD to put it on iPod/iPhone 3G/PSP/Zune/Sansa View/iRiver……
(3) How to convert and burn WMV/AVI video directly to DVD
(4) How to transfer video/music from iPod to computer
Part 1: How to crack DRM video and audio files
Daniusoft Digital Media Converter Pro(http://www.topsevenreviews.com/daniusoft-digital-media-converter-pro.html) software is the quickest and easiest solution to remove drm from WMV, M4V, M4P, WMA, M4A, AAC, M4B, AA files by quick recording. You can use this professional tool to crack drm and put them on your iPod/iPhone 3G/PSP/Zune/Sansa View/iRiver……
The process is as follows:
Step 0: Download Daniusoft Digital Media Converter Pro(http://www.topsevenreviews.com/download/video-music-converter/daniu-digital-media-converter-pro.exe), install and run it.
Stpe 1: Run the software and click “Add…” button to load WMA or M4A, M4B, AAC, WMV, M4P, M4V, ASF files
http://www.topsevenreviews.com/guide/how-to-convert-drm-protected-music-movie/digital-media-pro-n2.jpg
Step 2: Choose output formats. If you want to convert protected audio files, please select “Convert audio to” list; If you want to convert protected video files, please select “Convert video to” list.
Stpe 3: You can click “Settings” button to custom preference for output files.
Click “Settings” button bellow “Convert audio to” list for protected audio files
http://www.topsevenreviews.com/guide/how-to-convert-drm-protected-music-movie/audio-output-setting.jpg
Click “Settings” button bellow “Convert video to” list for protected video files
http://www.topsevenreviews.com/guide/how-to-convert-drm-protected-music-movie/video-output-setting.jpg
Step 4: Start remove DRM and convert your DRM protected music and videos by click on “Start” button.
Part 2: How to rip a DVD to put it on iPod/iPhone 3G/PSP/Zune/Sansa View/iRiver……
With Aiseesoft DVD Ripper you can rip and convert any DVD to most popular videos supported by your iPod, iPhone 3G, PSP, Zune, Sansa Video and other portable devices.
Step 0: Download Aiseesoft DVD Ripper(http://www.topsevenreviews.com/aiseesoft-dvd-ripper.html), install and run it.
http://www.topsevenreviews.com/image/aiseesoft-converter-suite/dvdripper-n2.jpg
Step 1: Click “Load DVD” button to load your DVD.
Step 2: Select the output video format you want from the “Profile” drop-down list.
Step 3: Click the “Start” button to start your conversion and In a short while it will be finished.
Tips:
You can also use the powerful editing funtion (Snapshot, Merge, Effect, Trim, Crop)to edit your DVD.
Part 3: How to convert and burn any video directly to DVD/VCD/SVCD
With Cucusoft DVD/VCD/SVCD Creator Pro you can burn any AVI/WMV videos to DVD.
The process is as follows.
Step 0: Download Cucusoft DVD/VCD/SVCD Creator Pro(http://www.topsevenreviews.com/cucusoft-dvd-creator-pro.html), install and run it.
http://www.topsevenreviews.com/image/burndvd-n2.jpg
Step 1: Choose the “To DVD” button and click "Opne/Add" button to import WMV/AVI files to convert WMV/AVI to DVD.
Step 2: Select Merge or Batch function.
Batch Function, Support converting multiple files to DVD VCD SVCD MPEG1/2 at the same instance
Merge/Join function, Support selecting several clips from different sources and combine them into one single output
Step 3: Set your preference to burn WMV/AVI to DVD.
Step 4: Click "More Advanced Settings" button to set advanced settings for your files.
Step 5: Choose the “Output Folder” and Click “Convert & Burn” button to start.
Part 4: How to transfer video/music from iPod to computer
With Aiseesoft iPod to Computer Transfer you can tranfer or backup your videos and songs to your computer.
Step 0: Download Aiseesoft iPod to Coumputer Transfer(http://www.topsevenreviews.com/ipod-to-computer-transfer.html), install and run it.
http://www.topsevenreviews.com/image/ipod-to-computer/connectipod-n2.jpg
Step 1: When you connect your iPod to the computer via USB cable and run the program, the program will detect and recognise your device automatically.
Step 2: Then from the file list, you can choose the audio or video files that you want to transfer and a detailed list will be displayed at the right for your to choose.
Step 3: Choose the songs you want to transfer and then click the "Start Transfer " button below the list to begin transferring files from iPod to computer.
Step 4: In a short while your conversion will be finished
Hope the guide collections can be helpful for all of you.
Mac Video Converter(http://www.macsoftreviews.com/iskysoft-video-converter-mac.html)
Best DVD Ripper(http://www.topsevenreviews.com/)
iPhone Ringtone Maker(http://www.macsoftreviews.com/aiseesoft-iphone-ringtone-maker.html)Use Automator. QuickTime is Automator compatible. However, you will first need to download the "iPod" script from the Automator web site. For a tutorial and instructions, download Brian Gary's "Automator for the People" Ripplecast from the iTunes podcast area.
2.0GHZ G5/533MHz G4 DeskTop/400MHz G4 PB Mac OS X (10.4.3) -
How to convert "any" date format to internal format
Hi,
I want to convert any date format to internal format. Is there any function module ?
The date formats could be:
DD.MM.YYYY
MM/DD/YYYY
MM-DD-YYYY
YYYY.MM.DD
YYYY/MM/DD
YYYY-MM-DD
Thank you,
SuryaHi,
Check this sample program..It will convert sap supported external format to the internal format..
PARAMETERS: v_char(10).
DATA: v_date TYPE sydatum.
DATA: v_period TYPE usr01-datfm.
Get the format.
DD.MM.YYYY
IF v_char+2(1) = '.'.
CONCATENATE v_char6(4) v_char3(2) v_char(2) INTO v_date.
ENDIF.
MM/DD/YYYY
IF v_char+2(1) = '/'.
CONCATENATE v_char6(4) v_char(2) v_char3(2) INTO v_date.
ENDIF.
MM-DD-YYYY
IF v_char+2(1) = '-'.
CONCATENATE v_char6(4) v_char(2) v_char3(2) INTO v_date.
ENDIF.
YYYY.MM.DD
IF v_char+4(1) = '.'.
CONCATENATE v_char(4) v_char5(2) v_char8(2) INTO v_date.
ENDIF.
YYYY/MM/DD
IF v_char+4(1) = '/'.
CONCATENATE v_char(4) v_char5(2) v_char8(2) INTO v_date.
ENDIF.
YYYY-MM-DD
IF v_char+4(1) = '-'.
CONCATENATE v_char(4) v_char5(2) v_char8(2) INTO v_date.
ENDIF.
WRITE: / v_date.
Thanks,
Naren -
How to club 2 queries in one formatted search query
Hi All,
I have inserted a formatted search in the stock transfer for chnaging the 'From warehouse' based on series.
I have written following query for same,
SELECT $[$18.1.0]='08' WHERE $[OWTR.series] ='46'
It is working Fine
I want ot use same concept for selecting other based on other warehouse
e.g
SELECT $[$23.5.1]='02' WHERE $[OWTR.series] ='45'
But I am not able to club these queries on one formatted search query can anybody help to group it in one formatted search query....
Thanks and Regards,
Atul Joshi
Edited by: Atul Joshi on Dec 23, 2008 5:20 PMHi Atul,
You could define the quey like this
SELECT
CASE
WHEN $[OWTR.series]='46' THEN '08'
WHEN $[OWTR.series]='45' then '02'
end
from OWTR
Regards,
Vijay kumar
SAP Business One Forums Team -
How to convert any date format to default US format using javascript???
Hi,
I was trying to convert a date format to default US date format. The date format will vary according to different regions (It can be dd/MM/yyyy or MM/dd/yyyy or yyyy/dd/MM or any). I need to convert it in to MM/dd/yyyy always (US Format). Please give some
solutions for the same.
Warm Regards,
Tony Joyhi
it is not trivial task in common case. We faced with similar issue when tried to localize date times in display templates in Sharepoint 2013 depending on site's locale, which can be done only via javascript. In order to do it you need to add date time locale
information from server side to client side, e.g. by defining global variable. See the following article for details:
Localize datetimes in display templates in Content by search web parts in Sharepoint 2013. I extended OTB global object _spPageContextInfo with new property (as far as I remember this object is also available in Sharepoint 2010):
<script type="text/javascript">
jQuery(function() {
if (typeof (_spPageContextInfo) != "undefined" &&
_spPageContextInfo != null) {
<%
var ci = new CultureInfo(1033);
var cultureSerialized = new JavaScriptSerializer().Serialize(
new
name = ci.Name,
dateTimeFormat = ci.DateTimeFormat,
numberFormat = ci.NumberFormat
%>
_spPageContextInfo.currentCultureSerialized = <%= cultureSerialized %>;
</script>
Having different date time formats for your locale, you may use
Date.localeFormat function from MS Ajax for formatting the date in specific format. If in your case format is predefined you may hardcode it without adding DateTime formats from server side.
Blog - http://sadomovalex.blogspot.com
Dynamic CAML queries via C# - http://camlex.codeplex.com -
How to convert any date format?
Hi,
In the BPEL process I am getting the input in 'DD-MON-YYYY' format, I want to convert it to 'DD-MM-YYYY' format.
The function xp20:formatDateTime('string', 'image') expecting the string to be in 'YYYY-MM-DD' format. and the 'image' can be set to any format.
So i am able to convert to any format if I have the input string in 'YYYY-MM-DD' format, if I get in different format then how do I change them to required format?
--KhaleelLooks like you are sending the date in Oracle format. If the date is created by a DB adapter the date should be formated in the correct format for BPEL to format (YYYY-MM-DDTHH:MI:SS). To make sure this happensyour xml needs to be the date data type and the value sent maust be a date not a string, if it is a string use the to_date to make it a date field.
You are correct once it is in the YYYY-MM-DD format you can change to any format.
cheers
James -
How to convert any datatype to a number
Hi --
I have a query I'm writing, and for error-trapping purposes I want to convert whatever information I received in a bind variable into a number.
For instance, in my query:
SELECT TO_NUMBER('c') FROM dual
I get an error because 'c' is not a number. I'm usually expecting a number, but if for some reason I receive a character, I want to convert that character to a zero, and if I do receive a number I want it to retain its value. I hope this is clear!!!
Any suggestions are greatly appreciated.
Thanks,
ChristineUnfortunately, I need to do this directly in the SQL statement if at all possible.If you don't want to use a function, try :
1 select case when ascii('&1') between 48 and 57 then to_number('&1')
2 else 0 end
3* from dual
SQL> /
Enter value for 1: a
Enter value for 1: a
old 1: select case when ascii('&1') between 48 and 57 then to_number('&1')
new 1: select case when ascii('a') between 48 and 57 then to_number('a')
CASEWHENASCII('A')BETWEEN48AND57THENTO_NUMBER('A')ELSE0END
0
SQL> /
Enter value for 1: 5
Enter value for 1: 5
old 1: select case when ascii('&1') between 48 and 57 then to_number('&1')
new 1: select case when ascii('5') between 48 and 57 then to_number('5')
CASEWHENASCII('5')BETWEEN48AND57THENTO_NUMBER('5')ELSE0END
5
SQL> Nicolas.
ascii(9) => 57
Correction for ascii(0) => 48 and not 49...
Message was edited by:
N. Gasparotto -
How to use 'about' operator in Full text search query?
Hi all,
I have to search the following string in full text index using 'about' operator.
'Advertisment(Cosmetics) Assets'
If use the following query
SELECT keyword_id
FROM mam_keyword_languages
WHERE contains(fts_text_uc, convert('about(Advertisment(Cosmetics) Assets)',
'WE8MSWIN1252', 'WE8MSWIN1252')) > 0
ORDER BY nlssort(text, 'NLS_SORT=EEC_EUROPA3')
It gives following error.
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-50901: text query parser syntax error on line 1, column 37
How can i do this search? Is there any other way?
Thanx in advance.
T.UmapathySum((postab.subtotal)*(loc.royalty)/100)
Is there any other way to take product of two
attributs? your help will be greatly appreciated as
it is really stumbling block in my project. Thanks in
advanceSuch a stumbling block should have inspired more activity on your part.
I'd try rewriting it like this:
sum(postab.subtotal*loc.royalty/100)[/b]% -
How to remove any kinds extensios in result search
Hi for all,
In 'crawler.dat' file in 'default file name suffix exclusion list' session I add others extensios:
RX_BOUNDARY (?i:(?:\.jpg)|(?:\.jpeg) ... (?:\.css)|(?:\.js))$However, these files are showed in the result search of SES. I would like remove in result search *.js files, for example.
How could I do this?
Kind regards,That change will only affect files which are crawled in the future. It won't have any effect on results returned from previous crawls. You'll need to recrawl the source (or probably better, drop the source and recreate it) for that to have the proper effect.
-
i am getting ads through flash player. there is no menu to either close the same and/or block the same. more flash player ads appear in each screen. please suggest more options other than adblock plus, which is not effective in blocking the flash player ads.
You can look at these extensions:
* Flash Block: https://addons.mozilla.org/firefox/addon/433
* NoScript: https://addons.mozilla.org/firefox/addon/722 -
when i use a search engine like google, yahoo, etc., when I click on the link, I am immediately redirected to another site. Many times I must hit "back", and click on the link again. Sometimes I am redirected again to another and different site. If I go back again and re-click, it will then take me to the link that is listed.
Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
SuperAntispyware - [http://www.superantispyware.com/] <br />
AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]<br />
Also, if you have a search engine re-direct problem, see this:<br />
http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
[http://www.spywarewarrior.com/index.php] <br />
[http://forum.aumha.org/] <br />
[http://www.spywareinfoforum.com/] <br />
[http://bleepingcomputer.com] -
Convert any doc..
Hi,
how to convert any doc to pdf file?Hi
Go to SA38 / SE38 and put this program name RSTXPDFT4 and then give the path where you have to save the PDF file and execute.
Provide the spool request number. You can get your spool request number via SP01 / SP02
Thanks & regards,
Kiran -
How to convert xslt file into string
i'm writting a java program to use xslt to transform the xml file. i'm encountering the problem when i try to convert the xslt file into string. i've defined my utility class called 'XmlUtil' to carry out the operation of transform xml file through xslt. but in my main java program i need to convert both xml and xslt file into a string in order to input them in my function argument. my function argument is as follows:
String htmlString = XmlUtil.applyXsltString(xmlContent, xsltString);
i've already converted xmlcontent into string by using:
xmlContent = xmlContentBuffer.toString();
but i don't know how to convert 'xsltString' now ? i've searched the google for an hour but i cannot find the solution. anyone can help ?
detail of my souce code is as follow:
import java.io.*;
import java.net.*;
import java.lang.*;
import java.io.StringReader;
import java.lang.reflect.Array;
import java.util.Properties;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.sax.SAXSource;
import javax.xml.transform.sax.SAXTransformerFactory;
import javax.xml.transform.sax.TransformerHandler;
import javax.xml.transform.stream.StreamSource;
import org.apache.xml.serializer.OutputPropertiesFactory;
import org.apache.xml.serializer.Serializer;
import org.apache.xml.serializer.SerializerFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
import XmlUtil;
public class FileDownload {
public static void download(String address, String localFileName){
OutputStream out = null;
URLConnection conn = null;
InputStream in = null;
StringBuffer xmlContentBuffer = new StringBuffer();
String temp = new String();
String xmlContent;
try {
URL url = new URL(address);
out = new BufferedOutputStream(
new FileOutputStream(localFileName));
conn = url.openConnection();
in = conn.getInputStream();
byte[] buffer = new byte[1024];
int numRead;
long numWritten = 0;
System.out.println (in.toString ());
while ((numRead = in.read(buffer)) != -1) {
out.write(buffer, 0, numRead);
numWritten += numRead;
temp = new String(buffer);
xmlContentBuffer.append(temp);
System.out.println(localFileName + "\t" + numWritten);
xmlContent = xmlContentBuffer.toString();
String htmlString = XmlUtil.applyXsltString(xmlContent, xsltString);
} catch (Exception exception) {
exception.printStackTrace();
} finally {
try {
if (in != null) {
in.close();
if (out != null) {
out.close();
} catch (IOException ioe) {
public static void download(String address) {
int lastSlashIndex = address.lastIndexOf('/');
if (lastSlashIndex >= 0 &&
lastSlashIndex < address.length() - 1) {
download(address, address.substring(lastSlashIndex + 1));
} else {
System.err.println("Could not figure out local file name for " + address);
public static void main(String[] args) {
for (int i = 0; i < args.length; i++) {
download(args);
}I don't understand why you need load the XML and XLS files into a String. A Transformer can be constructed from a Source and there is a StreamSouce which can be constructed from an InputStream. The transform() method can take a Source as input and can produce a Result. There is no need to go near a String representation of either the input.
Maybe you are looking for
-
Dynamically setting column width doesn't work all the time
I wanted to dynamically set the width of a column in a JTable to be half of the width of a another column. This should happen whenever the frame is resized. But somehow I need to tell this twice to Java. If I don't then sometimes the column width isn
-
Tricky Issue with connecting to Lync server from my desktop lync client 2010
I am facing a tricky situation here, Firstly i have 3 modes of connecting my laptop to the internet as follows: 1)Using Wi-Fi connection. 2)A physical LAN cable connection 3)An internet data card (A USB data card). Now, i can comfortably use my Lync
-
Inbound IDOC not Triggering Immediately
I am processing an inbound idoc using startrfc, EDI_DATA_INCOMING. It posts the idoc, but stuck with status 64. Partner profile set to Trigger immediately. Why will it not process immediately? I can execute the RBDAPP01 to handle, but prefer imme
-
How to enumerate items on multi state object? (SDK Indesign)
Hello, I need to take all snapshot items in multistate object. How to get all items in multistate object? Thanks
-
Need information on Error ORA-30052:invalid lower limit snapshot expression
Hello all, I have been running some flashback version queries on Oracle DB like: SELECT versions_xid,VERSIONS_OPERATION, LABEL_NAME FROM <table_name> VERSIONS BETWEEN SCN <scn1> AND <scn2>; It was working fine, but after some interval, I got the foll