Go Back   SmartClient Forums > Installation
Wiki Register Search Today's Posts Mark Forums Read

Thread Tools Search this Thread
Old 28th Jan 2012, 13:29
RickBollinger RickBollinger is offline
Registered Developer
Join Date: Nov 2011
Posts: 228
Default Trouble creating clientOnly datasource

I am trying to create a datasource to keep in memory and remember the current values for things. I tried to edit the XML below and add a clientOnly: true parameter. But, all it did was hang VB.

I tried to find examples in the docs. There was plenty of discussion, but it never got to the level I needed. I saw talk of Admin Console, but could not figure out how to accomplish it there.

I supplied a dataURL, but did not see anywhere in the console log where it was being read. I saw complaints that it tried to look in the test_data folder. So, I moved a copy of my JSON file there named Current.data.js with no luck.

I just need a one record JSON file to stand in for what I need to start my app. I believe it can be done. I may have done this last year when I was experimenting. I blew it all away and started fresh with a new version in the new year.

Just my luck.

<DataSource ID="Current" dataFormat="json" dataURL="file:///D:/Eclipse/New%20Product/Database/Current.json">
        <field name="AccountID" type="integer" hidden="true" foreignKey="Account.ACCOUNTID"/>
        <field name="LicenseID" type="integer" hidden="true" foreignKey="License.LICENSEID"/>
        <field name="CommunityID" type="integer" hidden="true" foreignKey="Community.COMMUNITYID"/>
        <field name="CommunityName" type="text" title="Community" hidden="false"/>
        <field name="OrganizationID" type="integer" hidden="true" foreignKey="Organization.ORGANIZATIONID"/>
        <field name="TeamMemberID" type="integer" hidden="true" foreignKey="TeamMember.TEAMMEMBERID"/>
        <field name="TeamMemberName" type="text" title="Welcomes"/>
        <field name="ProjectID" type="integer" hidden="true" foreignKey="Project.PROJECTID"/>
        <field name="IssueID" type="integer" hidden="true" foreignKey="Issue.ISSUEID"/>
        <field name="TaskID" type="integer" hidden="true" foreignKey="Task.TASKID"/>
        <field name="MeetingTypeID" type="integer" hidden="true" foreignKey="MeetingType.MEETINGTYPEID"/>
        <field name="ReportTypeID" type="integer" hidden="true" foreignKey="ReportType.REPORTTYPEID"/>
        <field name="MeetingTopicID" type="integer" hidden="true" foreignKey="MeetingTopic.MeetingTopicID"/>
        <field name="ReportTopicID" type="integer" hidden="true" foreignKey="ReportTopic.ReportTopicID"/>
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download a File error RHill Technical Q&A 12 5th Mar 2012 10:07
Filter on foreign table valbosoft Smart GWT Technical Q&A 22 4th Jan 2012 12:50
java.lang.NoClassDefFoundError: com/smartgwt/client/data/DSCallback on server side maksymg Smart GWT Technical Q&A 1 6th Oct 2011 16:30
Problem with file upload rothmich Technical Q&A 3 26th Oct 2010 06:03
The Smart GWT FAQ Isomorphic Smart GWT Technical Q&A 0 27th Oct 2009 17:41

© 2008 and beyond Isomorphic Software. All Rights Reserved