NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - GordonF

Pages: 1 [2] 3 4 ... 6
16
Web Server - Ask For Help / Goto First Page in NetWebBrowse
« on: November 18, 2021, 04:59:09 AM »
I'm probably missing something obvious but can anyone tell me how to force a browse list to goto the first page. Basically I have a popup update form on a browse and after an insert I want to go to the first page of the calling browse not the last, any ideas?

Gordon



17
Web Server - Ask For Help / Re: html textarea in a browse
« on: November 08, 2021, 01:47:11 AM »
Many thanks for both of your help, I've used both suggestions and it works just fine, I can work on the line limit separately.

Gordon

18
Web Server - Ask For Help / Re: Tree Field Type
« on: November 05, 2021, 06:44:35 AM »
Thanks Niels,

I'm probably wrong but I think it will involve a script being added to the page to notify the server of a selection.

19
Web Server - Ask For Help / Re: Tree Field Type
« on: November 05, 2021, 05:32:16 AM »
Hi Niels did you ever find out if this is possible?

Gordon

20
Web Server - Ask For Help / html textarea in a browse
« on: November 05, 2021, 03:22:25 AM »
Is there a way to have an html textarea in a browse?

I realise that strings can become multi-line if long enough but only by word wrapping, line breaks are not respected. I really need a method to correctly display text containing line breaks in a browse row, ideally limited to a number of lines with a scroll bar, no EIP ability is required for my needs so readonly is fine.

Gordon

21
Web Server - Ask For Help / Re: NetWebYear Planner Alignment
« on: October 18, 2021, 04:08:06 AM »
Thank you for your help Jeff I now have the look I want, my users like the borders on the rows as they assist in selecting a time.

The additions I've made in custom.css are:

.planner-header-data-height{
height: 22px;
padding: 0;
}

.nt-relativerow{
border: 1px solid #dddddd;
position:relative;
height: 24px;
width: 100%;
}

Please note the 24px is specific to my calendar, the p_height parameter in DrawRow isn't passed through to DrawPlanRow (this would be useful) so I forced it in the css.

Change in NetWeb.clw:

NetWebServerWorkerBase.DrawPlanRow   Procedure(String p_ParentId,NetPlannerDataQueueType p_Queue)
Packet      StringTheory
y           Long
  code
    packet.SetValue('data-nt-row="data" data-nt-parent="' & clip(p_ParentId) & '"')
** this line is now >    self.DivHeader(p_ParentId,'planner-data-width nt-relativerow',Net:Send+Net:Crc,,packet.GetValue())

Gordon


22
Web Server - Ask For Help / Re: NetWebYear Planner Alignment
« on: October 18, 2021, 03:14:15 AM »
Hi Jeff the issue is with the time calculation in the insert form, the code generated looks like this:

  If p_web.GetValue('_Time_') > 0
    CAL:StartTime = 1 + int((p_web.GetValue('_Time_') + (G_APPTCTR:Intervals * 6000)/2)/(G_APPTCTR:Intervals * 6000))* (G_APPTCTR:Intervals * 6000)  ! taken from priming tab
  end

but I think it should look like this, certainly this behaves as I'd expect:

  If p_web.GetValue('_Time_') > 0
    CAL:StartTime = 1 + int(p_web.GetValue('_Time_')/(G_APPTCTR:Intervals * 6000))* (G_APPTCTR:Intervals * 6000)  ! taken from priming tab
  end

The lines to look for in NwtWeb.tpw are:

  If p_web.GetValue('_Time_') > 0
      #IF(%PrimetimeNearest)
    %PrimeTime = 1 + int((p_web.GetValue('_Time_') + (%PrimetimeNearest)/2)/(%PrimetimeNearest))* (%PrimetimeNearest)  ! taken from priming tab
      #ELSE
    %PrimeTime = p_web.GetValue('_Time_')     ! taken from priming tab
      #ENDIF
  end

which I've changed to:

  If p_web.GetValue('_Time_') > 0
      #IF(%PrimetimeNearest)
    %PrimeTime = 1 + int(p_web.GetValue('_Time_')/(%PrimetimeNearest))* (%PrimetimeNearest)  ! taken from priming tab
      #ELSE
    %PrimeTime = p_web.GetValue('_Time_')     ! taken from priming tab
      #ENDIF
  end

I think the current code calculates the time closest to the the click position but my feeling is that the user will expect the row to be all the same time.

I hope this helps.

Gordon

23
Web Server - Ask For Help / Re: NetWebYear Planner Alignment
« on: October 17, 2021, 11:21:37 PM »
Hi Jeff,

