Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all 25064 articles
Browse latest View live

SP 2013 - Develop a Site Map that is Security Trimmed Dynamically

$
0
0

Hello Community,

I have a customer requirement to create a Site Map landing page that has links that are "dynamically security trimmed".  The links are to different sub-sites, and the security settings, permissions and groups applied to those sites may change over time, but the customer doesn't want to have to constantly change the item level permission settings for each link in the Site Map, this is what I mean by "dynamically security trimmed".

Has anyone ever met this kind of requirement?  If so please provide guidance and code examples.

Thanks!

Tom


Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award - Linked-In - SharePoint Gypsy


I need to get all files and file properties from a document library using javaScript

$
0
0

Below is my code. I am able to get the file name and modified date.. I need to get the files' paths, the modified by field, and files metadata (some of which are lookup fields).

var ListName = 'My Documents';
            var ctx = SP.ClientContext.get_current();
            var list = ctx.get_web().get_lists().getByTitle(ListName);                              
            var caml = SP.CamlQuery.createAllItemsQuery();
            caml.set_viewXml("<View><Query></Query><RowLimit>500</RowLimit></View>");
           allitems = list.getItems(caml);
            ctx.load(allitems);
            
            ctx.executeQueryAsync(Function.createDelegate(this, this.onDocumentsSucceededCallback), Function.createDelegate(this, this.onDocumentsFailedCallback));

function onDocumentsSucceededCallback(sender, args) { 

var ListEnumerator = this.allitems.getEnumerator();

while (ListEnumerator.moveNext()) {
               alert('items are being picked up');
                var listItem = ListEnumerator.get_current();
               //  alert('file name is: '); alert(listItem.get_item().get_file());
               //  var file = listItem.get_file();
                 alert(listItem.get_item('FileLeafRef'));
               // alert(listItem.get_item('Modified'));
              // alert(listItem.get_item('Modified By'));

}
}


faye fouladi


Migrate classic team site to modren communication sites

$
0
0
I have a doubt on migration sites from old team sites to modern communication sites.
in classic team site i have several site pages with web-parts.
now am planning to convert old team site with site pages (including web parts) to new communication sites with site pages (including web parts).  how can i achieve this issue 

Hide the data table column in SPFX react webpart in SharePoint online

$
0
0

I have SPFX react webpart in that i have datatable as shown in below

-----------------------------------------------------------------------------------------------

<div>
<tableclassName="dataTable"id='SpfxDatatableEdit'>
<thead>
<tr>
<th>Delete</th>
<th>Using Organization</th>
<th>Using Sub Organization</th>
<th>Edit</th>
<th>ID</th>
</tr>
</thead>
<tbodyid='SpfxDatatableBodyEdit'>
{this.state.lists&&this.state.lists.map((item,i) => {
return [
<trkey={i}>
<td><IconiconName='Delete'/></td>
<td>{item.usingOrg}<inputtype="text"id="row-1-age"name="row-1-age"value="61"/></td>
<td>{item.usingSubOrg}</td>
<td><IconiconName='SingleColumnEdit'/></td>
<td>{item.ID}</td>
</tr>
];
})}
</tbody>

</table>
</div>

----------------------------------------------------------------------------------------------

I want to hide the ID column in the data table in my SPFX react webpart.

Where can i update the code?

Help! Sharepoint 2010 + UWP

$
0
0

I am just starting out building a new app using the UWP platform which I am really liking so far visually and I ran into a big road block trying to figure out how to get it to connected to a 2010 SharePoint site with a UWP application, all the references I try to pull from nuget don't seem to play nice.

Any help would be greatly appreciated.

Need to create Custom webform in sharepoint

$
0
0

Hi Team,

Need to create custom web page in SharePoint using SharePoint designer. Can you please confirm whether below can be implemented using SharePoint designer.

1. JQUery can be used ?

2. JQGrid with ADD/DELETE/EDIT/EXPORT/IMPORT can be implemented inside SharePoint designer ?

