andyhill Posted March 18, 2019 Share Posted March 18, 2019 I know this is the Desktop Forum but I am tired of the Mobile Forum postings being overlooked -or- not addressed regularly enough. As stated, My Mobile Application uses TUnimSelect and If the First Item = '' (blank string) then it Fails To Show In Desktop Emulation ? It works as intended on Mobile Platforms. Yes I know I can have a clearable button but it is too close to the select button and fat fingers fires it when it should not. Please advise. Link to comment Share on other sites More sharing options...
Sherzod Posted March 19, 2019 Share Posted March 19, 2019 Hello, We will check Link to comment Share on other sites More sharing options...
Sherzod Posted March 19, 2019 Share Posted March 19, 2019 Hello, 13 hours ago, andyhill said: As stated, My Mobile Application uses TUnimSelect and If the First Item = '' (blank string) then it Fails To Show In Desktop Emulation ? Please, can you explain in more details, I couldn't reproduce ?! You can also post on ActiveReports if you think that this a bug. But please always specify the build, the browser you are using, make a testcase or steps to reproduce. I know that a testcase may not replace your working project, but it will help us understand the problem better. Thank you Link to comment Share on other sites More sharing options...
andyhill Posted March 19, 2019 Author Share Posted March 19, 2019 unim-1.50.0.1481 UnimSelect.Items.Add(''); // or ' ' UnimSelect.Items.Add('1'); UnimSelect.Items.Add('2'); UnimSelect.Items.Add('3'); if UnimSelect.ItemIndex was 2 ('2') and user select 0 ('') the ItemIndex is not updated to 0 due to the blank string Link to comment Share on other sites More sharing options...
andyhill Posted March 20, 2019 Author Share Posted March 20, 2019 I need a work around ASAP Link to comment Share on other sites More sharing options...
Sherzod Posted March 20, 2019 Share Posted March 20, 2019 7 hours ago, andyhill said: I need a work around ASAP I opened a ticket in support portal Link to comment Share on other sites More sharing options...
andyhill Posted March 20, 2019 Author Share Posted March 20, 2019 I have come up with the following work around that uses the CloseUp Event with a deferred reading of the new select value via an ajax event:- // OnCloseUp Event Bug Work Around procedure TMymForm.MySelectOnCloseUp(Sender: TObject); begin // if ByPassMySelectFlag = True then begin ByPassMySelectFlag:= False; Exit; end; // UniSession.AddJS('Ext.defer(function(){ajaxRequest(MymForm.ContainerPanel, "_mySelect_", []);}, 500)'); // end; ... if SameText(EventName, '_mySelect_') then begin ... Link to comment Share on other sites More sharing options...
andyhill Posted March 21, 2019 Author Share Posted March 21, 2019 Unfortunately it is still intermittent - Need FIX ASAP Link to comment Share on other sites More sharing options...
andyhill Posted March 21, 2019 Author Share Posted March 21, 2019 Bypassed UniGUI and coded it in Sencha, now works. '' Returns 'null' Link to comment Share on other sites More sharing options...
mjcramos Posted March 28, 2019 Share Posted March 28, 2019 I Had the same problem I was able to use that way UnimSelect.Items.Add('<empty>'); UnimSelect.Items.Add('1'); UnimSelect.Items.Add('2'); UnimSelect.Items.Add('3'); if UnimSelect.ItemIndex > 0 then "Not is Empty" Link to comment Share on other sites More sharing options...
andyhill Posted March 28, 2019 Author Share Posted March 28, 2019 Your suggestion would show <empty> in the select options (not acceptable), I use a blank line to select a blank line. I have an ajax work around but unigui should be able to show a blank line in the select options -or- offer extra clear button:- [Select] [Clear] [Cancel] Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 28, 2019 Administrators Share Posted March 28, 2019 A fix will be published in next build. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now