Thank you for the information it was really helpful, I have added an entry into custom.css to override the style and it does indeed solve the alignment problem.

That leaves one outstanding issue and that is the row clicked calculation which is vertically shifted, in fact the top row only has a very narrow click position in the top section of the row. In short clicking in the bottom third of a row gives the start time for the next row.

I'll get back to you with any additional info I discover, although I'm away now for 2 weeks.

Gordon

24
Web Server - Ask For Help / NetWebYear Planner Alignment
« on: October 14, 2021, 03:34:04 AM »
Can anyone help with correcting the vertical alignment of the planner entries relative to the time cells on the left.

I've attached an image from the hotdates example (No. 12), I've forced the event to display at the very left just to highlight the issue.

As you can see the event starts and ends lower than the corresponding time row boundary, also the click to insert areas are similarly offset, meaning if a user clicks in the top few pixels of a time row they actually get a record start time for the time cell before. The effect changes a little with the theme used but it is always there, using the base theme (which I do in my app) the date column headers are partially covered by an event in the first time slot.

I've also attached an image with one of the date/time click rows (08:35) bordered in blue to clarify the issue.

Any help would be greatly appreciated as I have used the planner to create a very useful appointment book and this is the final refinement I need.

Gordon

25
Web Server - Ask For Help / Tree control that supports multi-line text
« on: October 13, 2021, 02:11:46 AM »
Hi,

Sorry I seem to be asking questions very frequently, but in my defence I only started using WebServer early this year so I've a lot to learn.

I would like to be able to produce a view in my web app similar to my desktop app (image attached), this is to allow for display, insertion and revision of clinical notes, as well as showing revision data in a lower level than the current note version.

My desktop app has a tree structure that allows for multi line text fields, that is text with line breaks not just text wrapping although that too. On clicking I can detect the node clicked and respond accordingly.

I have started looking at the Tree control in WebServer and it supports text wrapping but I can't make it display line breaks for multi line text, although that may well be my lack of knowledge. The second problem I ran into is determining which node was clicked, I can detect the user clicked in the ValidateValue routine and also in validate::atree, but I have no idea how to determine the specific node that was clicked.

It seems to be so close to what I need so any help would be greatly appreciated, even if it is use a different specific control.

Best Regards
Gordon

26
Web Server - Ask For Help / Re: Tree Field Type
« on: October 13, 2021, 01:53:49 AM »
I too would be very interested in this information.

27
Web Server - Ask For Help / Re: NetWebYear or other scheduler
« on: October 13, 2021, 12:34:06 AM »
Hi Bruce, I've emailed my NetWeb.clw, thank you for looking into this.

28
Web Server - Ask For Help / Re: NetWebYear or other scheduler
« on: October 12, 2021, 07:02:03 AM »
Hi Bruce,

I've produced a solution that will suffice for the time being as it works well, I've attached a partial screen shot.

I have made a few changes to DrawPlanRow in NetWeb.clw which I realise has potential issues in future updates of WebServer. The only limitation I currently have is being limited to one day because of the 'nt-relative' attribute in the class, this causes a background element on day 2 to be placed after the similar timed element in  day 1, although in the correct column. I think I can solve this if required by taking a look more closely at the 'nt-relative' and 'planner-data' definitions as a none responsive version of 'planner-data' would be ideal, but that is for another day.

Thank you for your help.