3. I don't want to create any new DB to store the data. Is it possible to insert the data to same SharePoint DB ? If yes how I can get the DB connection string of the same SharePoint ?

Thanks..

Couldn't Open the Workbook The workbook cannot be opened

$
0
0

Hi Team,

We are not able to open excel from work book in SharePoint. Error :Couldn't Open the Workbook The workbook cannot be opened

The site collection is migrated from 2010 to 2013 farm, But its kept in 2010 mode.

Excel service application is already configured for 2013 farm.

Issue exist only for 2010 mode sites.

Can you please help ASAP.

Regards,

Ullas C

File Upload in SharePoint Online Library and Get the URL

$
0
0

HI All ,

I want to upload the file in SharePoint Online Library and get the URL of the uploaded file .

I want to use it ith CSOM .

Regards,

KBDotnet


How to setup icons in Sharepoint online (O365)

$
0
0

Hello All

I have set up a column with three statuses: "Good", "Action Needed", "To Late"

Now I want to show these three statuses as an icon in another column. 

Can somebody help me with the formula or JSON how I can show three status icons (Circles with the color green, red, orange) with fontsize 15.

YF$^~https://mcgregorvs--cowboy.com/

$
0
0
https://mcgregorvs--cowboy.com/
https://mcgregorvs--cowboy.com/live/
https://mcgregorvs--cowboy.com/fight/

Calculated Column CSOM Get Option

$
0
0

I have Server Side Object Model code for getting the Calculated Column.

    SPFieldCalculated cf = (SPFieldCalculated)item.Fields["Down Time Duration"];
    req.DownTimeDuration = cf.GetFieldValueAsText(item["Down Time Duration"]);

What is the equivalent code in CSOM  for getting the value of Calculated Column ?

How to workaround list threshold limit

$
0
0

Hey SharePoint Fam,

I have a environment where list threshold limit is 10k and list is almost over that limit.  The user needs to be able to query the data daily to find specific entries that may go back years ago.  Is there a way to not show any records and just show a search box where they can search the data and it returns that specific entry?  Really don't necessarily need to show all 10k items on default view at all but need to somehow query that data.

Thanks For Any Help

JQuery for SharePoint $Deffered() Promise() method for sequential execution of functions

$
0
0

I have a requirement that I need to execute 5 or 6 asynchronous  functions in sequence because I am using some values returned from the first function in subsequent ones. The functions access SharePoint lists to get specific listitmes.

Can you guide me how I can use $Deffered and Promise to accomplish this without failing?

Thanks


faye fouladi

updating items from sharepoint list to excel

$
0
0

I am trying to update  the items batches wise to excel using itempossition but it's not appending the items and it's overriding the previous items. could you please help on this

    while (true)
                {
                    CamlQuery camlQuery = new CamlQuery();
                    camlQuery.ListItemCollectionPosition = itemPosition;
                    camlQuery.ViewXml = @"<View><RowLimit>1</RowLimit></View>";
                    items = DemandList.GetItems(camlQuery);
                    clientContext.Load(items);
                    clientContext.ExecuteQuery();
                    DataTable ExcelDatatable = GenerateDataTable(items, clientContext);
                    if (ExcelDatatable != null && ExcelDatatable.Rows.Count > 0)
                    {
                        PushImpactsToExcel(clientContext, ExcelDatatable, FnCheckifFileExists());
                    }

                    itemPosition = items.ListItemCollectionPosition;
                    Console.WriteLine(itemPosition);

                    if (itemPosition == null)
                        break;

                    Console.WriteLine(itemPosition.PagingInfo);
                }

    if (!Filexists)
            {
                //Create Excel File
                xlWorkBook = excelApp.Workbooks.Add(misValue);
                xlWorkSheet = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1);
                xlWorkSheet = xlWorkBook.Sheets["Sheet1"];
                xlWorkSheet = xlWorkBook.ActiveSheet;
                xlWorkSheet.Name = "Sheet1";
            }
            else
            {
                //Append Excel File
                excelApp.Visible = true;
                xlWorkBook = excelApp.Workbooks.Open(location, 0,
                false, 5, "", "", false, Excel.XlPlatform.xlWindows,
                 "", true, false, 0, true, false, false);
                Excel.Sheets AllSheets = xlWorkBook.Sheets;
                string SheetName = "Sheet1";
                xlWorkSheet = (Microsoft.Office.Interop.Excel.Worksheet)AllSheets.get_Item(SheetName);
            }

            
            DataSet ds = new DataSet();
            ds.Tables.Add(dt);

