UniUser
-
Posts
14 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by UniUser
-
-
-
-
Good morning, there a ttime edit in unigui mobile version? (Unigui 1.5)
Thank you
Fabio
-
Hi, there is a component in Unigui mobile that works in the same way of TUniCombobox with OnRemoteQuery event?
Regards,
Fabio
-
Hi i use this code,
in ios with safari works good, the only issue is to remember to disable "block pop-ups" in the safari settings.
uses IDCoder, IDCoderMime;
var
MStream:TBytesStream;
NomeFile:string;
PdfAnsi:AnsiString;
Encoder: TIdEncoderMIME;
Str:String;
begin
QTemp.Close;
QTemp.SQL.Clear;
QTemp.SQL.Add('select f.file_Stream,f.name,v.DocNumber,v.DocDate from v_Blob_Fatture Where f.stream_id='''+idBlob+'''');
QTemp.Open;
MStream:=TBytesStream.Create;
TBlobField(Qtemp.FieldByName('File_Stream')).SaveToStream(MStream);
NomeFile:='Fattura '+QTemp.FieldByName('DocNumber').AsString+' del '+StringReplace(QTemp.FieldByName('DocDate').AsString,'/','_',[rfReplaceAll])+'.pdf';
if (upiPhone in UniSession.UniPlatform) or (upiPad in UniSession.UniPlatform) then Begin
PdfAnsi:= TIdEncoderMIME.EncodeBytes(TIdBytes(MStream.Bytes));
Str:='var base64EncodedPdf="'+PdfAnsi+'";';
Str:=Str+'window.open("data:application/pdf;base64," +base64EncodedPdf);';
UniSession.AddJS(Str);
End else Begin
UniSession.SendStream(MStream,NomeFile);
End;
MStream.Free;
QTemp.Close;
End;
end;
-
Solved...i have used UniSession.AddJS with this code sample:
window.open("data:application/pdf;base64, " +base64EncodedPDF);
Where base64EncodedPDF is the pdf stream converted with Indy using TIdEncoderMIME.
On IOS works good.
Regards
-
Hello,
we have an issue with pdf on IOS with Safari.
If the pdf file is present on the server we can show it without problem using this code in a TUniLabel :
href="path+fileName.pdf" target=\"_blank\"
It is possible to show the pdf in a new page directly from a TmemoryStream without saving the file (all the files are stored as blob in a sql server db)
We use sendstream and work on all browsers but due to IOS download restrictions in this case the procedure does not work.
Any suggestion, alternative, workaround?
Thank you in advance!
-
Hi,
Can you try this approach for now ?!:
1. UniDBGrid -> ClientEvents -> ExtEvents -> Ext.toolbar.Paging [pagingBar] -> function pagingBar.beforechange:
function pagingBar.beforechange(sender, page, eOpts) { ajaxRequest(sender, '_post', []); }
2. UniDBGrid -> OnAjaxEvent:
procedure TMainForm.UniDBGrid1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = '_post' then if (UniDBGrid1.DataSource.DataSet.State in [dsEdit]) then UniDBGrid1.DataSource.DataSet.Post; end;
Best regards,
Hello, it seems to work good.
Thank you for your support.
Best regards,
-
Hello, i have commercial version of Unigui (1.0.0.1394).
I have a unidbgrid where i can only modify a quantity field (clickstoedit=1, RowEditor=False)
All works ok but sometimes when i modify the quantity cell on the grid and i change page (without posting the value with enter), the value is not saved in the clientdataset.
If for example i click a button all works ok and the value is saved.
How can i force post when change page?
Thank for your answer.
-
Then please first visit here:
http://forums.unigui.com/index.php?/topic/6291-important-announcement/
And can you update to the latest version and build ?!
I update to the latest version e the problem seems to be solved.
Thank you for your support.
-
Commercial edition ?!
Yes
-
Hi,
I have Unigui complete pro version 0.99.50.1189.
Best regards
-
Hi, have a UniDBGrid with a ClientDataset filtered (field quantity<>0)
When i change the quantity in the grid and i put the value 0 from a value <> 0 (and so the row disappear from the unidgrid)
sometimes i get the error "Unexpected Row number".
How can i solve the problem?
Thank you for your information
Field group change caption
in uniGUI Mobile
Posted
Any idea about this?
Regards