Jump to content

andyhill

uniGUI Subscriber
  • Posts

    1258
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by andyhill

  1. I appreciate your response - however - it does not disable ?
  2. I have a Mobile Toolbar with 3 Containers each holding an object (button, DatePicker etc.). During Runtime there are times when I need to Disable the Toolbar and its objects, ToolBar.Enabled:= False; makes no difference ? Please advise how - Thanks in advance.
  3. Thanks, I followed your logic with my code below, Desktop Downloads as expected, iPhone X does nothing ? FStream:= TFileStream.Create(UniServerModule.EXEDir+'web\'+UniMainModule.ReportFileName, fmOpenRead, fmShareDenyWrite); FStream.Position:= 0; BStream:= TBytesStream.Create; BStream.CopyFrom(FStream, FStream.Size); BStream.Position:= 0; FileName:= 'Report.pdf'; if (upiPhone in UniSession.UniPlatform) or (upiPad in UniSession.UniPlatform) then Begin PdfAnsi:= TIdEncoderMIME.EncodeBytes(TIdBytes(BStream.Bytes)); // IDCoder, IDCoderMime, IdGlobal Str:= 'var base64EncodedPdf="'+PdfAnsi+'"; '; Str:= Str+'window.open("data:application/pdf;base64," +base64EncodedPdf); '; UniSession.AddJS(Str); end else Begin UniSession.SendStream(BStream, FileName); end; BStream.Free; FStream.Free; Can you advise please ?
  4. Works as expected - Thank You Again.
  5. Yes. I can live with a Local Variable that can be updated by the Picker's Change Event HOWEVER how do I pre-load the Picker's Time with the Local Variables original Time ? Please show me in code - thanks.
  6. I tried this code below but it locks up browser (chrome) in Desktop emulation (/m), file exists, endcoding works - can you please advise - thanks. base64EncodedPDF: String; ... procedure TMainmForm.EnCode64FileToStream(const FileName: string); var FileStream: TFileStream; s: String; begin try base64EncodedPDF:= ''; s:= ''; FileStream:= TFileStream.Create(FileName, fmOpenRead or fmShareDenyWrite); FileStream.Position:= 0; s:= TIdEncoderMIME.EncodeStream(FileStream); base64EncodedPDF:= 'window.open("data:application/pdf;base64, "'+s+');'; finally FileStream.Free; end; end; ... EnCode64FileToStream('test.pdf'); UniSession.AddJS(base64EncodedPDF); ...
  7. Great, can you show me your code to encode please ?
  8. Locate all the File Not Found (apple-touch-icon-precomposed.png etc.) and create them. Apple and others expect thumb nails, give them what they want.
  9. Thanks, if you had an English version it would be even better.
  10. Here it is again, this time Mobile W32. Please copy the 2 JavaScript files into the EXE Directory. Project1.zip
  11. The one you told me to use for Tokyo 10.2 uni-1.0.0.1423 unim-1.0.0.1423 touch-2.4.2 ext-4.2.5.1763
  12. My project is too big so I tried to quickly knock this up 64bit Desktop / Mobile (hybrid). Please copy the 2 JavaScript files into the EXE Directory. Debug and trace set DatePicker (no time is set) and read DatePicker (no time is read). Project1.zip
  13. I have proved that on both Desktop Emulation (/m) and Mobile (iOS) the Time Values are not persistent - that is the modified TDatePicker (that now handles time) has no way of receiving the Time Values from Delphi (set the time) as well as has no way to have it's Time Values read by Delphi ? Using an ajax event to catch when the Time changes does not allow one to program the time into the picker in the first place plus it is messy to catch the time change and store elsewhere when it really should have been bound to the DateTime object - not forgetting to mention what happens if they do not change the time. Please advise how to resolve ASAP as this is very urgent - thanks in advance.
  14. The one you told me to use for Tokyo 10.2 uni-1.0.0.1423 unim-1.0.0.1423 touch-2.4.2 ext-4.2.5.1763
  15. I use Prompt('Password:', '', mtInformation, mbOKCancel, PromptPW); How can I "Working Within The UniGUI / Sencha Touch Framework" make the prompt Input Field a Password hidden Field ?
  16. All code is in place as instructed. The Reading and Writing of the Time values always results in ZERO. Is it possible the Time Picker only works if the platform is 'mobile' making /m (Desktop Emulation) invalid ?
  17. I have wrestled with this over and over. The Picker does not accept or return the time (only the date) even though when opened you can see and change the time visually - it is not stored ? READ TimeFrom (TUnimDatePicker) var d1: TDateTime; myYear1, MyMonth1, MyDay1, myHour1, myMin1, mySec1, myMilli1: Word; begin try d1:= TimeFrom.Date; DecodeDateTime(d1, myYear1, MyMonth1, MyDay1, myHour1, myMin1, mySec1, myMilli1); ... WRITE TimeFrom (TUnimDatePicker) DecodeDate(UniMainModule.tblCart.FieldByName('BookingDate').AsDateTime, myYear1, MyMonth1, MyDay1); DecodeTime(UniMainModule.tblCart.FieldByName('BookingFromTime').AsDateTime, myHour1, myMin1, mySec1, myMilli1); TimeFrom.Date:= EncodeDateTime(myYear1, MyMonth1, MyDay1, myHour1, myMin1, mySec1, myMilli1); Help required ASAP.
  18. Thanks, that got rid of Day / Month / Year tumblers leaving only the Hour / Minute tumblers BUT they have no Captions to advise user what they are ?
  19. Mohammed, I am having trouble with the TUnimDBListGrid Refreshing (I change the data and issue a refresh but old data still shows), can you please advise - Thanks. procedure TCalendarmForm.MyDateChangeValue(Sender: TObject); begin if ByPassFlag = True then Exit; ////////////////////////////////////////////////////////////////////////////// ListGrid.BeginUpdate; UniMainModule.tblCart.Close; DateTimeToString(DateStr, 'yyyy-mm-dd', MyDate.Date); BookingDateStr:= '(BookingDate = DATE '+Chr(39)+DateStr+Chr(39)+')'; UniMainModule.tblCart.Filter:= BookingDateStr; UniMainModule.tblCart.Filtered:= True; UniMainModule.tblCart.Open; ListGrid.EndUpdate; UniSession.AddJS(CalendarmForm.ListGrid.JSName+'.refresh;'); ////////////////////////////////////////////////////////////////////////////// end; If I leave the form (via grid row Disclose Button) and then return via new form's Close Button - the new data shows up ? I tried UniSession.Synchronize; after Refresh but it makes no difference. Please advise.
  20. Followed your directions HOWEVER I do not want Month / Day / Year, I only want Hours / Minutes
  21. In harmony with the new layout, how can I make the ">" (<img src="images/list/file5.png" style="position:absolute;right:15px;top:55px;"/>) emulate a DiscloseButton Click ?
  22. Please show me how I can use a Mobile TimePicker (no date) - thanks.
  23. Mohammad, With your config.itemTpl, How can I read a float value (say hours.minutes) and paint field {1} accordingly as 1="01:00 am", 14.30 = "02:30 pm" etc. ? '<td style="padding-top:4px;padding-left:10px;" width="16px">'+ '<image src="images/list/clock.png" height="16" width="16"/></td>'+ '<td style="font-size:15px;padding-top:3px;padding-left:8px;color:#535454;">{1}</td>'+
×
×
  • Create New...