foreach (DataTable Sheet1 in ds.Tables)
            {

                //xlWorkSheet.Name = table.TableName;
                xlWorkSheet.Name = "Sheet1";

                for (int i = 1; i < Sheet1.Columns.Count + 1; i++)
                {
                    xlWorkSheet.Cells[1, i] = Sheet1.Columns[i - 1].ColumnName;
                }

                for (int j = 0; j < Sheet1.Rows.Count; j++)
                {
                    for (int k = 0; k < Sheet1.Columns.Count; k++)
                    {
                        xlWorkSheet.Cells[j + 2, k + 1] = Sheet1.Rows[j].ItemArray[k].ToString();
                    }
                }
            }
            xlWorkBook.SaveAs(location, Excel.XlFileFormat.xlWorkbookNormal, misValue, misValue, misValue, misValue, Excel.XlSaveAsAccessMode.xlExclusive, misValue, misValue, misValue, misValue, misValue);
            xlWorkBook.Close(true, misValue, misValue);
            excelApp.Quit();

Multiple CallOut in React SPFX webpart

$
0
0

I want create the 4 CallOuts in SPFX react webpart. The CallOut will open up whenever the user click on the icon marked in red circle in the below image. The CallOut should comeout always beside the icon if the user moves page up and click on icon or page down and click on icon . The CallOut always shows beside the click icon.

 

Clicking on the icon link display as shown in in pic in SPFX react webpart

$
0
0

In my spfx webpart whenever i click the below icon link it should display the data as shown in below pic

I have 2 call out functions but if click icon1 or icon2 showing popup in SPFX react webpart

$
0
0
I have 2 callouts  in my SPFX react webpart . 

I added the 2 icons but whenever i click Icon1 initially callout showing near to Icon1 then later its moving to Icon2 place as shown in the below picture.



How to avoid Clearing the browser Cache every time after fresh Deploying VisualWebpart

$
0
0

Hi,

I have developed one Visual Webpart where I am using a java script file (Custom.js). The same script file has been added inside the Layout mapping folder. The below line I have given reference to the js file inside the Visual Webpart (EmployeeUserControl.ascx).

<script type="text/javascript" src="/_layouts/15/MyProject/Scripts/Custom/Custom.js"></script>

Issue:

When I do some changes in the js file, and then do deployment, then the change are not reflected in the page. To get the changes reflect in the page, I have to do the browser cache clear (Inspect the page -> Right click on the browser refresh button -> Click on Empty Cache and Hard Reload ). We can't ask the user to follow this steps after getting the new build. Please help me in this regards,

Thank you 


Full Crawl Got Stuck

$
0
0

The full crawl of SharePoint search was long running and was continuing for 38hrs. Generally which gets over by 7-8hrs.

We did index resetting and started the full crawl which solved the issue. But going into the event viewer logs, it was noticed that error it generated was "Arithmetic Overflow Error".

Can anyone please let me know what could be the reasons of generating this "Arithmetic Overflow Error"?

How to add Like symbol on each and every page of Pages library and click on the symbol how to show the count based on likes?

$
0
0

How to add Like symbol on each and every page of Pages library and click on the symbol how to show the count based on likes? 

How to implement this Like functionality on Share point pages library?

I have Different article pages in my site.I have to add one Like symbol in above the page.If user click on it,have to show the count in side.Dislike then decrease the count.



How to implement this functionality in share point 2019 using server side code.or any out of box way?

Viewing all 25064 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>