NetWebServerWorkerBase.DrawPlanRow   Procedure(String p_ParentId,NetPlannerDataQueueType p_Queue)
Packet      StringTheory
y           Long
  code
    packet.SetValue('data-nt-row="data" data-nt-parent="' & clip(p_ParentId) & '"')
    self.DivHeader(p_ParentId,'planner-row-size nt-relative',Net:Send+Net:Crc,,packet.GetValue())

    loop y = 1 to records(p_Queue)
      Get(p_Queue,y)

      If Lower(clip(p_Queue.Css)) = 'background'
        packet.SetValue('<div ')
        If p_Queue.StartDate or p_Queue.StartTime
          packet.append(self.wrap('data-nt-start-date',p_Queue.StartDate))
          packet.append(self.wrap('data-nt-start-time',p_Queue.StartTime))
        end
        If p_Queue.EndDate or p_Queue.EndTime
          if p_Queue.EndTime > 8640000
            p_Queue.EndDate += (p_Queue.EndTime/8640000)
            p_Queue.EndTime = p_Queue.EndTime % 8640000
          end
          packet.append(self.wrap('data-nt-end-date',p_Queue.EndDate))
          packet.append(self.wrap('data-nt-end-time',p_Queue.EndTime))
        end
        packet.append(self.wrap('data-nt-column',p_Queue.column))
        packet.append(self.wrap('data-nt-id',p_Queue.Hash))
        packet.append(self.wrap('data-nt-margin',p_Queue.Margin))
        packet.append(self.CreateTip(p_Queue.Tip,p_Queue.TipHtml))
        packet.append(' class="planner-data-width planner-data-height nt-relative"')
        packet.append(' data-nt-row="data"')
        packet.append(' data-nt-parent="' & p_ParentId & '"')
        packet.append(self.wrap('style',p_Queue.Style))
        packet.append('></div>' & self.CRLF)
        do SendPacket
      Else
        packet.SetValue('<div ')
        If p_Queue.StartDate or p_Queue.StartTime
          packet.append(self.wrap('data-nt-start-date',p_Queue.StartDate))
          packet.append(self.wrap('data-nt-start-time',p_Queue.StartTime))
        end
        If p_Queue.EndDate or p_Queue.EndTime
          if p_Queue.EndTime > 8640000
            p_Queue.EndDate += (p_Queue.EndTime/8640000)
            p_Queue.EndTime = p_Queue.EndTime % 8640000
          end
          packet.append(self.wrap('data-nt-end-date',p_Queue.EndDate))
          packet.append(self.wrap('data-nt-end-time',p_Queue.EndTime))
        end
        packet.append(self.wrap('data-nt-column',p_Queue.column))
        packet.append(self.wrap('data-nt-id',p_Queue.Hash))
        packet.append(self.wrap('data-nt-form',p_Queue.Form))
        packet.append(self.wrap('data-nt-margin',p_Queue.Margin))
        packet.append(self.CreateTip(p_Queue.Tip,p_Queue.TipHtml))
        If p_Queue.Css
          packet.append(' class="nt-hard-left planner-data-width planner-data-height planner-data ui-corner-all '&clip(p_Queue.Css)&'"')
        Else
          packet.append(' class="nt-hard-left planner-data-width planner-data-height planner-data ui-corner-all"')
        End
        packet.append(self.wrap('style',p_Queue.Style))
        packet.append('><div class="planner-data-text">' & self._jsok(p_Queue.Content,p_queue.ContentHtml) & '</div></div>' & self.CRLF)
        do SendPacket
      End
    end
    self.DivFooter()

SendPacket  routine
  self.ParseHTML(packet,1,0,NET:NoHeader)
  packet.setvalue('')

29
Web Server - Ask For Help / Re: NetWebYear or other scheduler
« on: October 10, 2021, 11:41:40 PM »
Hi Bruce,

Is the webinar Thursday this week, I'll try to attend.

Gordon

30
Web Server - Ask For Help / Re: NetWebYear or other scheduler
« on: October 08, 2021, 04:32:05 AM »
Hi Bruce,

I don't think I gave a clear explanation of what I'm trying to achieve. All I actually want to do is colour individual cells so at a glance the user can see available time for a given clinician on a specific date and also identify any areas reserved for specific treatment types or some other purpose.

I've attached an image showing our desktop appointment book, the grey areas represent the out of hours and lunch times, the orange area in the third column indicates a treatment specific template is active on this date and time for this clinician. There is only one appoint and that is in column one for a Mr Alan Adams.

I'm trying to get a similar representation in our web app, the coloured cells are simply coloured they have no content or active code, they are purely a visual indicator. The pattern of these coloured cells varies by date and clinician. The form used to insert/change an appointment notifies the user of any usage restrictions.

On inspection of the page code in the browser it at first seemed that I could somehow add "background-color" to the row style, however even if I could it colours the whole row not just a cell. I did try using a second data table to colour regions but this inserts normal events into the planner and I was unable to essentially make them transparent to clicks, as a result it couldn't call the actual appointment insert form if I clicked on one of these areas, they also sit over real appointments if the times overlap.

Perhaps I'm asking too much of it or more likely I lack the knowledge to make it work, but a pointer in the right direction would be fantastic.

Am I correct in thinking I could inject html similar to the following into the correct part of the page row generation, it's only simplified appointment html with no form and different class details, it seems to work if I edit the html on a browser page:

<div data-nt-start-date="80638" data-nt-start-time="3180001" data-nt-end-date="80638" data-nt-end-time="3360002" data-nt-column="1" data-nt-margin="0"
  class="planner-row-size nt-relative" style="color: rgb(0, 0, 0); background-color: rgb(128, 128, 0); left: 5px; width: 343px; top: 0px; height: 144.001px; padding-left: 0px; padding-right: 0px;">
<div class="planner-data-text">Morning Break</div>
</div>

Gordon

Pages: 1 [2] 3 4 ... 6