Cascading Drop Down in SP 2013
I am trying to use SPCD (http://spcd.codeplex.com/)
in my SP 2013 site.But it is not working.
I have a list "Process Area" which has just one column.
Second list is "Sub Process Area" which has two columns- SubProcess area and Process Area.Process Area column is a look up column from list 1.
Then I have a document library which has multiple columns out of which one column has a look up to list 1-Process Area and another to list-2-Sub Process Area.
I want to filter the sub process areas in the edit form of the doc library based upon the process area I select.
I have uploaded the java script files and written the script in a content editor webpart.
I can see when the page loads, a call is going to the java script file.I tested it with an alert message.
However the sub process area drop down is populated with all the values instead of just filtered values.Also whenever I select any other value from Process Area drop down, there is no event fired.
Please advice, how I can use this in SP 2013.I have a limitation.I can not use Infopath or SPD. So have to do it using Java script/jquery through content editor webpart.
Thanks, Bivsworld
Hi,
I have configured as per the steps given.But while editing any document property, I am getting below error.
My javascript is as below which I have added through a CEWP to the edit form of the document library.
<script src="<<relative path>>/jquery-1.10.2.min.js" type="text/javascript" language="javascript"></script>
<script src="<<relative path>>/jquery.SPServices-0.7.2.min.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$().SPServices.SPCascadeDropdowns({
relationshipList: "Process Area Mapping",
relationshipListParentColumn: "Process_x0020_Area",
relationshipListChildColumn: "Sub_x0020_Process_x0020_Area",
CAMLQuery: "<Eq><FieldRef Name='Status'/><Value Type='Text'>Active</Value></Eq>", parentColumn: "Process_Area",
childColumn: "Process_Sub_Area",
debug: true
</script>
I have tested the case with relationship list GUID, but I got the same error.
Could you be able to help me in this.
Thanks, Bivsworld
Similar Messages
-
Using the Current Function in a repeating table with cascading drop-downs
I have a Repeating Table where a customer can choose the values for three cascading drop-downs. I then want the member to start a new entry with the same cascading drop-downs but with different results based on their most current input not
based on all their input throughout the form. I also do not want the current input to affect previous inputs replacing what was already entered.
Please assist.
-Ben
Hi,
Based on your description, you don't want to meet the following issues:
The first row returns back all the data from the list up to the value selected.
Any new item added, replaces the value in the other items.
Here is an article about InfoPath Repeating Table Lookup control on SharePoint List, refer to it:
http://www.sumitrawat.net/2009/10/infopath-repeating-table-lookup-control.html
Besides, here is a similar post, you can use as a reference:
https://social.msdn.microsoft.com/Forums/office/en-US/43253974-990d-4307-bf54-cc615618362a/issue-with-cascading-dropdown-in-a-repeating-table
Best Regards,
Lisa Chen
Lisa Chen
TechNet Community Support -
SharePoint Hosted App - Creating cascaded drop down on hosted web lists
Hi,
I have created an SharePoint Hosted App(Javascript Object Model) that creates lists on the host web.
I need to put some javascript into new and edit forms in order to create the cascaded drop down effect on 2 lookup fields.
Can you please give me some advise?
Regards,
MarianHope below article should help you
http://blog.pentalogic.net/2010/11/editing-the-sharepoint-list-item-menu-part-2-using-javascript/
http://www.getinthesky.com/2014/03/hide-text-field-sharepoint-form-using-jquery/
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/030471b2-d19a-470f-9a9e-0fd8a229138b/how-do-i-create-a-new-item-form-that-allows-to-save-and-continue-editing?forum=sharepointcustomizationlegacy -
hi,
how to create cascading drop downs in vc
i have two queries each providing data to their respective drop down.
drop down 1 - material group
drop down 2 - material number
when i select value in drop down 1 i want to filter drop down 2
i want to see material numbers of selected material group.
how to get this.
please suggest me.
Edited by: venkat s on Jan 29, 2008 2:44 PMOK - this is a real puzzle. I have a model with dropdown #1 and #2 in separate views where the content of #2 is filtered by #1.
The deployed runtime version of this model actually work as desired. #2 is reset to default for every new value chosen in #1.
Then, I've made changes to the model, and suddenly #2 behaves as you described - keeping the last value chosen and not returning to default - unless application is reloaded.
So, I've gone back to an older version and tried to duplicate the #2 drop down with exactly the same values, and here is the strange part: the two drop downs behave differently in the same model.
The only thing I have found is related to Prashant's wizard tip: at one stage in development my model had two layers. If I open this model version and take away all layers completely the #2 drop down looses it's desired behaviour. I have therefore kept one layer with all model forms and tables, removed all wizard navigation so the application looks like it's not using layers at all.
The strangest thing though is that if I add a duplicate #2 again in this layer-model it won't work as the original. I simply cannot find a logical answer to this problem now. When I do, I will update.
Another thing: For the #2 drop down that works as desired I cannot see the entry list configuration anymore. I originally chose a dynamic list type, but when I open it now it's showing the global variant with no global list defined! (this must be a bug as if I don't touch this config it still running as a dynamic list when deployed).
If you (or anyone) solve it first, please tell us!
Henning Strand
Edited by: Henning Strand on Jan 30, 2008 11:13 AM -
Cascading drop-down from spreadsheet
Hello,
I need some assistance, I am creating a SP but I need to do a look up or cascading drop down using information from a spreadsheet from InfoPath.
Can anyone guide me? All I can find info about is for cascading from a list, but it is a spread sheet
Any tutorial or forum?
Thanks,Hi,
In addition to Hemendra’s suggestion, you can take a look at the link below about how to access Excel file which stores in a SharePoint Library using Excel Web Service with
jQuery:
http://martinezdeveloper.blogspot.jp/2011/07/sharepoint-2010-excel-rest-api-and.html
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
Can cascading drop down menus be created in Acrobat XI Pro? If so, how?
Yes with JavaScript and popUpMenu method.
-
Hi,
I want to create a cascading drop down. The view object for the drop down contains two bind variables. In the JHeadstart application definition I fill one bind variabele with text (this is for finding the correct domain in the underlying table) and one with an unchangable item of the master screen. This item is always filled and is already filled while entering the screen.
This drop down works fine in one application module, but if I create the same domain in another application module on both places this isn't working anymore. Of course the name of the item that I bind is changed for the second application module. Both application modules are children of one top application module which contains the view object for the drop down.
I allready tried if I create several view object instances on the child application module level but this also does not work.
What am I doing wrong (I followed the steps creating cascading drop down lists in the JHeadstart guide).
MarianneAlso this problem did arrise because the domain names in the application definitions are not unique over the application modules.
-
Creating cascading drop down boxes in SharePoint 2010 using one list
We have a support request form tied to a list that end users input data into which when submitted sends out an email.
Is it possible to create a drop down box on the form that limits the choices in the "subcategory" column, based on what is chosen in the "category" column.
For instance in the category column we have SharePoint, Oracle, and Web Tools as choices.
In the subcategory column we have items related to each category. We only want items that are related to the selected choice to appear in the subcategory drop down box.
I see examples in InfoPath using "Multiple Lists" (one list for city, one for state, etc), but nothing using the same list. I would rather not use multiple lists if possible.
Anyone have any ideas? Thanks.Hi,
According to your post, you want to create a cascading drop-down list box using one list.
To achieve what you want, we can:
Create two fields(category and subcategory) in drop-down list box type in the form in InfoPath.
Add the list which contains the values of the category and subcategory columns to the form as an external data.
Right click the category field, click Drop-Down List Box Properties, and choose Get choices from an external data source.
Choose the list added in step2 in Data source, click XPath behind Entries, click the category column in the list, select Show only entries with unique display names.
Right click the subcategory field, click Drop-Down List Box Properties, and choose Get choices from an external data source.
Choose the list added in step2 in Data source, click XPath behind Entries, click the subcategory column in the list, then click Filter Data.
Click Add, select the category column in the list in the first box, select is equal to in the second box, choose select a field or group in the third box, then choose Main in the Fields and select the category field in the form.
Click OK.
Best regards.
Thanks -
Need cascading drop downs based on non hierarchial attributes
Post Author: Out of the box thinking
CA Forum: WebIntelligence Reporting
Using BO XI Web Intelligence. I am trying to create multiple dropdowns to dictate the data input for a report. The drop downs should include attribute values for products. (EG: Color, Size, Flavor, Brand etc) these attributes do not follow a structured hierarchy and does not have a parent to child relationship. I am trying to dictate the values that should be shown in all dropdowns based on the value selected in any drop down. For example, if the user selects "Red" from the "color" drop down, Brand dropdown content should only include those brands that have "Red" products. Similarly, "Flavor" dropdown should only show the flavors that has "Red" products. These dropdowns should not be in the report body. They should be in the left hand user control menu.
Is this something already available? If not, any work arounds?
I appreciate any inputs.Hi,
First of all: if I understand you correctly, you do want your checkbox value to be available within the view object. If so, you need to make it a transient attribute of your VO and your checkbox must be databound to that attribute (you were talking about a non-databound item). Whether the item relates to anything in the database is irrelevant from a JHeadstart point of view.
Your second question is actually an ADF related question, it has nothing to do with JHeadstart. In general I would say that you either update View Object attributes immediately when the flag is changed, or you do it in the Entity itself at Commit-time. What you are suggesting seems like an area for architectural improvement.
Regards
Evert-Jan de Bruin
JHeadstart Team -
Hi,
I am working on a custom form and am quite new to Livecycle.
I would like to do something basic such as
country drop down (populated from an xml file)
province / state drop down (populated from xml file).
I was able to populate the country but am unsure how to proceed so that the province/state drop down is dynamically populated from an xml file as well.
Cheers
HenrySure here is a sample.
country.xml is
<CountryList>
<Country>
<Name>CANANDA</Name>
<Code>CAN</Code>
</Country>
<Country>
<Name>United States of America </Name>
<Code>USA</Code>
</Country>
</CountryList>
province.xml is
<StateList>
<State>
<Name>Ontario</Name>
<Code>CAN</Code>
</State>
<State>
<Name>Quebec </Name>
<Code>CAN</Code>
</State>
<State>
<Name>Oregon</Name>
<Code>USA</Code>
</State>
<State>
<Name>New york</Name>
<Code>USA</Code>
</State>
</StateList> -
Hello Everyone
I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
Thanks
Ramanjulu Naidu NHey Ramanjulu,
Take a look at the below article which I believe will answer your question.
http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
Daniel Christian (MCTS) -
Cascading Select Statements - problem with blank drop-downs
Hello,
I have posted a number of questions about Cascading Select Statements in APEX and though I've received some good information, I still get a blank drop-down when I select the first LOV.
I also found "How to test an On-Demand Process used for AJAX" on the web. Here is the link to the web page:
http://www.inside-oracle-apex.com/2006/12/how-to-test-on-demand-process.html
When I try to test the ON-DEMAND Application Process in the Address Bar of my browser by typing the following, I get an error:
http://beta.biztech.net:2020/pls/apex/f?p=4000:0:211233229176642:APPLICATION_PROCESS=CASCADING_SELECT_LIST:::P6_PROJECT_ID:CASCADING_SELECTLIST_ITEM_1
The error I get is:
Unexpected error, unable to find item name at application or page level.
ERR-1002 Unable to find item ID for item "P6_PROJECT_ID" in application "4000".
As perhaps a last ditch effort, I will post all the steps, all the code and a link to my application.
Here is a link you can visit to view my application:
http://beta.biztech.net:2020/pls/apex/f?p=112:1
You can log in with the following ID and Password
ID: tsimkiss
PW: TS92
Here are the steps that I have followed and the code that I have used.
++++++++++++++++++++++++++++++++++++++++++++++++++
1. Create an application process in Shared Components
- On Demand CASCADING_SELECT_LIST - like this:
Process Point: On Demand
Name: CASCADING_SELECT_LIST
TYPE: PL/SQL Anonymous Block
BEGIN
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<select>');
HTP.prn ('<option value="' || 1 || '">' || '- select tasks -' || '</option>');
FOR c IN (SELECT newops.task_name AS task_name,
newops.task_id AS task_id
FROM NEW_OPPORTUNITIES newops
UNION
SELECT DISTINCT pt.task_name AS task_name,
pt.task_id AS task_id
FROM pa_tasks@bizdev pt,
pa.pa_projects_all@bizdev prj
WHERE prj.project_id = pt.project_id
AND prj.project_id =
CASE
WHEN TO_NUMBER(:cascading_selectlist_item_1)=1
THEN prj.project_id
ELSE TO_NUMBER(:cascading_selectlist_item_1)
END)
LOOP
HTP.prn ('<option value="' || c.task_id || '">' || c.task_name || '</option>');
END LOOP;
HTP.prn ('</select>');
END;
2. Create an application item in Shared Components:
Name: CASCADING_SELECTLIST_ITEM_1
3. Create an LOV in Shared Components
- This is the Primary LOV (name it similar to it's select list page item):
List of Values Name: PROJECT_ID
Source: Lists of Values Query
SELECT newops.CLIENT AS project_name, newops.PROJECT_ID AS project_id FROM NEW_OPPORTUNITIES newops
UNION
SELECT ppa.NAME AS project_name, ppa.PROJECT_ID AS project_id FROM pa.pa_projects_all@bizdev ppa
WHERE ppa.project_status_code='APPROVED'
AND (ppa.COMPLETION_DATE IS NULL or ppa.completion_date > sysdate)
AND (ppa.CLOSED_DATE IS NULL or ppa.closed_date > sysdate)
ORDER BY project_name asc
4. Create a javascript and put it in the header of the page where cascading drop-downs are:
<script>
function get_select_list_xml(pThis,pSelect){
var l_Return = null;
var l_Select = html_GetElement(pSelect);
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=CASCADING_SELECT_LIST',0);
get.add('CASCADING_SELECTLIST_ITEM_1',pThis.value);
gReturn = get.get('XML');
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue)
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script>
5. Create two Select List page items:
P6_PROJECT_ID <-- This is the primary drop-down
P6_TASK_ID <-- This is the secondary drop-down
6. In your primary select list, put the following into HTML Form Element Attributes:
HTML Form Element Attributes: onchange="get_select_list_xml(this,'P6_TASK_ID')"
Other settings on the page:
Name: P6_PROJECT_ID
Display As: Select List
Source Used: Always, replacing any existing values in session state
Source Type: Database Column
Source value or expression: PROJECT_ID
Named LOV: PROJECT_ID <--- Choose from drop-down (this is the Application LOV created earlier)
Null display values: - select project -
Display Null: Yes
7. The second select list is based on an LOV and depends on the value of the first select list:
Name: P6_TASK_ID
Display As: Select List
Source Used: Always, replacing any existing values in session state
Source Type: Database Column
Source value or expression: TASK_ID
Null display values: - select project -
Display Null: Yes
List of values definition:
SELECT newops.task_name AS task_name,
newops.task_id AS task_id
FROM NEW_OPPORTUNITIES newops
UNION
SELECT DISTINCT pt.task_name AS task_name,
pt.task_id AS task_id
FROM pa_tasks@bizdev pt,
pa.pa_projects_all@bizdev prj
WHERE prj.project_id=pt.project_id
AND prj.project_id=:P6_PROJECT_ID
ORDER BY task_name asc
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
If you need an actual running copy of my application, I'm not sure I can upload to the Oracle APEX website since uses datalinks to some tables. If necessary, I will give you my login into if you email me directly, however.
If someone could just straighten my code out especially on the ON-DEMAND Application Process, I think that would really help me out.
Hope someone out there can help me.
Thanks
LEHSorry, looking at your code that testing URL is still incorrect. You should be passing name / value pairs in the last arguments, and your passing P6_PROJECT_ID as the name part and CASCADING_SELECTLIST_1 as the value part. In your application process you are using CASCADING_SELECTLIST_1 as the parent ID for the P6_TASK_ID dropdown, so it is this name / value pair that you'll need to test. So your URL should look something like this...
http://beta.biztech.net:2020/pls/apex/f?p=112:0:211233229176642:APPLICATION_PROCESS=CASCADING_SELECT_LIST:::CASCADING_SELECTLIST_ITEM_1:[some project id]
(Note: Where [some project id] should be an ID for a project in your database, that has tasks.)
And I'm with Dan here, I still can't access that link you provided. apex.oracle.com should be your next move if you can't resolve it, as you've got at least two people willing to go and have a look at your code.
Hope it helps,
Anthony. -
Cascading lists drop downs in SharePoint Designer (no server-side code) without postback
I've created cascading drop downs populated from SharePoint lists, by following
this post by Lars in SharePoint designer without using code, it works fine, my issue is that the secondary drop down only populates if the main drop down causes auto-post-back, is there any way to make the secondary drop down populate without causing
post back and without using server-side code?
Since you are using the ASP:DropDownList, you will need the post-back since it's a server-side control that doesn't use a callback. The following JavaScript library provides for a way to creating cascading dropdowns on the client-side,
http://spservices.codeplex.com/wikipage?title=%24().SPServices.SPCascadeDropdowns
Dimitri Ayrapetov (MCSE: SharePoint) -
A custom view in the Edit drop-down
Hi,
How could I create a custom view and add it to the Edit List Item drop-down in SharePoint 2013? This screenshot shows what I mean in SharePoint 2010:
I'd like to have a menu item Custom View below Edit Properties in the drop-down list. When the user clicks the item I'd like to redirect to my layout page.
Thanks,
Leszek
Wiki: wbswiki.comHi ata6502:
Adding a user custom action for list items
using System;
using Microsoft.SharePoint.Client;
namespace Microsoft.SDK.SharePointServices.Samples
class CreateUserCustomActionList
static void Main()
string urlWebsite = "http://MyServer/sites/MySiteCollection";
ClientContext clientContext = new ClientContext(urlWebsite);
Web oWebsite = clientContext.Web;
List oList = oWebsite.Lists.GetByTitle("My List");
UserCustomActionCollection collUserCustomAction = oList.UserCustomActions;
UserCustomAction oUserCustomAction = collUserCustomAction.Add();
oUserCustomAction.Location = "EditControlBlock";
oUserCustomAction.Sequence = 100;
oUserCustomAction.Title = "My First User Custom Action";
oUserCustomAction.Url = urlWebsite + @"/_layouts/MyPage.aspx";
oUserCustomAction.Update();
clientContext.Load(oList,
list => list.UserCustomActions);
clientContext.ExecuteQuery();
Modifying a user custom action
using System;
using Microsoft.SharePoint.Client;
namespace Microsoft.SDK.SharePointServices.Samples
class ModifyUserCustomAction
static void Main()
string urlWebsite = "http://MyServer/sites/SiteCollection";
ClientContext clientContext = new ClientContext(urlWebsite);
Web oWebsite = clientContext.Web;
List oList = oWebsite.Lists.GetByTitle("My List");
UserCustomActionCollection collUserCustomAction = oList.UserCustomActions;
clientContext.Load(collUserCustomAction,
userCustomActions => userCustomActions.Include(
userCustomAction => userCustomAction.Title));
clientContext.ExecuteQuery();
foreach (UserCustomAction oUserCustomAction in collUserCustomAction)
if (oUserCustomAction.Title == "My First User Custom Action")
oUserCustomAction.ImageUrl = "http://MyServer/_layouts/images/MyIcon.png";
oUserCustomAction.Update();
clientContext.ExecuteQuery(); -
JQuery or Alternative Method to Sort Drop Down Menu
Hi All,
I've developed a form using SharePoint Designer 2010. (We cannot use InfoPath due to licensing issues).
I have used SPServices for cascading functionality for my drop down menus. This works great.
One of my drop down menus is set up to pick up its data from another list. This is my data source. The data source list has the correct order for how I want the dropdown menu to pick up data however the dropdown menu does not pick up the data in this
order.
Is there a simple jQuery or something simple that I can implement to allow me to either sort the dropdown menu Alphabetically or pick up the data source in the order that is displayed.
Regards
SanjayHi,
According to your post, my understanding is that you want to sort Drop Down Menu Alphabetically.
You can use JQuery or SPServices to achieve it.
More information:
Sorting drop-down list with JQuery
Cascading Drop Down Multiple Levels
Using SPFilterDropdown to Reorder Options in a Dropdown on a SharePoint Form
Best Regards,
Linda Li
Linda Li
TechNet Community Support
Maybe you are looking for
-
Readonly table with where clause value from previous page
Hi I am using jdeveloper 10.1.3. I have a globalhome page where the user enteres a reference number. i have a backing bean for the globalhome page that runs a method to run an sql that seraches for this reference number, if the reference number exsit
-
Negative spent budget in table HRPADPM, question ???
Hi HR Experts, We have LTI process happening but somehow we get negative spent budget which is not possible. I checked and found that in the table HRPADPM SAP stored negative amount. What could be the reason for this? Thanks, Duy
-
Each time I start iTunes, it configure again the program.
I'm running iTunes v7.6.2.9 with Windows Vista Ultimate 32bits and SP1. I reinstall iTunes, but it change nothing. Each time I start iTunes, the configure window appear. I also have some problems with QuickTime. When I try to watch a movie, I get thi
-
Can't run Connector, Changes the server name
I am trying to run the Windows 2011 Server Connector on a new PC running 8.1. Never worked with 8.1 before. Connecting on earlier OSs was easy. I am following the same procedure, but the system keeps placing " :65510 " behind the server name. Of cour
-
Hi all, 1 -Does anybody know how can I compress a huge amount of same positions name liked to a OrgUnit. for example, 40 same positions with 40 employees to just one position displaying the employees inside? 2 - If I use the functionality of MyProfil