SALV Object Model - Info needed

Hi All,
I want to create a screen as per below mentioned using
SALV Object Model
I am looking some tutorial how to do this use SALV.
Your help will be appreciated
Node       |No:______         Date: ________
     a      |Desc: ________________________ Deleted : _
     b      |   (Here above field are editable)
     c      |-------------------------------------------
     d      |
     e      |
     f      |
     g      |
            |          Here i want an ALV Editable Grid
            |     on the basis of tree node selection
            |            on the left hand side
            |
            |
            |

Rich,
Thanks for your reply.
Whether can i use CL_GUI_ALV_GRID along with SALV?
I searched for some simple tutorial for
SALV tree model, could not find,  

Similar Messages

  • Where did the Photoshop CC Object Model info go?

    I've been using ExtendScript Toolkit CC with Photoshop CC 2014 without issue for some time now, but yesterday all of the reference information for Photoshop CC 2014, and several other programs, disappeared from the Object Model Viewer. Does anyone know what happened to it? Is there any way to get the information back? I have already tried reinstalling ExtendScript but nothing changed.

    I have the same problem. Haven't figured it out yet...

  • How to get windows form object of a MMC snapin node using MMC automation object model

    Hello,
    I am using automation object model for an existing mmc file and just trying to traverse all nodes of it. And i am able to do so.
    My query is : how can i get the access of windows form object of a particular node . Windows form is present in result pane of a node, i want to get access of that so that i can perform some automation on that form.
    http://msdn.microsoft.com/en-us/library/aa815049(v=vs.85).aspx
    I found that if OCX control is in result view of any node, then "view object -> control object property" returns
    the automation interface supplied by the control in the result view. 
    However, if result view is HTML view then how to get the automation interface of that result
    view.
    Thanks in advance,
    Sumit

    Hi Sumit,
    I read the link you provide above. It seems that when you want to achieve your target by using MMC automation
    object model, you need to use codes. Based on the programming language, if use VB, I suggest you post the question in
    VB Forum. If you want to use C#, may post in
    C# Forum.
    In addition, there is an answered question, may help you to find the correct forum.
    MMC development forum?
    http://social.microsoft.com/Forums/en-US/3796a8e9-674e-4da0-a40e-4e4b69575c8e/mmc-development-forum?forum=whatforum
    Since, it’s more related to development. We may can’t provide some more detailed information. Thanks for your
    understanding.
    Hope this helps.
    Best regards,
    Justin Gu

  • ExtendScript2 CS3 Object Model Viewer (very complicated - any alternative viewer ??)

    hallo iam just starting with JavaScript in CS3 and what i found most confusing is the Adobe's Object Model Viewer in ExtendScript2...
    its no help whatsoever and i didnt figure out the logics of the various dictionary items listed, whatsoever...
    if this is currentlly the only complete reference to CS3 JavaScript model than god help us....
    the ExtendScript2 Object Model Viewer needs to be COMPLETELLY REWORKED to become a full powered dictionary tool instead of an unorganized pile of items
    have you tried InDesign CS3 AppleScript Dictionary in Apple's ScriptEditor... thats a dictionary of object model as i would imagine
    1) its FULLY tree-structured dictionary from topmost level down
    2) all items are categorized and sorted BY TYPE using various icons
    3) every item has a properties catalog card with nice english explanations of that function with hyperlinks to all other relevant items
    IS THERE ANY ALTERNATIVE TO VIEW CS3 JAVASCRIPT OBJECT MODEL AND NOT USE THE EXTENDSCRIPT2 WEAK VIEWER ?????

    Hi Rosta,
    I have to admit that I don't understand. I see very little difference between the ESTK object model viewer and the AppleScript dictionary viewer. If anything, I think the ESTK version is superior because it connects methods with their objects--something that the AppleScript viewer doesn't do at all. But I pretty much find them equivalent.
    Regardless, the descriptions are *identical* between the object model viewer in the ESTK, the AppleScript dictionary viewer, and the Visual Basic/VBA object browser. All descriptions come from the scripting resources in InDesign, and all languages use the same description string.
    Jongware's HTML version, however, is much better than any of the above. Its hyperlinking is very good, and everything else can be found with your browser's Find command.
    Relying on the object model viewers has freed me from the task of maintaining the reference PDFs--which was taking almost all of my time. Without that burden, I can focus on writing the Scripting Guides, Scripting Tutorial, and example scripts. While I agree that the object model viewers aren't perfect, I believe that this is a better use of my time. I think that scripting examples are more useful, overall, than reference documentation (which simply repeats the information from the scripting resources, in any case).
    One very nice thing--because we have to rely on the object model viewers, we were allowed to fix literally hundreds of errors in the descriptions in the scripting resources.
    Thanks,
    Ole

  • Automation Object Model(AOM)

    Hi,
    Could you please help me to crate object model of service test in UFT.
    My requireemnt is to create an object of UFT(service test) and using that object invoke the API test.Please provide us sample code for this.

    Hi Sumit,
    I read the link you provide above. It seems that when you want to achieve your target by using MMC automation
    object model, you need to use codes. Based on the programming language, if use VB, I suggest you post the question in
    VB Forum. If you want to use C#, may post in
    C# Forum.
    In addition, there is an answered question, may help you to find the correct forum.
    MMC development forum?
    http://social.microsoft.com/Forums/en-US/3796a8e9-674e-4da0-a40e-4e4b69575c8e/mmc-development-forum?forum=whatforum
    Since, it’s more related to development. We may can’t provide some more detailed information. Thanks for your
    understanding.
    Hope this helps.
    Best regards,
    Justin Gu

  • SharePoint 2013 Client Object Model fetch image rendition info

    Hi,
    Below is the scenario I am trying with SharePoint 2013 managed client object model.
    FrontEnd: ASP.Net web application
    BackEnd: SharePoint 2013.
    I have a publishing image with rendition applied and I am able to fetch the image URL like "/{site}/{lib}/{imagename}?RenditionId={id}".
    I am able to download the file "/{site}/{lib}/{imagename}" using File.OpenBinaryDirect() 
    This is giving the original file without any renditions applied. If I use the same method with URL "/{site}/{lib}/{imagename}?RenditionId={id}", it gives me 400 Bad request error.
    I have also tried using file.OpenBinaryStream() method with URL "/{site}/{lib}/{imagename}?RenditionId={id}" whichi still gives the original file without rendition
    Please let me know how to fetch the below info using the rendition id?
    RenditionVersion;
    SourceImageWidth;
    SourceImageHeight;
    CropStartX;
    CropStartY;
    CropWidth;
    CropHeight;
    Alternatively, let me know if I could get the download file with rendition applied without requiring the above attributes.
    Note: I am looking for solutions in client side programming (client object model/ web services (REST) .  The server object model has classes "ImageRenditionCollection" and "ImageRendition" which can provide the above image info.
    Thanks,
    Srikanth

    To enable FQL, you have to copy the default result source and modify the Query Transformation string {?{searchTerms} -ContentClass=urn:content-class:SPSPeople}, at one of these
    levels -- Search Service Application (SSA), Site Collection, or Site -- and in one of the following ways:
    Remove the KQL filter, -ContentClass:urn:content-class:SPSPeople, from the Query Transformation. The resulting Query Transformation string will be: {?{searchTerms}}
    Replace the Query Transformation string with an FQL equivalent, such as {?andnot({searchTerms},filter(contentclass:"urn:content-class:SPSPeople*"))}.
    Source :http://msdn.microsoft.com/en-us/library/office/jj163973.aspx
    Bala

  • Object Model - cl_salv_hierseq_table Check box in the parent entry

    Hi,
    I am doing a report with cl_salv_hierseq_table (Object Model) , in that i  need to put a check box in the t_table_level1 level. I know that SALV is not have an option to edit.
    My requirement is from the list user select multiple parent entries (ie t_table_level1 ) and selected entries must be converted to web template and send to HTML repository.
    Currently i am struck up with creating a check box in HIERSEQ list
    Any Info?

    Hi aRs.  You need to use the class CL_SALV_SELECTIONS for this.  See here,  
    DATA: gt_parent TYPE TABLE OF scarr.
    DATA: gt_child TYPE TABLE OF sflight.
    DATA: gr_table  TYPE REF TO cl_salv_hierseq_table.
    DATA: gr_selections TYPE REF TO cl_salv_selections.
    DATA: lt_binding TYPE salv_t_hierseq_binding.
    DATA: ls_binding TYPE salv_s_hierseq_binding.
    SELECT * FROM scarr INTO CORRESPONDING FIELDS OF TABLE gt_parent.
    SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE gt_child.
    ls_binding-master = 'CARRID'.
    ls_binding-slave  = 'CARRID'.
    APPEND ls_binding TO lt_binding.
    CALL METHOD cl_salv_hierseq_table=>factory
      EXPORTING
        t_binding_level1_level2 = lt_binding
      IMPORTING
        r_hierseq               = gr_table
      CHANGING
        t_table_level1          = gt_parent
        t_table_level2          = gt_child.
    gr_selections = gr_table->get_selections( level = 1 ).
    gr_selections->set_selection_mode( cl_salv_selections=>if_salv_c_selection_mode~multiple ).
    gr_table->display( ).
    This will give you the checkboxes in the parent level, you still need to write the code to get the selected rows.
    Regards.
    Rich Heilman

  • Indesign Scripting Object Model

    Hi,
    Is there some reference documentation that provides detailed information on the Indesign object model as exposed to the scripting interface (javascript)?
    I have done fair amount of scripting in Illustrator so I was looking for the Indesign equivalent of this document
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scrip ting/illustrator_scripting_reference_javascript_cs5.pdf
    I looked at this document but it seems kind of sparse (compared to illustrator)
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/indesign/pdfs/InDes ignCS5_ScriptingGuide_JS.pdf
    Obviously they are different applications but I was kind of hoping there would be more info for Indesign scripting.
    In particular I am looking for some insight on how to effectively walk or traverse the document structure of an indesign document using code.
    Finding specific things by type seems out of the picture becuase after doing object reflection on all the page items in an indesign document nothing seems to have a "type" property.
    In my illustrator scripts I was able to place stuff in illustrator layers, give arbitrary pageitems a name and then later go find and manipulate via script. Not as clear how to do this in an indesign context.
    The one advantage of this was that in illustrator I was able to use textframes to hold variable data and read later via scripts. The document becomes the database. And I could create any number of arbitrary "variables" inside the document outside the white board. WOndering how to do this kind of stuff with indesign so I can do template driven documents that are managed by scriptings and form UI that I create.

    commnet: Glad to hear you're clear on the new keyword. It's something that a lot of people are confused about.
    Also glad to hear you've read Crockford's book on this stuff. Honestly I think for most InDesign usage, it's a mistake to worry about any kind of inheritance...usually it's easier to ignore all that stuff.
    And to answer the question about number of properties, probably talking max 100 or so. Certainly not thousands. I just want to have my own datastructure embedded in the indesign document that I can easily talk to via scripts. And this data needs to persist between instances of the javascript script's lifecycle. So it seems having some XML to parse is the solution. If that makes sense.
    If there was a way to deal with JSON data "hidden" within an indesign document I would gladly work with that. But I still need to change certain common content snippets inside the flow of the indesign document in a consistent way.
    I think if you have max 100 properties, you should probably choose the methods that are clearest code, rather than most efficient. I suppose you might have noticable delay with 100, though, obviously try it and see. I'm confused but I thought you needed to have your data associated with text elements inside your document, such that it is visible to a user in the user interface. Hence the proposal of using XML tagged text inside a Text Frame. Did that requirement go away?
    If you just want to hide JSON in the document, then use document.insertLabel() of a string of JSON and be done with it.
    You can also use the JavaScript interpreter's E4X features, that give you much richer Javascript bindings for manipulating XML objects and files. Unfortunately the Javascript's XML bindings have nothing to do with the InDesign XML object model. So could, e.g., export the InDesign DOM XML into a file, read that into a Javascript XML object, manipulating with E4X functions, write it out to a file, and then re-import it into the DOM. Not really very convenient.
    I honestly don't know much about Javascript for browsers, so if you could be more concrete in your queries it would be easier to answer.
    Looking forward to your example snippet though.
    OK, so, in Jeff (absqua)'s example, you create a constructor for a changeNumber rule, you call the constructor to make a rule, add the rule to the ruleset, and change a value attribute of the rule, and then process the ruleset.
    This strikes me as...extremely goofy. For two reasons, first the ruleset creation function should be parametrized with the value you want to change, and second, that you go change the rule's attributes after you have added it to a ruleset. Also, while this works in this example, I don't think it's appropriate to have the xpath attribute hardcoded in the rule creation function -- it's much plausible that you want a function that constructs a rule that changes some arbitrary tag to some arbitrary value.
    So, anyhow, if you were going to stick with the constructor paradigm, then I would change from:
    var changeNumber = new ChangeDocumentNumber();
    var ruleSet = [changeNumber, changeDescription];
    changeNumber.value = "5678";
    __processRuleSet(doc.xmlElements[0], ruleSet);
    to:
    var changeNumber = new ChangeDocumentNumber();
    changeNumber.value = "5678";
    var ruleSet = [changeNumber, changeDescription];
    __processRuleSet(doc.xmlElements[0], ruleSet);
    But I don't like this, because it's not parametrized reasonably. I would want something like:
    var changeNumber = new ChangeValue("//DocumentNumber", "5678");
    var changeDescription = new ChangeValue("//DocumentDescription", "New descr.");
    var ruleSet = [ changeNumber, changeDescription ];
    But because of my disdain for classical inheritance in JavaScript, I would instead write it as:
    function changeValue(xpath, newValue){
      return {
        name: "ChangeValue",
        xpath: xpath,
        apply: function(Element, processor) {
          if (newValue) {
            element.contents = newValue;
          return true;
    var changeNumber = changeValue("//DocumentNumber", "5678");
    var changeDescription = changeValue("//DocumentDescription", "New descr.");
    Because I think that a lot clearer about what is going on without introducing confusion.
    Edit: removed "this.value" from the above and just used newValue directly.
    But if you're defining a lot of rules with different apply functions, this is a very cumbersome strategy. You have all this boilerplate for each function that is basically the same but the apply function is different. This is leads to a lot of wasted code duplications. Why would your apply function be different? Well, that would usually be if you are writing functions that move around XML elements within the document hierarchy, or other things that are not simply changing the value of an element.
    I would much prefer to write this as:
    var changeRule = makeRule("change",
      function(element, ruleProcessor, newValue) {
        element.contents = newValue;
    var changeNumber = changeRule("//DocumentNumber", "5678");
    var changeDescription = changeRule("//DocumentDescription", "New descr.");
    var ruleSet = [ changeNumber, changeDescription ];
    This kind of syntax makes it much more compact to create arbitrary rules with different apply functions. In retrospect, the makeRule() function is named wrong, because it returns a function that makes a rule. Perhaps it'd be more reasonable if it was called makeRuleMaker().
    Anyhow, the downside is that the makeRule() function is kind of heinous. I wrote this in March in Re: How to shift content with in cell in xml rules table. But:
    //// XML rule functions
    // Adobe's sample for how to define these is HORRIBLE.
    // Let's fix several of these problems.
    // First, a handy object to make clearer the return values
    // of XML rules:
    var XMLmm = { stopProcessing: true, continueProcessing: false};
    // Adobe suggest defining rules constructors like this:
    //   function RuleName() {
    //       this.name = "RuleNameAsString";
    //       this.xpath = "ValidXPathSpecifier";
    //       this.apply = function (element, ruleSet, ruleProcessor){
    //       //Do something here.
    //       //Return true to stop further processing of the XML element
    //       return true;
    //       }; // end of Apply function
    // And then creating a ruleset like this:
    //   var myRuleSet = new Array (new RuleName, new anotherRuleName);
    // That syntax is ugly and, and is especially bad if
    // you need to parametrize the rule parameters, which is the only
    // reasonable approach to writing reasonable rules. Such as:
    //   function addNode(xpath, parent, tag) {
    //       this.name = "addNode";
    //       this.xpath = xpath;
    //       this.apply = function (element, ruleProcessor) {
    //           parent.xmlElements.add(tag);
    //           return XMLmm.stopProcessing;
    // and then creating a ruleset like:
    //   rule = new Array (new addNode("//p", someTag));
    // So instead we introduce a makeRule function, that
    // allows us to leave behind all the crud. So then we can write:
    // addNode = makeRule("addNode",
    // function(element, ruleProcessor, parent, tag) {
    //     parent.xmlElements.add(tag);
    //     return XMLmm.stopProcessing;
    // and use:
    // rule = [ addNode("//p", someTag ];
    function makeRule(name, f) {
        return function(xpath) {
            var
                //xpath=arguments[0],
                   // "arguments" isn't a real array, but we can use
                   // Array.prototype.slice on it instead...
                   args=Array.prototype.slice.apply(arguments, [1]);
            return {
                name: name,
                xpath: xpath,
                apply: function(element, ruleProcessor) {
                        // Slice is necessary to make a copy so we don't
                        // affect future calls.
                    var moreargs = args.slice(0);
                    moreargs.splice(0, 0, element, ruleProcessor);
                    return f.apply(f,moreargs);

  • Create a site collection with dedicated content db with the help of server object model

    Hi,
     I have a requirement to implement a create a new site collection with dedicated content db. i have got 2 PowerShell scripts which does the same. first i will  create a content  db and then create the sitecollection with contentdb
    parameter with the created contentdb name.
    Now the site collection created must contain few doc libs and few splists with look up columns, people picker data type, multiline of text, single line of text,choice field. hence i am thinking the below approach:
     1) create a web template and include sp doclibs, splists , site columns in this.
     2) i am thinking of a ui design to create the below:
     These are called "projects" which is actually the site collection with the doclibs, splists and must be created by sharepoint admin on click of a link in my landing page.end users access these "projects"  aka 
    "site collections" and uploads the documents into these projects and collaborate.
    so my question is :  On click of a button can I create a site collection with a dedicated content db based on the web template created with the  hel of  server  object model?
    The other approach is on click of this button call the power shell script which accepts the sitecollection name and contentdb name as parameter. is this possible in  server obj.model ?
    passing a paramter from code behind- visual web part ui to power shell ?
    and it should create the site collec based on the web template and create the content db.
    my doubt #3 : will it not throw error "request timed out" when creating the site collec and contentdb from ui ?

    Try below:
    http://sharepoint.stackexchange.com/questions/21606/programmatically-create-a-site-collection-in-an-existing-mounted-content-databa
    PowerShell is just a wrapper for the object model. You shouldn't need to reference PowerShell in your feature, just create the new site collection with C# inside your feature. There's a blog post here that illustrates some code that may get you started.
    http://blog.mastykarz.nl/programmatically-creating-sites-site-collections-custom-web-template/
    http://blogs.msdn.com/b/vesku/archive/2014/06/09/provisioning-site-collections-using-sp-app-model-in-on-premises-with-just-csom.aspx
    # Enable the remote site collection creation for on-prem in web application level
    # If this is not done, unknon object exception is raised by the CSOM code
    $WebApplicationUrl = http://dev.contoso.com
    $snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'}
    if ($snapin -eq $null)
    Write-Host "Loading SharePoint Powershell Snapin"
    Add-PSSnapin "Microsoft.SharePoint.Powershell"
    $webapp=Get-SPWebApplication $WebApplicationUrl
    $newProxyLibrary = New-Object "Microsoft.SharePoint.Administration.SPClientCallableProxyLibrary"
    $newProxyLibrary.AssemblyName = "Microsoft.Online.SharePoint.Dedicated.TenantAdmin.ServerStub, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
    $newProxyLibrary.SupportAppAuthentication = $true
    $webapp.ClientCallableSettings.ProxyLibraries.Add($newProxyLibrary)
    $webapp.Update()
    Write-Host "Successfully added TenantAdmin ServerStub to ClientCallableProxyLibrary."
    # Reset the memory of the web application
    Write-Host "IISReset..."
    Restart-Service W3SVC,WAS -force
    Write-Host "IISReset complete."
    If this helped you resolve your issue, please mark it Answered

  • How to get the values of managed metadata columnn through object model

    Hi,
    I need to read the values from a managed metadata column, which is set to display entire path.
    Eg. My value looks like
    Critical:Important:Interesting:Routine:Not Evaluated
    without hardcoding these values, can i find which level of child has been chosen.
    if its not evaluated, i should find like last child like that..
    any way of doing that?
    Aruna

    Hi,
    thanks for the above reply.
    i got a new requirement as,  following is my managed metadata structure user selects the values from the below structure. i need to find the matching items with another list of same structure. the condition for matching is, if the user selects All,
    in the otehr list if the value in the region column equals any of the values in the structure below All like ema, denmark,nordborg is considered to be matched. if the user selects Denmark then the list contains denmark, nordborg and office is matched. means
    parent and its child contents are matched if the parent is chose. if the child is chosen only the exact value from other list(office==office in otehr list) is considered to be matched. how can i achieve it through object model coding?
    Aruna

  • Getting 'File not found' error while using server object model code

    Hi,
    I am using server object model code to pull list data in a console application. My machine has standalone installation of SP 2010. I am getting error 'File Not Found', however the same operation is working fine with client object model code.
    Code I am using:
    string strURL=http://servername/sites/sitename;
    SPSite siteObj=new SPSite (strURL); //getting error here.
    I have already checked the below,
    1. Framework being used is 3.5.
    2. I have proper access to site.
    3. Running visual studio as admin.
    Any help is much appreciated.
    thanks
    Tarique
    thanks and regards Tarique Aslam

    Hello Tarique ,
    Couple of pints need to check:
    1. User running the console application needs to have at least read permission to the SharePoint databases
    2. Set application by changing the "Platform target:" option on the "Build" to "Any CPU"
    Also refer this similar thread:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2a419663-c6bc-4f6f-841b-75aeb9dd053d/spsite-file-not-found
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How can I get an item and it's attachments from the current list using SP's JavaScript Client Object Model on newform.aspx?

    I only recently learned/read about SharePoint's JavaScript Client Object Model. I'm reading online trying to figure this out but not having much luck.
    On newform.aspx (and dispform.aspx) I want to get the
    current list,
    the last item created, and it's attachments. I now the CAML query I need to get the last item created, but first I have to get the current list and I am not sure how to do that.
    I tried this but it returns null:
    SP.ListOperation.Selection.getSelectedList()

    Hi,
    For your issue, you can get the list name from the new form url and retrieve the list last created item :
    https://social.msdn.microsoft.com/Forums/office/en-US/b90a64f8-2255-41b0-9d91-78335dd4a4cf/get-list-name-from-list-url-through-javascript?forum=sharepointdevelopmentprevious
    http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Error while creating Info Object in Info object catelog

    Hi experts,
    I'm making few info object in info object catelog but while activating system giving error mesage as "Error when generating master data routines"
    can any one tell what's the problem and what needs to be done.
    Sumantra

    Hi
    let me know weather r u using any reference object which contain the routinee.
    regards,
    chandra.

  • Unable to get the SharePoint 2013 List names using Client object model for the input URL

    Please can you help with this issue.
    We are not able to get the SharePoint 2013 List names using Client object model for the input URL.
    What we need is to use default credentials to authenticate user to get only those list which he has access to.
    clientContext.Credentials = Net.CredentialCache.DefaultCredentials
    But in this case we are getting error saying ‘The remote server returned an error: (401) Unauthorized.’
    Instead of passing Default Credentials, if we pass the User credentials using:
    clientContext.Credentials = New Net.NetworkCredential("Administrator", "password", "contoso")
    It authenticates the user and works fine. Since we are developing a web part, it would not be possible to pass the user credentials. Also, the sample source code works perfectly fine on the SharePoint 2010 environment. We need to get the same functionality
    working for SharePoint 2013.
    We are also facing the same issue while authenticating PSI(Project Server Interface) Web services for Project Server 2013.
    Can you please let us know how we can overcome the above issue? Please let us know if you need any further information from our end on the same.
    Sample code is here: http://www.projectsolution.com/Data/Support/MS/SharePointTestApplication.zip
    Regards, PJ Mistry (Email: [email protected] | Web: http://www.projectsolution.co.uk | Blog: EPMGuy.com)

    Hi Mistry,
    I sure that CSOM will authenticate without passing the
    "clientContext.Credentials = Net.CredentialCache.DefaultCredentials" by default. It will take the current login user credentials by default. For more details about the CSOM operations refer the below link.
    http://msdn.microsoft.com/en-us/library/office/fp179912.aspx
    -- Vadivelu B Life with SharePoint

  • How to show surveys name and responses under curret subsite by Java object model in the CEWP

    Hi All,
    I need to show the name of surveys, their description and all responses against the survey  under my current sub-site.
    As I think there is no such out of box web-part available in SharePoint 2010.
    1. Can I get it by using java script client object model and place that in CEWP?
    2. Could I get code for this need?
    Naimish

    Sorry For late reply, I have managed to get needed out put.
    Thank you Hemendra.
    =====================
    <script ='/_layouts/SP.js' type='text/javascript'>
    ExecuteOrDelayUntilScriptLoaded(retrieveAllListProperties, "sp.js"); 
    function retrieveAllListProperties() {
        var clientContext = new SP.ClientContext.get_current();;
        var oWebsite = clientContext.get_web();
        this.collList = oWebsite.get_lists();
        clientContext.load(collList);
        clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded() {
        var listInfo = '';
        var str="";
        var columns = 3;
        var listEnumerator = collList.getEnumerator();
        str += '<table  style="width:1000px" border="1" cellspacing="1" cellpadding="5">'
        str += '<td style="font-size:14.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;color:red">' +  'Survey Title' + '</td>'
        str += '<td style="font-size:14.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;color:red">' + 'Survey Description' + '</td>'
        str += '<td style="font-size:14.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;color:red">' +  'Total Responses'+ '</td>'   
        while (listEnumerator.moveNext()) 
            var oList = listEnumerator.get_current();
            if(oList.get_baseType() == 4)
            {   str += '<tr>'
                //listInfo += 'Survey Title: '+oList.get_title() +'------'+' Description: '+oList.get_description() +'------'+ ' Total Responses: ' + oList.get_itemCount();
                str += '<td>' +  oList.get_title() + '</td>'
                str += '<td>' +  oList.get_description() + '</td>'
                str += '<td>' +  oList.get_itemCount() + '</td>'
                str += '<tr>'
                str += '</tr>'
        str += '</table>'   
        document.getElementById("demo").innerHTML = str;
    function onQueryFailed(sender, args) {
        alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    </script>
     <span id="demo" style="float:left;">Survey</span>

Maybe you are looking for