Question about including JQuery in a Survey list DispForm.aspx page

In SharePoint 2010, I was able to hide the links for editing, deleting... an existing survey entry in the DispForm.aspx page using the following technique:
1 - Save jquery .js file to the Style Library in the top level site
2 - Save the .js file that has the jquery code to hide the link in the Style Library in the top level site
3 - Reference the .js files in the DispForm.aspx page like this:
<asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
 <script type="text/javascript" language="javascript" src='<asp:Literal runat="server" Text="<%$SPUrl:~SiteCollection/Style Library/jquery-1.5.0.min.js%>"'></script>
 <script type="text/javascript" language="javascript" src='<asp:Literal runat="server" Text="<%$SPUrl:~SiteCollection/Style Library/hideedit.js%>"'></script>
</asp:content>
The hideedit.js file contains the following:
$(document).ready(function(){
    $('#ctl00_m_g_d3bec7ca_bd25_448d_8874_da35856854c5_ctl00_ctl01_ctl00_toolBarTbl').hide();
I am trying to use this same technique in SharePoint 2013 but it is not working.
It appears that neither of the js files are loading properly.
As a test, I put the following in the hideedit.js:
alert('test');
$(document).ready(function(){
    alert('from jquery');
Neither of the alerts are displayed when navigating to the DispForm.aspx file.
How do I get JQuery loaded in a survey DispForm.aspx file in SharePoint 2013?

Have you tried this within Designer?  Copy the DispForm, edit it and add the JD references below the PlaceHolderMain section and then save.  Set this as the default Displat Form and your changes should load.
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem.

Similar Messages

  • Refer to a column in a secondary list in a customized DispForm.aspx page

    I would like to know if there is an XMl statement that will allow me to pull a column from a separate list.
    I have two lists; List1 has just one item in it that holds the default values for all the columns, including Enhanced Rich Text columns.
    List2 has the exact same columns, but only certain columns will contain data if that content needs to be customized from the defualt values.
    I need a way so that when i check the column in List2, if it is empty, pull the corressponding column from List1 so it displays the default value.
    Is there an XML/XSL statement that can do this and will actually render the Enhanced Rich Text properly?
    My sample code below works great, but we cannnot leverage hidden fields as the default values can be updated anytime.
    This is code that I have in the DispForm.aspx page
          <td width="400px" valign="top" class="ms-formbody">
          <xsl:choose>
           <xsl:when test="string-length(@First) &lt; 1">
                                 <xsl:value-of select="@first_x002d_hid" disable-output-escaping="yes"/>
           </xsl:when>
           <xsl:otherwise>
            <xsl:value-of select="@first " disable-output-escaping="yes"/>
           </xsl:otherwise>
          </xsl:choose>

    The default values in List1 can change at any time.  When the user opens an item from List2, it needs to show the custom values in the columns of List2, then show the current values in List1 for any of the columns they did not populate in List2, at
    the time they view the item.
    I dont think the calculated columns would work as it would save the values that existed in List1 at the time they saved the item in List2, right?
    Also, when the users are updating List2, they want to see a form that only shows the custom data they entered in the columns,  all the others should be blank.  We get this with the OOB EditForm.aspx for List2, so we do nt need to update NewFrom.aspx
    or EditForm.aspx, only DispForm.aspx.
    The only time they want to see the aggregation of the List2 data and the List1 data is in the DispForm.aspx page.

  • Question about timeline navigation and the display list-

    I’ve got a movieclip called “rotatorProxy” that spans the entire timeline. I’ve got nav buttons that jump to various frames on that timeline. I need to get the display depth of rotatorProxy each time the nav buttons move the playhead. The AS3 code is easy enough:
    var zIndex:int = this.getChildIndex(getChildByName("rotatorProxy")) ;
    my problem is where to put it. If I put this code in any script that executes in the target frame, it works, but only if I hit the nav buttons slowly. If I bang on a single nav button rapidly, getChildByName("rotatorProxy”) can return null. I don’t know much about how the display list works but I assume the display list is rebuilt after every jump and the frame scripts are executing asynchronously, so it’s possible my getChildByName call is  executed before the display list is complete. Is there an event or some other handle that would allow me to call my code before the frame is rendered but after the display list is complete?

    Wow, thanks for the fast response...
    “if rotatorProxy exists in all frames, it should never return null.”
    That’s what I thought, but not what I’m seeing, rapidly jumping around on the timeline seems to confuse the player and it temporarily looses track of rotatorProxy.
    You can sort of see it in action here: http://www.appliedcd.com/newACT/act.html
    The zIndex is used to establish the depth of the rotating screens which have been added to the display list via AS. If you bang on the nav buttons quickly you’ll see the stacking order screw up, if you had been in the development environment you’d see the null error thrown.
    I’ll see if I can use the render event to sort this out. I know testing in the frame after the jump will work, but it’s cleaner if I can establish the proper stacking order before the first jump frame is rendered.

  • Question about includes

    I want to have linked images using JustSo Picture window
    which does of
    course use Javascript. The links don't work - is it not
    possible? I checked,
    the code appears correct. So is it something else I've done
    wrong?
    Sample code of the include:
    <div id="sidebox">
    <div id="sidecontent"><a href="javascript:;"
    title="View of Panteli from
    Vromolithos"
    onClick="jspw3('vwd_scripts/','images/from_vrom.jpg','1,,0,View%20of%20Panteli%20from%20V romolithos,side,-%20-%20click%20screen%20to%20close%20-%20-,0,0,,0,437,344,0,,,,,,0,,1.4.0 .');return
    document.MM_returnValue"><img
    src="images/from_vrom_small.jpg" alt="View
    from Vromolithos" width="132" height="104"
    border="0"></a>
    <p>View of Panteli from Vromolithos. Click to enlarge
    </p>
    Jo

    So far only this one - do you mean the template (surely not?)
    - that doesn't
    have any JSPW
    Jo
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:fm2f8n$k55$[email protected]..
    > Does your PARENT page contain the JSPW-related
    javascript and links?
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > ==================
    >
    >
    > "josie1one" <[email protected]> wrote in
    message
    > news:fm2eq7$jmc$[email protected]..
    >> Sure - I've never had problems either, but pretty
    new to includes
    >>
    >>
    http://kiwiannes-leros.com/
    >>
    >>
    >> --
    >> Jo
    >>
    >>
    >> "Dooza" <[email protected]> wrote in
    message
    >> news:fm2ema$jbu$[email protected]..
    >>> josie1one wrote:
    >>>> I want to have linked images using JustSo
    Picture window which does of
    >>>> course use Javascript. The links don't work
    - is it not possible? I
    >>>> checked, the code appears correct. So is it
    something else I've done
    >>>> wrong?
    >>>>
    >>>> Sample code of the include:
    >>>>
    >>>> <div id="sidebox">
    >>>> <div id="sidecontent"><a
    href="javascript:;" title="View of Panteli
    >>>> from Vromolithos"
    >>>>
    onClick="jspw3('vwd_scripts/','images/from_vrom.jpg','1,,0,View%20of%20Panteli%20from%20V romolithos,side,-%20-%20click%20screen%20to%20close%20-%20-,0,0,,0,437,344,0,,,,,,0,,1.4.0 .');return
    >>>> document.MM_returnValue"><img
    src="images/from_vrom_small.jpg"
    >>>> alt="View from Vromolithos" width="132"
    height="104" border="0"></a>
    >>>> <p>View of Panteli from Vromolithos.
    Click to enlarge </p>
    >>>>
    >>>>
    >>>
    >>> I have never had any issues using the JustSo
    extensions, I think they
    >>> are excellent. Could you post a link to your
    page so that we can see
    >>> what is going on?
    >>>
    >>> Steve
    >>
    >>
    >

  • A question about included accessories

    Hello all.
    I received an iPod Nano for Christmas, but when I opened the box there was only the iPod and Software. Did I forget to order the necessary accessories or should they have been included? Such as something to charge my iPod with.
    Thank you.

    I would contact them and let them know you did not
    recieve headphones or a USB cable:
    http://www.apple.com/support/store/postpurchase.html
    JC
    Thanks, I'll do that!

  • Clear PeoplePicker value in List NewForm.aspx

    Hi,
    In List NewForm.aspx page, i have PeoplePicker control, dropdown and few text fields.
    I have to load values in all fields based on dropdown changed event using jquery, i completed this part to load all fields.
    When user changed the dropdown value again and again, the peoplepicker control value get append. i tried to clear its value when dropdown changed event but it not works. Here is the code i have used:
    $("input[title='Owner']").val("");
    var _PeoplePicker = $("div[title='Owner']");
           var _PeoplePickerTopId = _PeoplePicker.attr('id');
           var _PeoplePickerEditer = $("input[title='Owner']");
    //$(_PeoplePickerEditer).empty();
           _PeoplePickerEditer.val("test user");
           var _PeoplePickerOject = SPClientPeoplePicker.SPClientPeoplePickerDict[_PeoplePickerTopId];
           _PeoplePickerOject.AddUnresolvedUserFromEditor(true);  
    Thanks in advance...

    Hi,
    Please use the following code to delete the user list from the people picker
    var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[_PeoplePickerTopId]; // Get the instance of the People Picker from the Dictionary
    if (spPeoplePicker) {
    var ResolvedUsersList = $(document.getElementById(spPeoplePicker.ResolvedListElementId)).find("span[class='sp-peoplepicker-userSpan']");
    $(ResolvedUsersList).each(function (index) {
    spPeoplePicker.DeleteProcessedUser(this);
    Please mark it answered if resolved.

  • Assembly reference in List DispForm

    Hi,
    We migrated existing sharepoint 2010 to sharepoint 2013 Site in another machine, but in some of the lists DispForm.aspx, showing "could not load file or assembly or one of its dependencies. The System Cannot find the file specified".
    Even if we remove the assembly references from SharePoint Designer, page showing empty. So even we don't have that assembly file to deploy.
    So how to resolve that issue?
    Ravindranath

    Hi,
    Seems that these lists might have been corrupted during the migration.
    If the corrupted lists are not so many, I would suggest you create new lists to replace these corrupted lists, for the data transferring, the “Copy items” functionality
    in “Content and Structure” would be helpful:
    https://support.office.com/en-za/article/Work-with-site-content-and-structure-30fcaad9-02b1-4347-8b03-e1ccc5a4c19f
    Thanks
    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]

  • Question about free down loading Mavericks. On checking Mavericks before downloading that there are no Bangla language in the list. I occasionally use Bangla in my present Mountain Lion. My concerns if I down load Mavericks then what will happen to Bangla

    Question about free downloading Mavericks. On checking Mavericks before downloading that there are no Bangla language in the list. I occasionally use Bangla in my present Mountain Lion. My concerns is, if I download Mavericks then what will happen to Bangla language in mountain lion? Samar Laha

    No reason to be embarassed. You are not alone.
    You will need an external drive. If you have a Time Machine drive without enough disk space you can create the clone there however it's advised that you keep your Time Machine and clone on separate drives. If the drive dies you loose both types of backup.
    Download and install the clone software. Everyone has their favorite. These are the two most common applications used. I prefer SuperDuper because of it's simplicity in setting up. It's also free for the first clone where with CCC you have to give a Credit Card then cancel if you do not want to keep.
    SuperDuper! http://www.shirt-pocket.com/
    CCC http://www.bombich.com/download.html
    Select your drive in the To popup. Click on Copy Now. That's it.
    Yes, it really is that simple....

  • Adobe survey lists CS5.5 upgrade fee and subscription model

    Did anyone else get and take the Adobe survey that came out recently? It asked a ton of questions about what I'd be willing to pay for Adobe Creative Suite CS5.5 (unreleased) and if I'd rather pay a one-time fee or a ridiculously overpriced option for 'yearly subscription" where all future 'updates' are 'free'.
    This is disturbing due to the Adobe's track record as of late with releasing a X.0 and then having no updates until CSX comes out. Plus if you only buy the upgrade pricing of $599 every 18mo the proposed subscription model would be more than double that amount at the proposed $70-$100/mo ($1,680-$2,400 for 24 months!) listed in the survey. And the 'includes free updates' to me means "we won't issue any bug fixes or updates for your standard license but will be happy to make you pay twice for our .5 updates mid-cycle."
    I hope and pray this isn't what the future of Adobe has in store for those of us that live off these programs.

    Never mind, I was searching my email and I had an email from Adobe dated April 23.  It was in my spam folder though - which is why I never read it.  It states:
    Important changes to your Adobe® Creative Suite® subscription
    Dear Adobe Creative Suite subscriber:
    As announced, Adobe Creative Suite 6 software will be available soon. Your current one-year subscription will automatically be converted to a one-year Adobe Creative Cloud™ membership, at a lower overall price, when Creative Suite 6 becomes commercially available. This means you will continue to enjoy uninterrupted access to all of your existing software — and much more.
    The special introductory rate for Adobe Creative Cloud membership is US$29.99/month* for the one-year plan.No action is required on your part. Your credit card billing will automatically be adjusted at your next renewal date.
    Adobe Creative Cloud gives you the freedom to design anything you can imagine. Download and install any of the new Adobe Creative Suite 6 desktop apps you want, including blazingly fast new versions of Photoshop®, Illustrator®, and InDesign®. Use cloud storage and device syncing to reliably access your work and collaborate anywhere — on desktops, laptops, and even on tablets with new Adobe Touch Apps, including Photoshop Touch.† Build unique websites without writing code in Adobe Muse™, and deliver them with Adobe's web hosting. Best of all, your affordable monthly membership always keeps you up to date, with access to the latest upgrades and features as soon as they're released.
    So it appears my subscription will be going down in price and I will be able to upgrade at no additional charge.  That's sweet.  That beats spending $500 bucks.

  • Have questions about your Creative Cloud or Subscription Membership?

    You can find answers to several questions regarding membership to our subscription services.  Please see Membership troubleshooting | Creative Cloud - http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting- creative-cloud.html for additional information.  You can find information on such topics as:
    I need help completeing my new purchase or upgrade.
    I want to change the credit card on my account.
    I have a question about my membership price or statement charges.
    I want to change my membership: upgrade, renew, or restart.
    I want to cancel my membership.
    How do I access my account information or change update notifications?

    Branching to new discussion.
    Christym16625842 you are welcome to utilize the process listed in Creative Cloud Help | Install, update, or uninstall apps to install and evaluate the applications included with a Creative Cloud Membership.  The software is fully supported on recent Mac computers.  You can find the system requirements for the Creative Cloud at System requirements | Creative Cloud.

  • Follow-up question about forms and SharePoint Online

    I asked a question about life after InfoPath earlier, and got a good answer:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/fb23b3d9-8a09-4267-aab5-09929f6a3082/life-after-infopath-seeking-advice
    After looking at all of the limitations of SharePoint Online, I'm wondering how developers are dealing with the limitations. Lets say you are asked to develop something that has complex logic, including fetching data from external web services, dynamically
    displaying parts of a process to people depending on role, and ending up with a printable document. In our on-premises environment, InfoPath is well suited to this task, with some code behind for some things. Or, if not using InfoPath, we would use application
    pages and workflow.
    Neither of those are available in SharePoint Online, so what would you do?

    Some things, such as the conditional display of content, can be done via JavaScript. More advanced items, such as integrating external web services would likely require a SharePoint "app". A SharePoint app is essentially a link to a separate site
    that is running an asp.net web app (or PHP, or whatever). This asp.net site can do anything it needs with any web services, or conditional formatting, or anything. Because it's registered as a SharePoint app, it can also call back into the SharePoint site
    and work with data. So, a SharePoint App could present the user with a robust form that simply sends the data back to a SharePoint list. The SharePoint app can also be surfaced on the SharePoint site itself in an iframe, so the user won't know that the form
    is hosted by another server.
    By the way, the ideas behind the app model permeate the entire SharePoint environment: instead of having the SharePoint server itself run all kinds of custom business logic, that workload is handled by other servers, so the SharePoint servers can be focused
    on running the core bits of SharePoint. InfoPath puts a large load on the servers, so it's out.  XSLT list views also put a load on the server, so they're also out. SSRS is an amazingly fantastic tool, but is not supported in the cloud (and there's no
    alternative). Timer jobs, event handlers, workflow, and many other things have been re-architected to take the load off the SharePoint servers.
    Mike G.

  • EBS 12.1.3: a few questions about cloning

    Hi,
    We have EBS 12.1.3 on AIX 7.1.
    A few questions about cloning from shared application tier environment to non-shared application tier environment. We have been following "Cloning Oracle Applications Release 12 with Rapid Clone [ID 406982.1]"
    Source environment (shared app tier):
    - Two active application nodes and LB
    - One active database and one passive database setup with Oracle Data Guard.
    - SSL termination at the load balancer
    - PCP implemented
    Target environment (non-shared app tier):
    - One active application node
    - One active database node
    - No SSL
    - No PCP
    After the cloning was completed we noticed the following problems in the target system:
    1) Home page cannot be accessed as application tier $CONTEXT_FILE still contains "https" and ssl termination settings.
    Workaround:
    Modify (with text editor) Application Tier $CONTEXT_FILE as follows.
    <webentryurlprotocol oa_var="s_webentryurlprotocol" customized="yes">http</webentryurlprotocol>
    <sslterminator oa_var="s_enable_sslterminator">#</sslterminator>
    <login_page oa_var="s_login_page" customized="yes">http://myhost.mydomain.com:8000/OA_HTML/AppsLogin</login_page>
    <externURL oa_var="s_external_url" customized="yes">http://myhost.mydomain.com:8000</externURL>
    Run AutoConfig and start application tier.
    Is there a better and supported solution for this?
    2) Concurrent managers do not work correctly as they have still old node names (used in PCP in the source system). Workaround used:
    1. Logon to EBS web GUI and remove all nodes from all concurrent managers.
    2. Shutdown application tier. Verify that all concurrent managers have been shutdown. If not, kill the processes manually
    3. As apps user run cmclean.sql
    4. Restart application tier
    Is there a better solution for this?
    3) Database changes from ARCHIVELOG mode to nonarchivelog mode in the target system. Is there anyway to prevent this?
    4) Also, we would like to perform a full clone (app + db tiers) from production without shutting down the application. Is this possible? What would be the best documents to describe this? In Production, we have Oracle Data Guard setup with physical standby as per "Oracle Tech Note: Business Continuity for Oracle E-Business Release 12 Using Oracle 11g Physical Standby Database [ID 1070033.1]". This can be used when performing a hot clone for the database, right? What about the application tier? Steps described in 406982.1 include running AutoConfig in which application tier should be down. Does the application need to be down when running "Maintain Snapshot Information"?
    5) One final question (not related to cloning). Oracle Enterprise Manager console webUI has recently stopped working in IE8. E.g. https://myhost.mydomain.com:5501/em gives "Page cannot be displayed". This was working correctly last week. In Firefox, the same link is working fine. Any ideas how to fix this?
    Thanks for your answers in advance.
    BR,
    TH

    1) Home page cannot be accessed as application tier $CONTEXT_FILE still contains "https" and ssl termination settings.
    Workaround:
    Modify (with text editor) Application Tier $CONTEXT_FILE as follows.
    <webentryurlprotocol oa_var="s_webentryurlprotocol" customized="yes">http</webentryurlprotocol>
    <sslterminator oa_var="s_enable_sslterminator">#</sslterminator>
    <login_page oa_var="s_login_page" customized="yes">http://myhost.mydomain.com:8000/OA_HTML/AppsLogin</login_page>
    <externURL oa_var="s_external_url" customized="yes">http://myhost.mydomain.com:8000</externURL>
    Run AutoConfig and start application tier.
    Is there a better and supported solution for this?No, you need to edit the context file manually and run AutoConfig.
    2) Concurrent managers do not work correctly as they have still old node names (used in PCP in the source system). Workaround used:
    1. Logon to EBS web GUI and remove all nodes from all concurrent managers.
    2. Shutdown application tier. Verify that all concurrent managers have been shutdown. If not, kill the processes manually
    3. As apps user run cmclean.sql
    4. Restart application tier
    Is there a better solution for this?You are following the best approach. You could update the node details from the backend if you want.
    3) Database changes from ARCHIVELOG mode to nonarchivelog mode in the target system. Is there anyway to prevent this?By default, Rapid Clone will create the target database in noarchivelog mode.
    4) Also, we would like to perform a full clone (app + db tiers) from production without shutting down the application. Is this possible? What would be the best documents to describe this? In Production, we have Oracle Data Guard setup with physical standby as per "Oracle Tech Note: Business Continuity for Oracle E-Business Release 12 Using Oracle 11g Physical Standby Database [ID 1070033.1]". This can be used when performing a hot clone for the database, right? Correct.
    What about the application tier? Steps described in 406982.1 include running AutoConfig in which application tier should be down. Does the application need to be down when running "Maintain Snapshot Information"?You can copy the application tier node files while the application is up. And, you do not need to shutdown the application to run "Maintain Snapshot Information".
    5) One final question (not related to cloning). Oracle Enterprise Manager console webUI has recently stopped working in IE8. E.g. https://myhost.mydomain.com:5501/em gives "Page cannot be displayed". This was working correctly last week. In Firefox, the same link is working fine. Any ideas how to fix this?
    If it is working from one browser, then it should not be an EM issue. Have you tried from a different client and see if this works? Have you changed any setting in your IE browser? Please make sure you add the EM URL to the trusted sites list.
    Thanks,
    Hussein

  • Question about autodiscover in case of multiple bound namespace

    Hi Experts,
    I have a question about the autodiscover behaviour. Let's assume we have the below infrastructure:
    SiteA :
    MBX-Server-SiteA : Member of a DAG
    CAS-Server-SiteA : outlook anywhere url = siteA.domain.com
    SiteB :
    MBX-Server-SiteB : Member of a DAG
    CAS-Server-SiteB-1 : outlook anywhere url = siteB-1.domain.com
    CAS-Server-SiteB-2: outlook anywhere url = siteB-2.domain.com
    We have DB-1 and DB-2 that have copies in both MBX servers.
    My question is how does exchange select the access URLs to return in the autodiscover process? I know that it depends on where the mailbox is hosted but can't find details about the process in the technet articles.
    Thanks.

    There's quite a few details that are involved in the Autodiscover process. First of all - probably the most important thing is that there are 2 stages to the whole process.
    In the first stage, the client is simply concerned with getting the address of a CAS server that will help it further. We'll keep things simple and assume your scenario where the client is located inside the network and is domain-joined. The details of the
    LDAP query are detailed in
    this link. (At the time I was investigating this I've actually went ahead and ran the queries using the ldp.exe client against the Configuration partition of the respective AD domain - it's worth seeing the actual responses.) An interesting trick here is
    the 'keywords' attribute that's stamped on those SCP entries. The reason behind it is that you don't want a client located in a site to go half across the globe in order to connect to a CAS server, when there's one available in its own site. One simple way
    to get the 'keywords' attribute stamped is through the Set-ClientAccessServer cmdlet, using the -AutodiscoverSiteScope parameter. In your example, you'd probably want to run it against the CAS server in Site A and specify the name of the corresponding AD site
    ('SiteA') and correspondingly against the 2 CAS servers in Site B (using 'SiteB'). Once the client has got the response to his query, it will attempt to select one server that's handling the site he's in (essentially it will filter the results based on 'keywords'
    -contains <client-site>). Now that we got our endpoint we can go to stage 2.
    In stage 2, the client will actually use EWS in order to query the Autodiscover service itself running on our target server. There are 2 possible interfaces of accessing the Autodiscover service: POX (Plain Old XML) and SOAP. POX will be targeting the ../Autodiscover.xml
    URLS, while the SOAP one will be using ../Autodiscover.svc URLs. Details about this including some hardcoded parts are
    here. What happens next is detailed in point 3, section 2.1 The Autodiscover Process
    here. This last link is the key to the whole process:
    "It provides a list of CAS that has AutodiscoverSiteScope information set for the
    Associated AD site of the Database where the client Mailbox is located."
    In other words, the CAS is smart enough to return the URLs belonging to a CAS server in the AD site where the client's mailbox' database is active.
    My advice is to test this on your scenario. Tests can be done here first-hand: the Outlook's tray icon Test E-Mail AutoConfiguration can be used or alternatively - if you want to see the details in the communication - SoapUI
    for the SOAP access method, for POX there's an extension called 'Postman for Chrome' that can be used. I've used all these in my tests back when I was fighting conflicting results from the articles around the web about Autodiscover.
    That's a long way of saying we get the AutoD URL of a CAS server closest to the workstation, which then provides the configuration to use which are the the URLs closest to the mailbox  :)
    By all means look at the SOAP response, but Outlook will only use POX.  Lync does SOAP along with other 3rd party apps.
    Cheers,
    Rhoderick
    Microsoft Senior Exchange PFE
    Blog:
    http://blogs.technet.com/rmilne 
    Twitter:   LinkedIn:
      Facebook:
      XING:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Basic questions about programing for J9 VM

    I need to create a java application to run on a Pocket PC 2003 OS and I'm limited to using IBM's Websphere J9 Virtual Machine. I'm new to using java in this capacity and therefore have lots of questions which I'm guessing are pretty basic. Despite my best efforts, I've found very little to help me online. Below are a couple questions I have that I'm hoping someone can help me with. Even better, if you know of any resources that could help me with these and other questions, I'd love to have them. Thanks in advance.
    1. I'm using standard AWT for the GUI but I'm having problems getting frames, dialogs, etc., to come up in anything less then full screen. setSize() and resize() have no effect, even if I extend the frame and override the setMinimumSize, setPreferredSize, setMaximumSize methods. What do I need to do to get a child window to appear in something less than full screen?
    2. I'd like to be able to add menu's to the buttom toolbar (with the keyboard) but have no idea how I would add something to it. Can someone point me in the right direction?
    3. When my application gets an iconified event I go ahead and call a System.exit() to exit the application. This doesn't kill the java VM though, which continues to run in the background (taking up plenty of memory). If I run my application using the J9w.exe so that it runs without the console, then not only does the VM continue to run, but I have no way to stop it (the running program list can't see it). Since each time I run my application it starts a new VM, it only takes a couple of times before I'm out of memory and have to do a soft reset of the PDA to make things right. Can I kill the VM when I kill my application?
    4. I learn best by looking at example code, but have been unable to find any code people are running on J9. I have the GolfScoreTracker installed and running on my PDA, but the jar file contains only the classes. Since it's supposed to be a demo, I had hoped that the source code would be included, is that hoping too much or is the source code available somewhere? In addition, if you know of any applications out there with available source code that are known to run well on a PocketPC J9 environment I'd appreciate the link.

    Hi there, I saw your questions, im currently developing a java pocket pc application as well and here's what i go so far:
    AWT seem to be hard to use on pocket pc, instead i recommend that you use SWT, which is a technology developed by eclipse. It's already installed on the eclipse plugins, you just need to download the jar and dll files for the pocket pc. They are available at: http://www.eclipse.org/downloads/index.php
    I assume that you already have the J9 working on your device. So you only need to copy the SWT.jar file and the swt-win32-3064.dll to the folder containing the .class files on your device.
    Now, on your java IDE(im using eclipse) Add the SWT.jar library to your project which should be on C:/eclipse/plugins/org.eclipse.swt.win32_3.0.2/ws/win32/swt.jar or something like taht depending on your eclipse root.
    Now you are ready to code some SWT, here is a sample program from Carolyn MacLeod, i modified a few things so it could run on the pocket pc but it's almost the same. Once you coded in eclipse run it, then copy the class file from your desktop to your device(There should be like 4 or 5 classes like sample.class, sample$1.class etc. copy all of them) where you put the jar and dll files(If program does not run you may try to rename the dll file for swt-win32-3050.dll instead of 3064.dll). Now after you have everything set up you need to create the lnk file in order to run the program. On your desktop create a new textfile and write the following on it:
    255#"\Archivos de Programa\J9\PPRO10\bin\j9w.exe" "-jcl:PPRO10" "-cp" "\My
    Documents\Java\swt.jar" ;\My Documents\Java" sample
    Paths depend on your install, and the place where you put your classes and jar file. path for j9w is usually "\Program Files\J9\PPRO10\bin\j9w.exe", and the last word should be the classname.
    Currently this form only displays an image on a canvas, click on the browse button and choose a pic and it will display on the canvas. Im trying to connect the form to an oracle database but no success yet on the device.
    Hope it helps, if you have any questions about the code or something, and I know the answer, please feel free to ask.
    See ya
    import org.eclipse.swt.*;
    import org.eclipse.swt.widgets.*;
    import org.eclipse.swt.layout.*;
    import org.eclipse.swt.events.*;
    import org.eclipse.swt.graphics.*;
    public class sample {
    static Shell shell;
    static Display display;
    static Text dogName;
    static Text textdb;
    static Combo dogBreed;
    static Canvas dogPhoto;
    static Image dogImage;
    static List categories;
    static Text ownerName;
    static Text ownerPhone;
    static String[] FILTER_EXTS = {"*.jpg"};
    public static void main(String[] args) {
    display = new Display();
    shell = new Shell(display, SWT.RESIZE | SWT.CLOSE);
    Menu menu = new Menu(shell, SWT.BAR);
    shell.setText("Dog ShowS Entry");
    shell.setMenuBar(menu);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 3;
    shell.setLayout(gridLayout);
    new Label(shell, SWT.NONE).setText("Dog's NameS:");
    dogName = new Text(shell, SWT.SINGLE | SWT.BORDER);
    GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    gridData.horizontalSpan = 2;
    gridData.widthHint = 60;
    dogName.setLayoutData(gridData);
    new Label(shell, SWT.NONE).setText("Breed:");
    dogBreed = new Combo(shell, SWT.NONE);
    dogBreed.setItems(new String [] {"Collie", "Pitbull", "Poodle", "Scottie"});
    dogBreed.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
    Label label = new Label(shell, SWT.NONE);
    label.setText("Categories");
    label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
    new Label(shell, SWT.NONE).setText("Photo:");
    dogPhoto = new Canvas(shell, SWT.BORDER);
    gridData = new GridData(GridData.FILL_BOTH);
    gridData.widthHint = 60;
    gridData.verticalSpan = 3;
    dogPhoto.setLayoutData(gridData);
    dogPhoto.addPaintListener(new PaintListener() {
    public void paintControl(final PaintEvent event) {
    if (dogImage != null) {
    event.gc.drawImage(dogImage, 0, 0);
    categories = new List(shell, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
    categories.setItems(new String [] {
    "Best of Breed", "Prettiest Female", "Handsomest Male",
    "Best Dressed", "Fluffiest Ears", "Most Colors",
    "Best Performer", "Loudest Bark", "Best Behaved",
    "Prettiest Eyes", "Most Hair", "Longest Tail",
    "Cutest Trick"});
    gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL);
    gridData.widthHint = 60;
    gridData.verticalSpan = 4;
    int listHeight = categories.getItemHeight() * 12;
    Rectangle trim = categories.computeTrim(0, 0, 0, listHeight);
    gridData.heightHint = trim.height;
    categories.setLayoutData(gridData);
    Button browse = new Button(shell, SWT.PUSH);
    browse.setText("BrowsePic");
    gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    gridData.widthHint = 60;
    browse.setLayoutData(gridData);
    browse.addSelectionListener(new SelectionAdapter() {
         public void widgetSelected(SelectionEvent event) {
              FileDialog dialog = new FileDialog(shell, SWT.OPEN);
              dialog.setFilterExtensions(new String[] {"*.*"});
              String fileName = dialog.open();
    if (fileName != null) {
    dogImage = new Image(display, fileName);
    shell.redraw();
    Button delete = new Button(shell, SWT.PUSH);
    delete.setText("No action");
    gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_BEGINNING);
    gridData.widthHint = 60;
    delete.setLayoutData(gridData);
    delete.addSelectionListener(new SelectionAdapter() {
    public void widgetSelected(SelectionEvent event) {
    Button enter = new Button(shell, SWT.PUSH);
    enter.setText("No action");
    gridData = new GridData(GridData.HORIZONTAL_ALIGN_END);
    gridData.horizontalSpan = 3;
    enter.setLayoutData(gridData);
    enter.addSelectionListener(new SelectionAdapter() {
    public void widgetSelected(SelectionEvent event) {
         shell.open();
         while (!shell.isDisposed()) {
              if (!display.readAndDispatch())
                   display.sleep();
         display.dispose();
    if (dogImage != null) {
    dogImage.dispose();
    }

  • Basic Questions about PLD

    Hi,
    I have three general questions about using print layouts.
    1) How to select different layouts depending on the business case (not dependent on the BP):
    When I want to print an invoice NOT using the default layout, how can I quickly choose another layout? Just selecting one layout of the list and clicking the Ok button didn't have any effect. Do I first have to change the default layout before I can print the invoice in this other layout???
    2) In our old computer system, we have a lot of terms that can optionally be added to the invoice depending on each business case. I wonder if I have to create different layouts for all the combinations of terms that might occur or if there is any other possibility of working with text modules?
    3) Is it possible to add any sentences manually to the print document without changing the print layout?
    And last but not least, where can I find PLD manuals?
    Thanks a lot in advance!
    Corinna

    Hi,
    1) How to select different layouts depending on the business case (not dependent on the BP):
    Answer : Yes, you do  first have to change the default layout before printing.
    2) In our old computer system, we have a lot of terms that can optionally be added to the invoice depending on each business case. I wonder if I have to create different layouts for all the combinations of terms that might occur or if there is any other possibility of working with text modules?
    Answer: I would think that is the easiest option for PLD.
    Otherwise, if you have Crystal Report and also Crystal Report Add On installed, then you can create your layout in Crystal report.
    Note that if you are using SAP 2007, you can only print them as report, not within the specific screen, example, go to invoice and print the report created.
    However, in SAP 8.8, this facility is available.
    3) Is it possible to add any sentences manually to the print document without changing the print layout?
    Answer, No, not with PLD.
    4) where can I find PLD manuals?
    When you logon on SAP Business one portal, click on "Document Resource Center" and there are heaps of documents there including PLD.
    Edited by: Shwu Hua Gan on Feb 14, 2010 11:03 PM

Maybe you are looking for