+ Post New Thread
Page 6 of 9 FirstFirst ... 23456789 LastLast
Results 76 to 90 of 135
Home Access Plus+ Thread, Basic Help Needed! in Projects:; I thought there was a way of exporting from the SIMS report definition into StaticBookings using the SIMS import through ...
  1. #76

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I thought there was a way of exporting from the SIMS report definition into StaticBookings using the SIMS import through the Control Panel of the BookingSystem?

    Do I have to manually add all those entries in one by one, lesson for lesson, day for day, for a two week time table?

  2. #77
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    You should be able to use the SIMS Import Button, but for some reason it has just copied the SIMS export

  3. #78

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Any idea why that happened?

  4. #79
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    Can you try this dll

  5. #80

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Getting the following:
    Code:
    Server Error in '/HAP' Application.
    
    Object reference not set to an instance of an object.
    
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
    
    Source Error: 
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    
    Stack Trace: 
    
    
    [NullReferenceException: Object reference not set to an instance of an object.]
       HAP.Web.BookingSystem.admin.Default.importSIMS_Click(Object sender, EventArgs args) in N:\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\BookingSystem\admin\Default.aspx.cs:178
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

  6. #81

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hm, after trying it again, it's imported this from the Timetable.xml exported from SIMS:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <Bookings>
      <Booking day="1" lesson="Period 1" room="BS1" name="Year 12 Media" username="SellickT" />
      <Booking day="2" lesson="Period 3" room="Ha" name="Year 7 Dance" username="hollr" />
      <Booking day="1" lesson="Period 1" room="IT1" name="Year 9 DT" username="GoodeD" />
      <Booking day="1" lesson="Period 1" room="IT2" name="Year 10 IT" username="LewisG" />
      <Booking day="1" lesson="Period 1" room="IT3" name="Year 8 IT" username="tennysone" />
      <Booking day="1" lesson="Period 1" room="IT4" name="Year 10 IT" username="wilsonc" />
      <Booking day="1" lesson="Period 2" room="IT5" name="Year 11 Biology" username="collp" />
      <Booking day="1" lesson="Period 1" room="IT6" name="Year 12 Travel &amp;" username="magilc" />
      <Booking day="1" lesson="Period 1" room="L4" name="Year 8 Spanish" username="faria" />
      <Booking day="1" lesson="Period 2" room="LRC" name="Year 12 Business" username="stridl" />
    </Bookings>
    That's getting somewhere, but I don't think its understood two week timetables.

  7. #82
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    Odd, it should of done. It's set to just look for B and add 5 to the count

  8. #83

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Any suggestions?

  9. #84
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    What you included above, is that all or just some?

    If it isn't doing the days correctly, but putting everything else in, just change the day numbers

  10. #85
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    Also try

  11. #86

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    That was all that was imported into StaticBooking.xml. However the actual Timetable.xml from SIMS is very populated, there's usually only one or two lessons free per day per room. So you can imagine that the timetable has a lot of info, with 7 periods per day.

    If I were to manually add the rooms in, how does HAP understand two week timetables?

    if:

    <Booking day="1" lesson="Period 1" room="BS1" name="Year 12 Media" username="SellickT" /> = Week A - Monday - Period 1

    How do I get HAP to understand Week B - Monday - Period 1?

  12. #87
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    Add 5 to the day. Try the updated dll

  13. #88

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I have tried DLL and it hasn't worked. It's still only importing those select few, and its getting the days wrong.

    It appears it isn't understanding MonA:1 as being Week 1 Period 1, etc.

    EDIT:

    Just found a pattern. It's only adding one entry per room.

    It'll add MonA:1 in BS1, because it can see <name>BS1</name> but then not do MonA:2, etc, it'll just skip it until it sees the next <Name>Room</Name>

    For example:

    Code:
    <SuperStarReport>
      <Record>
        <Name>BS1</Name>
        <MainTeacher>Mr T Sellick</MainTeacher>
        <Description>Media</Description>
        <Name1>MonA:1</Name1>
        <YearGroup>Year 12</YearGroup>
      </Record>
      <Record>
        <MainTeacher>Mrs C V Hallwood</MainTeacher>
        <Description>Business</Description>
        <Name1>MonA:2</Name1>
        <YearGroup>Year 10</YearGroup>
      </Record>
    It will add the first record, as it can see a <Name>BS1</Name>, however because the next record doesn't have a Name tag, it will skip it, and the rest, until it finds the next Name tag. Which in this case is <Name>Ha</Name>.
    Last edited by CHiLL; 24th November 2011 at 03:56 PM.

  14. #89
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    Ah, edited the SIMS Report, unticking the suppress duplicates option on the last page

  15. #90
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    I've updated the report definition on codeplex removing the suppress duplicates

SHARE:
+ Post New Thread
Page 6 of 9 FirstFirst ... 23456789 LastLast

Similar Threads

  1. I need basic help with Thinstaion hard disk deployments.
    By snsweigel in forum Thin Client and Virtual Machines
    Replies: 9
    Last Post: 4th March 2008, 07:44 PM
  2. Replies: 8
    Last Post: 22nd February 2008, 12:34 PM
  3. Help! Need a BIOS re-flashed
    By ajbritton in forum Hardware
    Replies: 2
    Last Post: 28th December 2006, 12:16 PM
  4. Help needed to reconfig my DC's
    By tosca925 in forum Windows
    Replies: 16
    Last Post: 20th November 2006, 10:45 PM
  5. Help needed creating a DMZ
    By pooley in forum Wireless Networks
    Replies: 12
    Last Post: 11th January 2006, 10:42 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •