Dashcode Web Application list items

In the code generated by Dashcode, it says "Sample data for the content of the list. Your application may also fetch this data remotely via XMLHttpRequest." I'd like to keep my lists in external files so the user doesn't have to load data they may not be interested in. I've put the XHR in the listControler function, but obviously I'm missing something. Has anyone seen an example of how this can be accomplished?

Unfortunately by central admin UI you cannot change a web application name.
So there are two ways to do this
First as suggested above you have to delete web app and recreate again.
2nd one you can use powershell script to modify webapp name as below
$a=Get-SPWebApplication | where {$_.Name -match "Old web app name"}
$a.Name
$a.Name="New web app name"
$a.Update()
Get-SPWebApplication | where {$_.Name -match "New web app name"}
Hope that's helps you.
Regards
Soni K

Similar Messages

  • How can I rename the "name" on "Web Application List " page

     I have a quesiton need your kindly help . I'm novice in this field
    on "Central Administration" website
    "Administration management"--->"Sharepoint Web Application Management"--->"Web application list"
    here will show all of web application mapping information
    Name                                             URL
    SharePoint - 24824                          http://home:8081/
    SharePoint - 80                               http://home/
    SharePoint Central Administration v3   http://home:8080/
    I want to change "SharePoint - 24824" as "SharedServicePortal", how can do it

    Unfortunately by central admin UI you cannot change a web application name.
    So there are two ways to do this
    First as suggested above you have to delete web app and recreate again.
    2nd one you can use powershell script to modify webapp name as below
    $a=Get-SPWebApplication | where {$_.Name -match "Old web app name"}
    $a.Name
    $a.Name="New web app name"
    $a.Update()
    Get-SPWebApplication | where {$_.Name -match "New web app name"}
    Hope that's helps you.
    Regards
    Soni K

  • Liquid sorting web app list items

    FIltering is great in Liquid, but sorting the data by custom fields is something which our clients are really asking for.
    Trying to say to a client, you can only sort alphabetically etc. is really making BC seem really unfriendly. Please, please, please can this be added or someone show me how this can be achieved without writing hundreds of lines of JavaScript for something which is so rudimentary in other languages / programming systems.

    Hope I understand the question correctly.
    Are you trying to allow the customer to set the sort order? And/or allow the customer to categories web app items into groups? Or simply, sort the data by a particular custom field, such a category?
    Here's a simply solution I've got working: FAQs grouped into categories. I took this one step further and allowed my customers to even edit their categories, but you can hard code this per site if you like.
    1) Collect the web app data into collections, so we can sort by custom fields.
    {module_webapps render="collection" id="FAQs - Questions" filter="all" hideEmptyMessage="false" sortType="ALPHABETICAL" collection="faqsQuestions" template=""}
    {module_webapps render="collection" id="FAQs - Categories" filter="all" hideEmptyMessage="false" sortType="ALPHABETICAL" collection="faqsCategories" template=""}
    2) If you want to list all the categories or your custom fields (which are editable by the client in my case):
    {% if faqsCategories.items -%}
            <ul class="faq-categories">
    {% for category in faqsCategories.items  -%}
                <li><a href="#{{category.name | replace: ' ','-'}}">{{category.name}}</a></li>
    {% endfor -%}
            </ul>
    {% endif -%}
    3) Now display your web app data sorted by custom field type:
    {% if faqsCategories.items -%}
    {% for category in faqsCategories.items  -%}
                <h2>{{category.name}}</h2>
                <ul id="{{category.name | replace: ' ','-'}}" class="accordion">
    {% for question in faqsQuestions.items  -%}
    {% if question.Category_id == category.itemID -%}
                    <li>
                        <a href="#panel{{question.itemID}}">{{question.name}}</a>
                        <div id="panel{{question.itemID}}" class="content">
    {{question.description}}
                        </div>
                    </li>
    {% endif -%}
    {% endfor -%}
                </ul>
    {% endfor -%}
    {% endif -%}
    The above demonstrates how you can sort web app data by a custom field type.
    IMO I don't think this is something BC should be expected to produce (but I could be persuaded )
    Hope this helps and I hope I did not go on a tangent.
    Cheers,
    Stepehn

  • How to copy List item from one list to another using SPD workflow using HTTP call web service

    Hi,
    How to copy List item from one list to another using SPD workflow using HTTP call web service.
    Both the Lists are in different Web applications.
    Regards, Shreyas R S

    Hi Shreyas,
    From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
    If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
    As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
    So I recommend to achieve this goal programmatically.
    More references:
    https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Victoria
    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]

  • Add an item into announcement list in site collec. and repeat the same in all the sub webs' announcement list without using event receiver

    hi,
    I have a requirement: in my site collection i have an announcement list. and in my site collection  some 600+ sub sites exist. sharepoint admin uploads an announcement into this rootweb's announcement list. now is there any way
    i can add the same announcement -which has title, description, date time etc .- to all the 600+ sub sites' announcement list?
    i know , if i write a list item event receiver i will be able to iterate through eacha nd every subweb of my site collec and add this item into those sub web's  announcement list. But, without writing an event receiver and creating and deploying
    another wsp and avoiding all those headache, is it possible to achieve this requirement?
    any other approaches are highly appreciated!

    Hi,
    As a workaround, we can create a winform application for admin use only to add the item to all the sub web's announcement list.
    Developing Sharepoint Windows Forms
    http://www.codeproject.com/Tips/566370/Developing-Sharepoint-Windows-Forms
    Best Regards,
    Dennis Guo
    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]

  • Powershell Iterate through webs and lists to get Document ID Value of first item

    After some some trial and error I came up with the follow script. But it's so slow! And seems to be missing my document centre - it has about 80000 items in it.
    Two questions: Can I make this quicker? and why can't it handle getting results from the document centre?
    $webs = (Get-SPSite "http://portal...." | Get-SPWeb -Limit all -ErrorAction SilentlyContinue)
    if($webs.count -ge 1 -OR $webs.count -eq $null)
    foreach($web in $webs)
    $lists = $web.Lists
    foreach($list in $lists)
    if ($list.BaseType -eq "DocumentLibrary" -OR $list.BaseType -eq "GenericList")
    $item = $list.Items[0]
    if (($item -ne $null) -and ($item["Document ID Value"] -ne $null))
    $finalstring = $item["Document ID Value"].ToString()
    write-output $finalstring | Out-File "C:\scripts\results.txt" -append
    $web.Dispose()

    I thought that pointing to items[0] would literally just grab the first item.
    So what do I do here? How can I use an spquery in my code? I'm confused in the order and the exact sytax I would use the spquery.
    Thanks for you help so far Alex.
    Edit: Amended my code, is this correct?
    Add-PSSnapin Microsoft.Sharepoint.PowerShell
    $webcount = 0
    $listcount = 0
    $itemcount = 0
    $itemid = ""
    $TimeStamp = Get-Date
    $Date = $TimeStamp.ToShortDateString()
    $Time = $TimeStamp.ToShortTimeString()
    $webs = (Get-SPSite "Http://portal..." | Get-SPWeb -Limit all -ErrorAction SilentlyContinue)
    $query = New-Object Microsoft.Sharepoint.SPQuery
    $query.Query = "<Where><IsNotNull><FieldRef Name='ID'/></IsNotNull></Where>,<OrderBy><FieldRef Name='_dlc_DocId' Ascending='True'/></OrderBy>"
    $query.ViewFields = "<FieldRef Name='_dlc_DocId'/>"
    if($webs.count -ge 1 -OR $webs.count -eq $null)
    foreach($web in $webs)
    $lists = $web.Lists
    foreach($list in $lists)
    if ($list.BaseType -eq "DocumentLibrary" -OR $list.BaseType -eq "GenericList")
    $listcount += 1
    $items = $list.GetItems($query)
    foreach ($item in $items)
    if ($item["_dlc_DocId"] -ne $null)
    $itemid = $item["_dlc_DocId"].ToString()
    if ($itemid -ne "")
    $itemcount += 1
    $finalstring = $Date + " ; " + $Time + " ; " + $web.url + " ; " + $list.title + " ; " + $itemid
    write-output $finalstring | Out-File "C:\scripts\results.txt" -append
    break
    $webcount += 1
    $web.Dispose()
    Write-Host "Amount of Webs checked:"$webcount
    Write-Host "Amount of Document Library Lists:"$listcount
    Write-Host "Amount of valid IDs:"$itemcount

  • Uploading multiple documents into sharepoint list item with REST in sharepoint 2013 using content editor web part :

    hi ,
    i am trying to upload multiple document files into sharepoint list item. I followed below link for implementaion.
    http://techfindings-prem.blogspot.in/search/label/jquery.multifilejs
    It was working for sharepoint hosted app.
     This complete code is written within content edito web part.
    It was working when i was in root site collection with below change (hard coded the root level url) in code in "UploadFile" function.
    var scriptbase = "http://servername" + "/_layouts/15/";
                console.log(' File size:' + bytes.length);
                $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    But the issue came in picture when i was working with the other site collection instead of root one. The url was like below.
    "http://servername/sites/cpg/". This time i need to be there within "cpg" site collection. 
    Now if i hard code the url as i did above my code gets break here while come to below line
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
    I am getting error when i used below code:
    var scriptbase = "http://servername" + "/_layouts/15/";
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    Please hekp in this case. This complete code is written within content edito web part. 
    Regards:
    Sanjay Joshi

    Hi,
    According to your post, my understanding is that you have an issue about upload multiple documents files into library vai REST API.
    As you have said, you have used the hard code url in your code.
    How about use the _spPageContextInfo.webAbsoluteUrl method to get the url?
    I have used this method to get the url, then use the code in the article you have pasted within a content editor web part to upload the files.
    You can replace the hard code url with the _spPageContextInfo.webAbsoluteUrl method, then check whether it works.
    Thanks,
    Jason
    Jason Guo
    TechNet Community Support

  • Display SharePoint:RichTextField value as is from list item into application page

    Hello,
    I would like to show value entered in Rich Text Field in list on one application page.
    I am displaying it like below as I would like to use the default functionality provided by SharePoint and this is an application page replacing the default page for list form.
    <SharePoint:RichTextField ID="RTTaskDescription" runat="server"  FieldName="Task Description" ControlMode="Display"/>
    But when it renders the output as below with DIV and STRONG as description word is bold in list item.
    <DIV>THis is task <STRONG>description</STRONG>.</DIV>
    Any way to handle this to show as it is in list item with proper HTML from server side?

    Hi,
    Did you try this
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/2efb5464-e4d1-4a81-bb96-ebcde5aeffc8/want-to-remove-divdiv-tag-while-displaying-list-columntypemultiline-text?forum=sharepointdevelopmentlegacy

  • Inactive status  - v$session  users list over WEB application

    Hi all
    When user connect through asp or asp.net, we create a connection in the session object. New sid gets created with each session.
    When user normally logs out the application, his sid gets finished in the v$session users list. But when he dees not logs out in the normal way as we can not force thousand of users over WEB to log out normally, what will happen to the v$session ?.
    1st - We wish to know to know that whether the list will run into thousands of inactive status users OR they automatically gets finished over time. We use the default profile as applicable to new user.
    2nd - If the list of inactive status users gets increased to thousands of users which can be possible for the WEB application , there must be some limit fixed by Oracle 8i/ 10g database OR there may be serious performance problems. This simultaneous connection of thousands of users over WEB is easily possible and when connection is created in session object , what could be the scenario. We avoid creating connection object in the application start event to improve performance for the given sesion.
    Any help is appreciated.
    Suresh bansal

    Thanks for prompt reply
    1st - Can u give some idea for create connection pools using asp.net environments. Further in the connection pool environment as to how much simultaneous running connections we should need to open and how.
    2nd - If we have pool of say 100 connections and there are more number of simultaneous WEB users, what will happen to the application as to whether it gets to hanging /waiting for the pool connection to be free or give error ?.
    Suresh Bansal

  • How to create own Web Items for Web Application Designer

    Hi all,
    is it possible to create own Web Items for the Bex Web Application Designer? Each Web Item has a Master Web Item and a class that is responsible for rendering data. I need a solution to get the Web Item's data - i.e. the content of a table (if Web Item = table). So my approach would be to create an own (Standard) Web Item with an own class. For example I would like to change the table's Web Item parameter <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/> to an own class...
    Is this possible?
    Or ist there any possibility to get the Web Item's data by an interface?
    Any support is welcome...thanks in advance!
    Best regards,
    Dominik

    if you want to create your own webitem check out the link given by other sdner.
    if you want to be able to execute BW query using abap you can check out the following weblog.
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    Regards
    Raja

  • How to prevent RSS Viewer web part from overriding list-item CSS style?

    I am using SharePoint Online. I have a web part page with a number of web parts with links. Font size of the links is ~12px.
    If I add an RSS Viewer web part to the page, then it overrides the 'list-item' class CSS Style to something like 8px, which is unreadable.
    To correct this I have tried the following:
    1. Added the following code to a Script Editor Web Part on same page:
    <style type="text/css">
    .item link-item
    font-size:20px !important;
    .link-item
    font-size:20px !important;
    </style>
    2. Completely deleted all XSL from the RSS Viewer web part and replaced it with very simple formatting code which format the links within the RSS web part to 16px - but still the other links are set to 8px.
    3. Linked a custom style sheet to the relevant master page and set the link-item classes in there, ensuring that it is executed after the standard SharePoint css.
    ...but nothing works!
    It appears that, as soon as the RSS Viewer web part is added to the page it overrides the list-item style and then will not release it even if all the XSL within the web part is deleted!
    On deleting the RSS Viewer from the page and saving it, the links font size returns to normal.
    Does anyone have a fix/work around for this?
    Thanks in advance,
    Jimmy

    Hi Jimmy,
    I recommend to use “.link-item a” instead as the code below to change the font size of the links:
    <style>
    .link-item a
    font-size:20px !important;
    </style>
    And I tested the code above in my environment and it worked fine.
    Best regards,
    Thanks
    Victoria Xia
    TechNet Community Support

  • Simple Web Application - To display list and then details

    Hello All,
    I am trying to build simple classifieds web application using - JSP, MySQL.
    I am little confused how to achieve following using JSP - for example -
    Craigslist can display list of classifieds and when clicked on individual classified - the record is shown as Static HTML file -
    http://newyork.craigslist.org/mnh/cpg/708366015.html
    http://newyork.craigslist.org/mnh/cpg/708343755.html
    How can i achieve the same results dynamically - i mean, how can i create a static HTML page using information in database and put that static HTML file on server so it can be picked up by search engines ...
    I am new to java guys .. so please show me some light or explain me how do i code this using JSP.
    Thank you,
    Jagdish

    How can i achieve the same results dynamically - i mean, how can i create a static HTML page using information in database
    and put that static HTML file on server so it can be picked up by search engines ...By definition a dynamic html page doesn't exist, so how would a search engine find something that doesn't exist?

  • Dashcode iPhone Webapp - Adding url links to multiple list item

    I was wondering if anyone knew how to add a url link to multiple list items without the use of a button part.
    Say For Instance i Have
    Item 1 > I want to go to www.mysite.com/index.html
    Item 2 > I want to go to www.mysite.com/help/index.html
    Any help would be greatly appreciated

    After hours of reading and experimentation, I have solved my immediate problem thus:
    function jsonLoaded(jsonRequest) {
    if (jsonRequest.status == 200) {
    events = eval( "("jsonRequest.responseText")" );
    document.getElementById('list').object.reloadData();
    } else {
    alert("Error fetching JSON data: HTTP status " + jsonRequest.status);
    var feedURL = "http://www.foo.com/bar.php";
    var onloadHandler = function() { jsonLoaded(jsonRequest); };
    var events = [];
    var jsonRequest = new XMLHttpRequest();
    jsonRequest.onload = onloadHandler;
    jsonRequest.open("GET", feedURL, true);
    jsonRequest.setRequestHeader("Cache-Control", "no-cache");
    jsonRequest.send(null);
    var listController = {
    numberOfRows: function() {
    I had to do two things:
    1. Declare the array 'events' outside the function.
    2. Reload the list data (thanks to http://osdir.com/ml/safari-iphone-web-dev/2009-05/msg00013.html )
    Now I've got to figure out how to pull in different data for different list levels!

  • PowerShell - how to list all master pages of all sites in web application?

    Hi there,
    Is it possible to list all of the master pages along with the site URLs in my web application? There are thousands of site collections and subsites etc.
    Thanks so much.

    Apologies for formatting, reply on iPad sucks.... Use this example: http://iedaddy.com/2011/11/sharepoint-information-architecture-diagram-using-powershell-and-visio/ But in the powershell for the select, include the MasterURL property so it will write
    it out to the .csv file as well. I assume you are just looking for what are your active master pages per site are....won't report if you've hard coded the values into individual pages as it is just querying site properties.
    ieDaddy
    Blog: http://iedaddy.com
    Twit: @iedaddy

  • List of .jar file need to add in web application by using eclipse europa?

    hi
    what are the list of .jar file need to be added in web application which use the ide of Eclipse Europa?

    Depends on the application requirements. For a basic JSP/Servlet application just integrate Tomcat in Eclipse and assign it as application server to your web project, then you don't need to add anything. If you for example need JSF, then you should add its JAR's to the classpath of the web project, which is by default /WEB-INF/lib.

Maybe you are looking for

  • Can't get garage band to work

    i am just hooking a yamaha keyboard up to garage band and i can't get the software to see my keyboard, i have been through all the tutorials, i have it hooked up right, i have the imput selected correctly, but i can't hear the keyboard, or see the im

  • Recieve value from another method

    hello, I have a method like this public String loadUser(String x){    //Init in = new Init();    String abc = x;         currentUser = currentUser+abc;         System.out.println("Currentuser "+currentUser);        return currentUser;    }I have anot

  • How to install Forms Server 6i (SUN) from download

    I downloaded the latest release of Oracle Forms Developer/Server 6i. I untar'd it but I don't see an orinst executable to install it. Anyone know how you are suppose to install it

  • Oracle RAC binaries on vxfs shared file system

    Hi, Is it possible to install oracle binaries on vxfs cluster file system for oracle RAC under sun cluster? Because as I know we can not use vxfs cluster file system for our oracle datafiles. TIA

  • Header Condtion for RFQ and Conract pricing procedure

    Hi All, we have configured new pricing procedure purchansing documents. We are able to see in PO, header and Item condtion types but In RFQ and COntract we are  able to see only at item level. Please guide us how to resolve this issue. Thanks Nagaraj