Caml query for filtering list item not working as expected in Sharepoint hosted app
I am trying to filter list item based on particular value.
var header = "xyz";
camlQueryHeader.set_viewXml = "<view><Query><Where><Eq><FieldRef Name='Position'/>" + "<Value Type='Text'>" + header + "</Value></Eq></Where></Query></view>";
Instead of getting filtered list items, I get all the list items. What am I missing?
Note: I am creating Sharepoint hosted app using CSOM.
regards, Ritesh Anand
Hi,
According to the code provided, I suggest you modify the code like this:
camlQueryHeader.set_viewXml('<view><Query><Where><Eq><FieldRef Name=\'Position\'/>' + '<Value Type=\'Text\'>' + header + '</Value></Eq></Where></Query></view>');
Here is a documentation of how to use the viewXml property of SP.CamlQuery object:
SP.CamlQuery.viewXml Property
Thanks
Patrick Liang
TechNet Community Support
Similar Messages
-
DA for Select List is not working
Hi friends,
I have a two fields in my form.
<li>person id
<li>Manager Name(Select List)
I have given a default value for person id as'270'. So i need to write an dynamic action so that it will fetch the manager name according to the person id '270'.
Since My manager Name is an Select List type, i have given the following query in the LOV definition of this item
select papf.full_name d, papf.person_id r
from per_all_people_f papf,
per_all_assignments_f paaf,
per_all_people_f supf, hr_all_positions_f hapf, hr_all_organization_units haou
where papf.business_group_id = 216
and papf.person_id = paaf.person_id and hapf.position_id=paaf.position_id and haou.organization_id=paaf.organization_id
and NVL(paaf.supervisor_id, papf.person_id) = supf.person_id
and sysdate between papf.effective_start_date and papf.effective_end_date
and sysdate between paaf.effective_start_date and paaf.effective_end_date
and sysdate between supf.effective_start_date and supf.effective_end_date
and sysdate between hapf.effective_start_date and hapf.effective_end_date
and papf.person_type_id = 5145
order by 1 This is the DA, that i wrote for the person id column.
For the true action, i have given as 'Set Value' and given the following query
select supf.full_name
from per_all_people_f papf,
per_all_assignments_f paaf,
per_all_people_f supf, hr_all_positions_f hapf, hr_all_organization_units haou
where papf.business_group_id = 216
and papf.person_id = paaf.person_id and hapf.position_id=paaf.position_id and haou.organization_id=paaf.organization_id
and NVL(paaf.supervisor_id, papf.person_id) = supf.person_id
and sysdate between papf.effective_start_date and papf.effective_end_date
and sysdate between paaf.effective_start_date and paaf.effective_end_date
and sysdate between supf.effective_start_date and supf.effective_end_date
and sysdate between hapf.effective_start_date and hapf.effective_end_date
and papf.person_type_id = 5145 and papf.person_id = :P6_PERSON_IDPage item to submit: P6_PERSON_ID
Affected Element: P6_MANAGER_NAME.
Soon after the page load, the manger field has to show the corresponding manager name in the LOV according to the value '270' which is in the person id item. But it is not showing the corresponding name in the select list item.
Suppose, if the manager name item is in 'display only' means it is working, but if the manager name field is in LOV means it is not fetching the value and it is displaying only the null display value in that field.
I dont know why the DA is not working if the field is in LOV.
Brgds,
MiniHi Patrick,
Thanks, and this is the mistake that i made and it worked now fine.
I have Certain questions for you:
<li> Currently, i can able to send mails from APEX using APEX_MAIL, but APEX_MAIL will support only in the unauthenticated mail server. Since in our organization we have configured an unauthenticated mail server and we are using that server for the APEX mail process. The problem that im facing now is, this mail server is been used in our organization entirely for all the purpose, except the official mail.[For official mail purpose we are using Yahoo server, which is an authenticated server, and we are using that Yahoo mail server only for your official mail purpose].
For remaining all the purpose including the APEX mail process too we are using the unauthenticated mail server that we configured. Since we are make using of unauthenticated mail server for all the purpose and due to that, the mail process is getting very slow and i couldnt able to receive the mail from the APEX in time(via) this unauthenticated mail server.
So, due to that i thought of using the Yahoo mail server(which is an authenticated mail server). But APEX_MAIL doesnot support for the authenticated server, then how i can use the authenticated mail server for sending the mail via APEX. How i can able to access the Yahoo mail authenticated server from Oracle Database.(i have also enabled ACL in my DB too).
<li> Second question, is how i can able to refer the APPLICATION PROCESS in my application. Other than calling that APPLICATION PROCESS In javascript, it is possible to call that APPLICATION PROCESS in the plsql anonymous block.
Brgds,
Mini -
Auto-included link to list item not working in Workflow or email notification
I made a workflow straight from my SharePoint site--NOT from SharePoint Designer. (My computer is still running on Windows XP, so I can't download Designer until my boss upgrades me to a newer system.) When creating the workflow, you have the option to include
a link to the list item by clicking a checkbox. The links don't work in either the email notification or in the workflow properties. Extra characters are being added for some weird reason. (For example, the correct link looks like "https://www.w14b.comcast.net/sites/<yada
yada>.docx" and the links in the workflow and email look like "http://www.w14spw-po-b1.com/sites/<yada yada>.docx") I see no place to edit the URL. How do I fix the links???Hi,
Please check if the http://www.w14spw-po-b1.com/sites/ is the url of default zone of the web application where this site resides.
Here is a similar thread for your reference:
https://social.technet.microsoft.com/Forums/sharepoint/en-US/d17ad498-0b6f-4b12-9885-b8057fa04d88/sharepoint-2010-workflow-inserting-link-to-list-item?forum=sharepointgeneralprevious
In addition, Windows XP SP3 is supported for SharePoint designer 2010:
http://www.microsoft.com/en-in/download/details.aspx?id=16573
Regards,
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Create a project from list item not working if EPT has Project Plan Template
HI,
i am trying to leverage the new feature in 2013 to create a project from an idea list.
This works fine if the EPT does not have Project Plan template assigned to it. Even through workflow action "Create Project from current list item".
However if i assign a project plan template and the user creating the project is not Administrators Group member, i get an error. While doing this trough a workflow the worfklow gets suspended and i have the below message:
RequestorId: 654a6744-eb11-3d9c-0000-000000000000. Details: RequestorId: 654a6744-eb11-3d9c-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 403
{"error":{"code":"20010, Microsoft.ProjectServer.PJClientCallableException","message":{"lang":"en-US","value":"PJClientCallableException: GeneralSecurityAccessDenied\u000d\u000aGeneralSecurityAccessDenied"}}}
{"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["290"],"SPRequestGuid":["654a6744-eb11-3d9c-9d1e-ff8135e50f19"],"request-id":["654a6744-eb11-3d9c-9d1e-ff8135e50f19"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4535"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Wed, 23 Apr 2014 14:40:46 GMT"],"Server":["Microsoft-IIS\/7.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}
at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Any one has experienced this ?
ThxHi, RonyZ.
I think it could help.
I have experienced the same problem as you are, except "Create project" option, my managers could do it.
So, for me a solution was to set definite permissions for Workflow Initiators (I have created new group, but you can edit, including
Global permissions
New project
Open project template
Server configuration management
For category “My organization”
Open Project
Publish Project
Save Project on Project Server
Excuse me my translation, some names can be written not properly, cause I have localized SP.
In you case, I think, you should check, if you PM group has all these permissions.
And Workflow Initiator should be in group which has.
In LOGS error notifications starts with “Permission denied”, then goes account
name and then the name of permission which is left. -
CAML Query with ECMA script, ORDERBY not working
Hi, I'm trying to get this CAML query to order by created date. Seems like no matter what I do, it shows me the oldest items first. Here's my code:
function retrieveListItemsInclude() {
var clientContext = new SP.ClientContext();
var oList = clientContext.get_web().get_lists().getByTitle('NewsItems');
var camlQuery = new SP.CamlQuery();
camlQuery.set_viewXml('<View><Query><Where><Neq><FieldRef Name=\'Deleted\' /><Value Type=\'Integer\'>1</Value></Neq></Where><OrderBy><FieldRef Name=\'Created\' Ascending=\'FALSE\'/></OrderBy></Query><RowLimit>10</RowLimit><ViewFields><FieldRef
Name=\'Title\'/><FieldRef Name=\'Link\'/><FieldRef Name=\'Description\'/><FieldRef Name=\'PubDate\'/><FieldRef Name=\'Source\'/><FieldRef Name=\'Topics\'/><FieldRef Name=\'ImageTag\'/><FieldRef Name=\'ImageSource\'/><FieldRef
Name=\'Created\'/></ViewFields></View>');
this.collListItem = oList.getItems(camlQuery);
clientContext.load(collListItem, 'Include(Title, Link, Description, PubDate, Source, Topics, ImageTag, ImageSource, Created)');
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
I tried ordering my ID, Created or Created_x0020_Date, and none of it changes the output at all.
As a related question, how do I debug this CAML query? Are there any tools?Hi,
Please change the CAML query as below:
<where><neq><fieldref name=\'Deleted\' /><value type=\'Number\'>1</value></neq></where>
The following code for your reference:
string siteURL = "http://siteURL/";
string listName = "CustomList";
ClientContext context = new ClientContext(siteURL);
//specific user
NetworkCredential credentials = new NetworkCredential("username", "password", "domain");
context.Credentials = credentials;
List oList = context.Web.Lists.GetByTitle(listName);
CamlQuery camlQuery = new CamlQuery();
camlQuery.ViewXml = "<view><query><where><neq><fieldref name=\'Deleted\' /><value type=\'Number\'>1</value></neq></where><orderby><fieldref name=\'Created\' ascending=\'False\' /></orderby></query><rowlimit>10</rowlimit></view>";
ListItemCollection collListItem = oList.GetItems(camlQuery);
context.Load(collListItem);
context.ExecuteQuery();
foreach (ListItem oListItem in collListItem)
Console.WriteLine("ID: {0}", oListItem.Id);
If the issue still exists, please check the "Deleted" field type.
Here is a CAML query tool for your reference.
http://spcamlqueryhelper.codeplex.com/
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support -
Dynamic Population of List Item Not Working
My requirement is to have 1 list item that is populated based on the value selected for a second list item. in the when-list-changed trigger of the second list item, i make a call to a procedure (code below). This seems to not like any of the clear_list or populate_list. the list item type is poplist. i set the class to list. if i use populate_list in when-new-form-instance, there's no problem. PLEASE HELP. When can't I populate list using a procedure??
ERROR: frm-40734 internal error pl sql error occurred
PROCEDURE Refresh_List IS
v_rg_name VARCHAR2(40) := 'RGTEST';
v_rg_id RecordGroup;
v_sql varchar2(2048);
problem EXCEPTION;
status number;
list_id item;
BEGIN
list_id := Find_Item('BLK_TEST.LST_TEST');
v_sql:='select column_name from sys.all_tab_columns where table_name=''testtable''';
v_rg_id := Find_Group( v_rg_name );
IF Not Id_Null(v_rg_id) THEN
DELETE_GROUP( v_rg_id ) ;
End if;
clear_list(list_id);
v_rg_id := Create_Group_From_Query( v_rg_name, v_sql ) ;
status := Populate_Group( v_rg_name );
POPULATE_LIST(list_id, v_rg_id);
POPULATE_LIST('BLK_TEST.LST_TEST', 'RGTEST'); also tried this.
if status <> 0 then
raise problem;
end if;
EXCEPTION
WHEN problem THEN
message('problem.');
WHEN others THEN
message('tooto');
END;Thanks for the response. I've tried this example too and it still doesn't like the things mentioned in previous post. In addition, it doesn't like SET_RECORD_PROPERTY(:system.cursor_record,'EMP',status,new_status); I get the same sort of error. The form compiles fine though.
Background on form:
this form was created to allow users to dynamically build an update statement. On this form are a number of list items and text boxes that are not populated from a database. So the datablock doesn't retrieve values from the database and the only updating that will be done is when the user clicks an "update" button to execute the sql statement that is built. Could this issue I'm having be related to the way i designed my datablock and items? When the user selects an item from one of the list items, the record status goes to "Changed". So I assumed my issue was because of this and thought the set_record_property statement would help...but that is generating the same error. what am i missing? if i look at the index value of the record group after create_group_from_query, it is -1. after populate_group, it is still -1. should it still be -1?? any help is greatly appreciated. -
Defaulting query to SAP LIST VIWER not working! Please help!
Hello everyone:
I have some query's created in old version (4.6C) and we upgraded to ECC6.0. When you go to "SQ01"-Display you will see query properties and display is defaulted to "SAP list viewer". This works fine in older version but in newer version the query returns blank report!!! When I go to paramters selection page it does not show the options to select different outputs!! When I change it to ABAP LIST VIEWER in the properties and run the query, it works fine and also on the parameters selection page it shows th options for other displays! If I select "SAP LIST VIEWER" here it works fine!! Only when it is defaulted to "SAP LIST VIEWER" the query does not return anything! Did anyone face this problem before in newer version (ECC6.0)? Please give me any information you have. I will reward all the answers.
Thanks.
MithunHi Mithun,
This is happening because SAP has changed the approach of creating the standard program based on the selection of output type.
Now SAP calls a FM when you select SAP list viewer in the query.
If you see the code generated when you choose different output type you will understand why it is happening.
So it is better to select the output type as ABAP LIST VIEWER and then only change the output at the time of execution if required.
Reward points if useful.
Regards,
Atish -
People Search on list items - not working on metadata property 'OrgNames'
Hi all,
To be able to search AD Contact in people search (NOT AD Accounts, AD Contacts), I've exported this AD contacts into a SharePoint list and added this list to the scope used by my people search and finally configured the metadata properties. I've followed
this article : http://johnliu.net/blog/2012/9/25/sharepoint-showing-contacts-in-people-search-results.html
All is working fine, except when I want to search on the company name of the contacts. I've edited the property name OrgNames to link it to my list column. I can see this company name into the search result, but when I want to perform a search based on the
company name, I got no result. The search is working fine on the name or on the jobtitle.
Does anyone have an idea about the mistake ?
Thanks & Regards,
SteveHi Steve,
I recommend to check the things below:
Check the Advanced settings of the contact list, make sure that Allow items from this list to appear in search results is Yes.
Check the Content Source that the Start Address is including the contact list in Search Service Application.
Click Index Reset and then do a full crawl in Search Service Application to see if the issue still occurs.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
SCSM's Allowed List for SCOM CI Connector not working as expected
Hi Everyone,
We're running into some unexpected behavior with the SCOM CI Connector, wondering if anyone can shed some light on it. Our requirement is to ensure Distributed Applications are not sync'd from SCOM to SCSM (hence, they don't show up in the "All
Business Services" view). We have only two MPs in SCOM/SCSM that sync Distributed Applications, both of which are for SharePoint monitoring.
We have the 2 SharePoint MP's in both SCSM and SCOM. We've configured the SCOM CI Connector to select the 2 SharePoint MP's for synchronization.
Now, we thought all we'd need to do to ensure the SharePoint Distributed Applications no longer sync from SCOM to SCSM is remove the "System.Service" class from the Allowed List of classes for SCOM CI -- which we did, however, they continue to
sync.
After a fair amount of back and forth trying to figure out how we need to configure the Allowed List of classes for the SCOM CI Connector to ensure the DA's aren't sync'd any more, we finally removed ALL classes from the Allowed List. Surely, this
will stop the sync we thought -- however, after having deleted the SharePoint Business Service CI's, removing ALL classes from the Allowed List, and then rerunning the SCOM CI Connector, the Distributed Applications associated with the SharePoint MP's STILL
come over.
Is there something I'm missing here?
Thanks!Hi -- can anyone provide any feedback for me on this one?
Thanks! -
CAML Query for Large List.
Hi All,
I am having list in which there are more 60000 items in to it. Can you guys please help me out that what is the best practice to execute query on such large list ?
Is it a good way to increase thresold limit ? I don't think so. What else I can do ?
Any idea ? Please suggest.
Thanks in advance.Hi Jaydeep,
I'hv updated my code as per your link described : but still its showing an error. Below I am pasting my source code.
Below is my code :
SPList list = spWeb.Lists.TryGetList("ListName");
SPQuery query = new SPQuery();
//query.QueryThrottleMode = SPQueryThrottleOption.Override;
query.Query = @"<Where>
<Eq>
<FieldRef Name='TCode' />
<Value Type='Text'>" + tcode + @"</Value>
</Eq>
</Where>";
query.ViewAttributes = "Scope=\"Recursive\"";
query.RowLimit = 200;
do
SPListItemCollection itemCollcetion = list.GetItems(query);
foreach (SPListItem item in itemCollcetion)
if (!tRoles.Contains(item["Title"].ToString()))
tRoles.Add(item["Title"].ToString());
query.ListItemCollectionPosition = itemCollcetion.ListItemCollectionPosition;
} while (query.ListItemCollectionPosition != null);
Limit it set to 10000 records and my list is having 13000 records. Above code executes under run with elevated previliges.
Any suggestions ?
Thanks in advance. -
I have created a button (via Content Editor) that uses JavaScript to open the Attachments folder of a list item in the Explorer Window in SharePoint 2010. The purpose is to have drag and drop functionality for each list item, having multiple attachments.
The button works but opens the "Attachments" folder containing all of the other folders for each list item (one folder per item). It seems that when you add an attachment to a list item, SharePoint numbers the folder based on the item's ID. What
I'm trying to do is take the JavaScript I have and have it run when a button is clicked in a custom form. When it runs, I'm trying to get it to open the "specific" folder for the list item. I have had success creating a hyperlink in the list that
does this; however, the link WILL NOT work until I use the Content Editor created button that runs JavaScript, that prompts me to click OK to my profile certificate, and then opens the Attachment folder. After that occurs, I can use my hyperlinks without issue
because I'm no longer prompted to click OK for my cert.
So I'm trying to take the JavaScript I have and place it in a list item form (custom form) and have it run when a form button is clicked. The problem is I have very little knowledge of JavaScript (did I mention little?) and
"don't know how to take the "http:" address I have in the script and append to it the list item ID, according to the record I have open."
So that for any record I open, the script will grab the corresponding record ID (or list item ID) and append it.
Here's the script I'm working with (which I didn't create but am grateful for):
<style>
.httpFolder {behavior:url(#default#httpFolder);}
</style>
<script text = "javascript">
function fnOpenFolderView(){
oDAV.navigateFrame("https://server/collection/site/subsite/Lists/Sublist/Attachments","_self");
</script>
<div id = "oDAV" class = "httpFolder"/>
<input type = "button" value = "Open Attachment Folder" onclick = "fnOpenFolderView()"/>
The above script, in the Content Editor, creates a button that opens the Attachments folder for the corresponding SharePoint list.
JackSki123Hello Thriggle,
Thank you for pointing that out. I appended your "GetUrlKeyValue" to the end and it worked. That said, I noticed it doesn't run as smoothly as when I simply click on the Content Editor button I created that resides on the SharePoint List
ASPX page (not the form). The Content Editor button has the same code, minus the "GetUrlKeyValue". I click it; I get prompted to choose my cert; it opens right up.
Now go to the ASPX Display form where I dump the code in a table cell. Button appears in cell; I click it; wait; wait; I get prompted for cert; it opens. Do I need some sort of "throttle" for the JavaScript? For instance, I thought before running
JavaScript, you reference the library first. This code doesn't do that. I'm wondering if there's something more I need to make this run smoothly. Thank you both for getting me this far.
JackSki123 -
Site list update not working with TED and Zenworks for Servers
Product: Zenworks for Desktops 7Sp1 and Zenworks For Server/TED 7Sp1HP5
Subject: Site list update not working with TED and Zenworks for Servers ,
all on Linux
Description: We have an exiting environment with 6 ZfS Servers and now we
brought up a new Server for another location. I configured all same as on
the other Server and the new one created all NAL-Apps at the new location.
But in the Application Site list on the golden App is this Application
missing. So I clicked on the Link up site list on the Distribution Screen
in C1. On ApplicationSite list the App from the new location is missing.
So I removed all and added the new from the new location and now i see all
in the application site list.When I install an app on the client on the
new location NAL is connecting alway th the same (wrong location-server
and i get an msi error 1612 or id=53272 with path=\Wrong serverpath to
file.
I looked on the other tab on C1 at the golden app an I see the backlinks
are going to all other servers without the new one. Software installation
on other locations are ok
RegardsAndreas,
I forgot to mention that you can also set the loging level on the Distributor and the Subscriber to 6. to do this at the Zenworks Server Management prompt type "setconsolelevel 6" if you want to capture this to the log file ted.log then use "setfilelevel 6"
Next delete the Distribution from the Subscriber and then re-push the channel.
What we are looking for here in the log is the creation of the object and the linking information about the gold object. it should look like this (not the failure part ;-))) )
In this excerpt you will see the entry
Golden App =
This should be were the link is to
You can check this both ways in the Golden App and in the Distributed Application.
Here is a log from me that shows this info as an example of what you should be looking for.
2008.05.29 03:35:41 [TED:Work Order In(yourserver.yes.com)] Receiving distribution: Creating new application failed,
Subscriber Tree Name= YOUR-TREE,
Subscriber DN = SUBSCRIBER_YOURSERVER.BRN.FL.SUBS.SUBSCRIBERS.ZSM. GRS.CBH,
Golden App = SCRIPT-MS-HOTFIX.APP.BRN.ZENGOLD.GRS.CBH,
Attempted AppName = SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH,
error message: Failed creating SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH. With error message: Setting the trustee for BRN.HAVERHI.PALM.FL.CBH on the file "VOL1:\ZEN\UTILS" failed. Look in subscriber log file for more details..
2008.05.29 03:35:41 [TED:Event Processing] Handle Event: Work order IN completed... Creating new application failed,
Subscriber Tree Name= YOUR-TREE,
Subscriber DN = SUBSCRIBER_HAVERHI-FLBRN1.BRN.FL.SUBS.SUBSCRIBERS.ZSM.GRS.CBH,
Golden App = SCRIPT-MS-HOTFIX.APP.BRN.ZENGOLD.GRS.CBH,
Attempted AppName = SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH,
error message: Failed creating SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH. With error message: Setting the trustee for BRN.HAVERHI.PALM.FL.CBH on the file "VOL1:\ZEN\UTILS" failed. Look in subscriber log file for more details..
2008.05.29 03:35:41 [TED:Event Processing] Received (from haverhi-flbrn1.yesbank.com) Creating new application failed,
Subscriber Tree Name= YOUR-TREE,
Subscriber DN = SUBSCRIBER_HAVERHI-FLBRN1.BRN.FL.SUBS.SUBSCRIBERS.ZSM.GRS.CBH,
Golden App = SCRIPT-MS-HOTFIX.APP.BRN.ZENGOLD.GRS.CBH,
Attempted AppName = SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH,
error message: Failed creating SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH. With error message: Setting the trustee for BRN.HAVERHI.PALM.FL.CBH on the file "VOL1:\ZEN\UTILS" failed. Look in subscriber log file for more details.. -
Where used list is not working for IMG nodes/Document in solar01
hi experts
In template project , we are using same IMG objects in different business processes and subsequent configuration document is attached to each IMG node in configuration tab. ( like same IMG node - define order types used in different business process configuration tab )
when i use " where used list " from the configuration tab , its not showing the IMG objects used in different business processes in the same project. whereas its showing the IMG nodes used in the different project.
I need to find out the same IMG objects/ document used in the same project using the " Where used list " button.
Please provide your answers
Note : we have linked one configuration document to same IMG nodes used in different business. " where used list " also not working for documents as well
Thanks
Sol manHello there,
I just tried some tests and couldn't face any problem with locating other usages for the objects in configuration tab.
You mentioned a configuration document, so have in mind that the document usage will only be considered if it is a link to the same document and not just a copy.
e.g:
Here I created a document in this node:
Then I added it as a link here:
and as a copy here:
When I go back to the original node and use the where-used, it'll only show the original and the link:
This happens because after copying a document, it is considered as a new one instead of another usage of the original one.
best regards,
Fabricius -
Select list pagination not working for big tables
Hi,
i am trying to view a table with large amount of data using tabular form. the pagination using select list is not working in this page. i have selected select list kind of pagination but it is showing "row range 1-15 16-30(with set pagination)' type of pagination. when i lowered the amount of data in the table the pagination type will automatically change to select list pagination. could you please tell me why this happens and any possible work around if any.
Thanks,
JoHi Jo,
I don't know what you call a large amount of records, but the effect you describe might be intentional by apex.
The select list pagination would generate a selection tag with (number of records in table/15) options in your page HTML.
Although there isn't a hard limit to the number of options a select list can have there certainly is a limit to what your browser/pc can render.
Think about it
Let's say you table contains a million rows. this would result to a select list with 66666 options. Which your browser won't handle :)
I very possible the apex team resolved this by simply reverting to row range pagination when the number of select options would grow to large.
Geert -
How to write json body for multiple list items to write in a list.
Hi,
I am trying to create list items using REST API, and I am reading the data from Sales force and writing it to the list. For wring sigle item its working fine, but if i am trying to insert multiple data to the list using rest API I am getting bad server requesrt
status code as 400.
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(args[0] + "/_api/web/lists/GetByTitle('Contacts')/items");
request.Method = "POST";
request.Accept = "application/json;odata=verbose";
request.ContentType = "application/json;odata=verbose";
request.Headers.Add("X-RequestDigest: " + requestDigest);
request.Headers.Add("Cookie: " + cookies);
string body = "{ '__metadata': { 'type': 'SP.Data.ContactsListItem' }, 'Title': 'Ravish', 'FirstName': 'Verma'}";
byte[] buf = Encoding.UTF8.GetBytes(body);
request.ContentLength = buf.Length;
request.GetRequestStream().Write(buf, 0, buf.Length);
var response = (HttpWebResponse)request.GetResponse();
In the above code highlighted, line of code works fine, for single item, but if I am giving string values as
string body = "{ '__metadata': { 'type': 'SP.Data.ContactsListItem' }, [{'Title': 'Ravish', 'FirstName': 'Verma'},{'Title': 'Verma', 'FirstName': 'Ravish'}]}";
string body = "{ '__metadata': { 'type': 'SP.Data.ContactsListItem' }, [{'Title': 'Amireddy', 'FirstName': 'Kishore'},{'Title': 'Amireddy', 'FirstName': 'Kishore'}]}";
string test = "{ '__metadata': { 'type': 'SP.Data.ContactsListItem' }, 'Title': 'Amireddy', 'FirstName': 'Kishore'}";
string body = "{ '__metadata': { 'type': 'SP.Data.ContactsListItem' }, 'Title': 'Ravish', 'FirstName': 'Verma'}";
All the above format give bad server request.
if any one has the idea to send multiple items in the request body, please provide me the sample code.
Thanks in Advance.The SharePoint 2013 REST API does not support "batch" or multiple inserts in one call at this time.
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer
Maybe you are looking for
-
Problem calling more than one instance of a dll from TestStand
Hi, I've posted this message in the LabWindows forum a few days ago and haven't gotten any answer. I have made a DLL with the evaluation version of LabWindows 7.1 to connect to a Telnet server and perform various commands. This DLL is used with TestS
-
Full Freight Cost payment to Vendor irrespective of GRN Quantity.
Hi MM Gurus, I have a requirement where our client have to pay to Vendor for Frieght Value in the first bill (Vendor send many bills based on the GRN quantities) only irrespective of the GRN Quantity. E.g I have a PO of 100 Qty and the Frieght condit
-
Poulate the header levels fields in Content Conversion in receiver FAdapter
Hi All, I have req in that there is table stucture , this table strcture I want to populate the header level and item level also at receiver side. I am using Content Conversion at receiver side. the data is like this at header level Country City
-
Hi, could anyone please advise which version of acrobat allows you to take video from a digital camcorder and create a pdf from it? Thanks.
-
I phone is not appearing in i tunes
i m going to update my i phone 3g with i tunes but it is not appearing in i tunes. what should i do?plz help me.