How to check all items are not null in CAML Query?
HI All,
In a CAML Query, i got three items. In all three items, a particular column(Closure Date) should not be null. How to check in all three items, where 'Closure date' is not null?
Thanks in advance!
Hi,
Try this:
"<Where><IsNull><FieldRef Name='Closure Date' /></IsNull></Where>"
Hope it hepls!
Thanks,
Avni Bhatt
If this helped you resolve your issue, please mark it Answered
Similar Messages
-
Retrieve all items in a list by caml query then write it to a word file page by page
Dears,
Greetings
I have some code which will retrieve all items of a list with caml query.
Now i want to generate a word file with all these retrieved data. I am using foreach here to get all the items in a SPListItemCollection. Now my question is how i can write all the retrieved items inside the word file?
see the below code which is writing only the last row item of the SPListItemCollection inside word file. I want to write all the retrieved rows inside this word file.
SPQuery qry = new SPQuery();
qry.Query = "<Where><Eq><FieldRef Name='Department' /><Value Type='Text'>HR DEPARTMENT</Value></Eq></Where>";
SPListItemCollection listItems = KPILIst.GetItems(qry);
foreach (SPListItem item in listItems)
lblBadgeNo.Text = item["Badge No"].ToString();
lblName.Text = item["Name"].ToString();
lblPosition.Text = item["Position"].ToString();
lblDept.Text = item["Department"].ToString();
lblHireDate.Text = item["Hire Date"].ToString();
lblGrade.Text = item["Grade"].ToString();
lblCurStatus.Text = item["Status"].ToString();
string FinalOut = "";
FinalOut = "<table cellpadding=0 cellspacing=0><tr><td style='height:30px;'></td></tr><tr><td style='height:22px;'></td></tr>";
FinalOut = FinalOut + "<tr><td style='text-align:justify;font-size:22px;'>" + lblBadgeNo.Text + "</td></tr>";
FinalOut = FinalOut + "<tr><td style='text-align:justify;font-size:22px;'>" + lblName.Text + "</td></tr>";
FinalOut = FinalOut + "<tr><td style='text-align:justify;font-size:22px;'>" + lblDept.Text + "</td></tr>";
FinalOut = FinalOut + "<tr><td style='text-align:justify;font-size:22px;'>" + lblHireDate.Text + "</td></tr>";
FinalOut = FinalOut + "</table>";
System.Text.StringBuilder strBody = new System.Text.StringBuilder("");
strBody.Append("<html " + "xmlns:o='urn:schemas-microsoft-com:office:office' " + "xmlns:w='urn:schemas-microsoft-com:office:word'" + "xmlns='http://www.w3.org/TR/REC-html40'>" + "<head><title>EPCCO : HR Comapny Letter</title>");
strBody.Append("<!--[if gte mso 9]>" + "<xml>" + "<w:WordDocument>" + "<w:View>Print</w:View>" + "<w:Zoom>90</w:Zoom>" + "<w:DoNotOptimizeForBrowser/>" + "</w:WordDocument>" + "</xml>" + "<![endif]-->");
strBody.Append("<style>" + "<!-- /* Style Definitions */" + "@page Section1" + " {size:8.5in 11.0in; " + " margin:1.0in 1.25in 1.0in 1.25in ; " + " mso-header-margin:.5in; " + " mso-footer-margin:.5in; mso-paper-source:0;}" + " div.Section1" + " {page:Section1;}" + "-->" + "</style></head>");
strBody.Append("<body dir=rtl lang=EN-US style='tab-interval:.15in'>" + "<div class=Section1>" + FinalOut.ToString() + "</div></body></html>");
Response.AppendHeader("Content-Type", "application/msword");
Response.AppendHeader("Content-disposition", "attachment; filename=Eval_" + lblBadgeNo.Text + ".doc");
Response.Write(strBody);
Regards
Shaji
I am new to SharePointHello,
you can try with OpenXML SDK to create word file. I found one link for your reference:
http://sharepointplace.blogspot.in/2009/12/programmatically-creating-word.html
Another way is , use Microsoft Word Object Library.
http://social.msdn.microsoft.com/Forums/vstudio/en-US/5b82c0b5-ecaf-40f2-a68a-c7c17c85414f/create-word-documents-by-c?forum=csharpgeneral
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Why does status bar say that all items are not loaded?
When I have the status bar displayed at the bottom of my page, and I load a page, it usually says 4 of 5 item complete, or 6 of 7, or even one time, 92 of 93. What does this mean exactly? And why does it never say all items are completed? Is anything wrong with the browser, or is this just code for something?
Thanks,
JeffThese days web pages have many little extras, not just images, that have to be downloaded when we click on a link to a page. Sometimes, for a variety of reasons (file availability, internet problems, browser, bad coding, local cache, ISP problem) not everything downloads.
As long as the page seems to have all the information and nothing is apparently missing, I tend to ignore this.
When all items are completed, the status bar shows nothing. -
All items are not visible even with no filter
I have a custom list and am not able to run a search the list, through the "all items" view, even with no filter set. The list is also set to only view 50 items at a time, but I am not able to view the next batch of items. The search
will give no results even when the list contains the item with that specific information.Hi,
1) I understand you are not able to view the 'All Items' in the list.
Can you check the total number of items that list contains.
Go to Site Actions-->View All site content see the number of items beside the list name( right side)
I suspect the list might be reached the threshold value.
2) If the number of Items are less than the threshold value then I would suggest you do a test by creating another view by providing only the view name (Don't use any sort, Filter, Groupby ...etc) and just keep the default settings and let me
know if you are able to see the items using the newly created view.
****************************************************************************************** Please remember to mark your question as answered &Vote helpful, if this solves/helps your problem.
s p kumar -
How To know Which Columns are not null and Which are null
Hi Freinds,
I want to Know ,How by Wrting a Query we can get the Names of The Columns from the Table which is set to not-null or null,
Thanks
ShoaibSELECT * FROM user_tab_columns
WHERE table_name='Your_Table_Name'Check NULLABLE column. -
How to findout rows which are not null ?
Hi friends,
Can anyone tell me how to find out the no of rows which is having full data in each column (not null) ?
Ex:- TEST_TABLE having 1000 columns and lakes of rows.
myQuestion:- I need to find the no of rows which are filled with 1000 columns filled with not null data.
Thanks in Advacne.
Kishore.Hello
You're just going to have to write the query with IS NOT NULL on each column. This will help generate the predicates for the WHERE clause to save quite a bit of typing...
SELECT
' AND '||column_name||' IS NOT NULL'
FROM
all_tab_columns
WHERE
table_name = 'TEST_TABLE'You can take the output and add that to
SELECT COUNT(*) FROM test_table WHERE 1=1 HTH
David -
How to check all rows and colums runtime executing BW query
Hi Guys,
I have a BW query with many calculated key figures. while execute this query the performance is really bad/slow. I need to know in which object the query is taking long time, is there any table or anything to get this information. I have looked all the query perfomation stuffs, everything looks good, just want to figure out what is making OLAP runtime longer.
Thanks,
KrisHi Krish,
You can not check the time taken by any particular key figure/ characteristics.
However, if you really want to reduce the time, you can create aggregates proposed by SAP based on your query.
First go to RSRT, place your query and click on "Execute + Debug".
Then select "Display Aggregate Found" under Aggs and "Display Statistics Data" under Others in the "Debug Options".
Now it will show you how you should create your aggregate based on different objects so that the total query execution time will be less.
Also after clicking on BACK button you can check the time taken by each event during Query execution.
Hope it helps.
Thanks,
Subrat. -
How to check which views are not read only
Hi, I need to run a script in order to get the views that were not created with the read only option. Where can I get that info? It doesn't seem to be in dba_views.
Thanks and regardsJoin it with DBA_CONSTRAINTS (CONTRAINT_TYPE = 'O') :
SYS@db102 SQL> select view_name, text from dba_views where owner = 'U1';
VIEW_NAME TEXT
V_EMP_RO select empno,ename,job from myemp with read only
V_EMP select empno,ename from myemp
SYS@db102 SQL> select view_name, decode(constraint_type,'O','RO','RW')
2 from dba_views v, dba_constraints c
3 where v.owner = c.owner(+)
4 and view_name = table_name(+)
5 and v.owner = 'U1';
VIEW_NAME DE
V_EMP_RO RO
V_EMP RW
SYS@db102 SQL> -
Punchout Catalog Items are not transfering to Consumer Portal (SRM 7.0)
Dear Experts,
We are able to add a punch out calatog after check out items are not tranfered to Consumer Portal ( Not able to see selected items in shop screen). Same thing is working fine with Producer Portal.
1. Tried with RDL and RRA.
2. Internal Calatog isworking fine in both portals.
3. Checked all the permission and role assigmnment. every thing is fine and working fine except Punchout Catalog.
Please helps us to resolve this issue.
Appreciate all your support.Dear Experts,
We have checked with Internal URL and it is working fine. So i feel we dont have any issue with BADI.
We have identified the difference between Dev( Working fine) and QA (Not Working) in HTTPWatch log.
When we test navigation for Punchout Catalog in Dev : Consumer (External URL) --> Producer (External URL) --> Externla Stie
When we test navigation for Punchout Catalog in QA : Consumer (External URL) --> Producer (Internal URL) --> Externla Stie
So BASIS and Portal team compared DEV and QA and did not find any difference.
Dev ( External URL - Https) ( Consumer - https://portaldev.xxxxxxx.com) ( Producer - https://sapsrdci.xxxxxxxx.com:8020)
( External Site - https://www.zones.com)
======================================================================================================
+ 4.191 0.001 0 0 GET (Cache) html https://portaldev.xxxxxxxxx.com/irj/portalapps/com.sap.portal.navigation.contentarea/html/blank.html
+ 4.305 0.001 0 0 GET (Cache) html https://portaldev.xxxxxxxx.com/irj/portalapps/com.sap.portal.pagebuilder/html/EmptyDocument.html
+ 4.485 0.728 2506 3701 POST 200 html https://sapsrdci.xxxxxxxx.com:8020/sap/sapsrm/outbound_hdlr
+ 5.266 0.116 1189 1349 GET 200 javascript https://sapsrdci.xxxxxxxx.com:8020/sap/public/bc/webdynpro/ssr/SAPWebFramework.js
+ 5.580 2.143 1413 821 GET 200 html https://sapsrdci.xxxxxxxx.com:8020/sap/BC/BSP/sapsrm/ctlg_wrapper/back_frame_src.html?sap-client=150&sap-language=E
+ 5.590 2.073 1413 677 GET 200 html https://sapsrdci.xxxxxxxx.com:8020/sap/BC/BSP/sapsrm/ctlg_wrapper/catalog_frame_src.html?sap-client=150&sap-language=E
+ 7.798 5.086 1902 979 POST 200 html https://www.zones.com/site/punchout/commerce.html
QA ( External URL - Https) ( Consumer -https://portaltraining.xxxxxxxx.com)
( Producer - http://sapsrqci.xxxxxxxxx.com:8012 --> This is internal URL)
( External Site - https://www.zones.com)
======================================================================================================
+ 4.515 0.001 0 0 GET (Cache) html https://portaltraining.xxxxxxxx.com/irj/portalapps/com.sap.portal.navigation.contentarea/html/blank.html
+ 4.573 0.001 0 0 GET (Cache) html https://portaltraining.xxxxxxxx.com/irj/portalapps/com.sap.portal.pagebuilder/html/EmptyDocument.html
+ 4.776 0.333 2296 3623 POST 200 html http://sapsrqci.xxxxxxxx.com:8012/sap/sapsrm/outbound_hdlr
+ 5.138 0.002 0 0 GET (Cache) javascript http://sapsrqci.xxxxxxxx.com:8012/sap/public/bc/webdynpro/ssr/SAPWebFramework.js
+ 5.241 0.102 1526 228 GET 304 html http://sapsrqci.xxxxxxxx.com:8012/sap/BC/BSP/sapsrm/ctlg_wrapper/back_frame_src.html?sap-client=100&sap-language=E
+ 5.247 0.188 1529 228 GET 304 html http://sapsrqci.xxxxxxxx.com:8012/sap/BC/BSP/sapsrm/ctlg_wrapper/catalog_frame_src.html?sap-client=100&sap-language=E
+ 5.476 1.808 2134 901 POST 200 html https://www.zones.com/site/punchout/commerce.html
We are in crucial phase of project and your inputs will be very helpful for us.
Appreciate all your support and more points will be rewarded.
Thanks
Sunil
Edited by: PSUNIL on Nov 25, 2011 12:35 PM
Edited by: PSUNIL on Nov 25, 2011 12:35 PM -
FB05 All open items are not displayed
Hi,
We are trying to clear invoices on customer XXXX but it does not show all invoices in transaction FB05.
We used all Special GL indicators and with normal items tab seperately as well as simultaneously but not all items are displayed What could be the problem.?
regards,
MakrandHi
You can first analyze the open items in FD10N and check if any uncleard entries are present . I think that even if there is a payment block, the process item list should show all the open items as seen in FD10N.
Thanks
kamala -
All my sent items are not visible in outlook
When I send email from my iphone I can't see it in sent items in my desktop pc's outlook 2013. However, all inbox items are visible. My OS is windows 8 pro.
ThanksLooking at the .mac mail folder, there are no black triangles, I have inbox, drafts and sent (and trash) icons.
I tested the .mac mail (I know I keep saying "this site" but I don't know what else to call it?), and using this one it does keep a copy of the sent items. BUT using the Mail (the stamp icon mail) copies of sent items are not saved.
I want to use the Mail one, because you can choose fonts and all that other stuff, which is why I even purchased the year membership! (otherwise I would just stay with Yahoo mail).
I really don't have a clue about this stuff and I appreciate you taking your time here. -
In my library, under the Artist column only...items are not listed in alpha order. How can I get that to happen?
Same deal as your other thread but with Artist/Sort Artist:
https://discussions.apple.com/message/25561674#25561674
For more info. on how iTunes organizes things see Grouping tracks into albums.
tt2 -
An hour ago, I accidentally deleted a Bookmarks folder, and all of subfolders and hyperlinks. The lost items are not in "Trash." Are they still retrievable? JAW
They don't go into the Trash. Unless you have a backup prior to the deletion time it's gone.
-
I live in China, have Dutch nationality, and no US address or Credit Card; how can I have access to products from the US iTunes store, in particular music, when such items are not available from the China iTunes store? In general, what are the differences between countries' iTunes offerings? Does one really need an address and a credit card for any country to be able to access that countries iTunes store? Why these restrictions?
You cannot.
You cannot use another countrys itunes store.
You must be physically locates inside the borders of a country to use that countrys itunes store and a credit card issued in that country with a valid billing address in that country.
The owners of the distribution rights of movies/music/etc differ by country. These distributors decide who can sell their content in that country.
Buy from another source if your countrys itunes store does not carry somehting that you want. -
Reg: Certain Open Items are not showing in open item clearing F-44
HI all,
I want clear open items using with f-44 but cetain open items are not showing in opeing item clearing. i checked in FBL1N all open items are shwoing i want see all open items inf-44 how to see plz help me
with regards
JK RaoHi,
Check whether you r giving some additional selection take it as none and are the items in the account have any special indicator you might not be giving here.
reward pts if useful
regds
Maybe you are looking for
-
i have installed oracle 9i AS (EE)on NT, Now i want to display reports in pdf/HTML on web broswer. For that i am trying to run report tester page given through broswer it is showing one page having Button(run report), when i click on that, it gives e
-
Save as PDF stopped working since updating
I am using Photoshop/Lightroom Photography CC, Office 2010 on Windows 7 Home (64bit). Since updating to the latest version of Photoshop in the last week or so, saving as a PDF file seems to have stopped working in Word & Excel. Could there be a link?
-
Hi, can any one provide me how to configure HTTPS in websphere 6.1 which is running on Linux. Thanks.
-
Tabs Styles in different themes
I'm using a blue theme #20 in APEX 3.1. This theme is fine for most of the templates except for parent and standard tabs. I like tab style in Theme #16 (Dark blue). is there way I can use those tab styles for parent/standard tabs from a different the
-
Publish to something other than .mac?
say you dont have .mac, or dont want to use it to publish your iweb page. can you load this onto just about any web hosting company, or is it specifically tied to the .mac ecosystem?