-
Posts
166 -
Joined
-
Last visited
-
Days Won
4
Content Type
Profiles
Forums
Events
Posts posted by robinhodemorais
-
-
tried this way, but the error when applying JS
ScriptJS: = 'ajaxRequest (MainForm.window, "message", ["edit = msg"]);'; UniSession.AddJS (ScriptJS);
-
Oops, I'm sorry, I was forming the idea better, come on, I'm receiving information through the UniGUIServerModuleHTTPDocument and when I receive this information, my idea now is different from this ajax event in the main form, so use the same idea, so the main form doesn't have JSInterface, how to do?
-
1 hour ago, Sherzod said:
procedure TUniForm1.UniBitBtn1Click(Sender: TObject); begin (Sender as TUniBitBtn).JSInterface.JSCode('ajaxRequest(MainForm.window, "message", ["edit='+ UniEdit1.Text +'"]);'); end;
perfect, just one more detail, can i apply this code in a procedure?
not push the button, but a trigger procedure? -
I am using IdHTTPServer to receive an external data, it is working correctly, but it is displaying the data in a memo and this data does not show any memo, if you click on any memo and press enter the loading or data correctly, try an update on the memo , but it didn't work ... is there anything you can do?
did it this way in the CommandGet of idhttpserver
Stream := ARequestInfo.PostStream; if assigned(Stream) then begin Stream.Position := 0; post := ReadStringFromStream(Stream); jsonObj := TJSONObject.ParseJSONValue(TEncoding.ASCII.GetBytes(post),0) as TJSONObject; mLog.Lines.Add(DateTimeToStr(now)); mLog.Lines.Add(DateTimeToStr(now)+' Conectado ?' + jsonObj.GetValue('conectado').Value ); end;
-
is there a possibility?
-
perfect.
-
in Unit1 I added an event without clicking the button, passing ajaxRequest or MainForm, so without MainForm's ajaxEvent event I wanted to capture this message from Unit1.
Attached or demo.
-
Hello, can I get a screen to fire an ajaxevent to another screen?
For example user A is on the frmProcessos screen, I want to click on a button to fire an ajaxevent on the MainForm screen or another specific screen, example frmProcessosAndamento, is there such a possibility? if so, how?
-
Unigui has a component that it uses to export the pivotgrid and the method is the same as that of the grid, check the demo.
-
41 minutes ago, Tokay said:
Infelizmente, não é uma boa estrutura fazer algo real no Delphi + UniGUI. O Lazarus possui um bom LCL que é totalmente compatível com a estrutura VCL em todas as plataformas, e todo o código pode ser movido para o Lazarus com o mínimo de correções. Mas no Delphi você não tem VCL no Linux. Você tem apenas FMX, que ainda não possui a classe TBitmap e todas as APIs, se totalmente incompatível com o vcl. Sobre todo o código deve ser reescrito. No caso de milhões de linhas, é um grande desafio. A versão do Lazarus UniGUI também não está disponível no momento.
Também tento usar o CrossVCL. Parece bom substituto para o VCL e possui as classes VCL mais comuns no Linux (não é gratuito, mas ok, não é um grande problema). Mas o UniGUI não pôde ser compilado no momento com o CrossVCL porque parte dos módulos não é de código aberto e o compilador retorna um erro de que os módulos do unigui não puderam ser compilados com cursos alterados.
E eu não sei o que fazer a seguir. Ainda esperando por agora.
strongly disagree
-
Farshad tested and approved, some components do not show the linux platform to add to the project, but realize that add or component with a windows platform and switch to linux, compile and run a custom test application.
- 1
-
Thank you very much Farshad, congratulations and success to Unigui.
- 1
-
Thank you, solve my problem, do you have a correction forecast?
-
TabBar is not invisible with version 1534, after the update, even checking or TabBarVisible from TUnimmTabPanel, and it is not becoming invisible.
-
OK thank you
-
How to automatically add or size an unimdbgrid column, try this code below, but it is giving an error
unimdbgrid1.JSInterface.JSCode(#1'.columnManager.columns.forEach(function(col){col.autoSize()});');
-
damn sorry, I accessed the forum through chrome mobile and it also happens, thanks for the feedback
-
someone please
-
In ServerModule in CustomMeta, place the code
<meta name = "theme-color" content = "# e83237">
so that the entire status bar of the cell phone is the configured color, but will be used when you type something in edit mode, it will lose this setting, see no video ... attached or an example of how the same situation occurs.
-
16 minutes ago, Sherzod said:
You can try to use this approach, by changing the value to the required.
perfect thank you.
MainForm.Script:Ext.form.field.Date.prototype.altFormats="dmY|d/m/Y|j/n/Y|j/n/y|j/m/y|d/m/y|j/m/Y|d/n/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|d-m-Y|j-n|j/n";
- 2
-
1 hour ago, Sherzod said:
I will check.
thank you, it will be very useful
-
perfect, I made some adjustments according to my standard and it worked correctly ...
function beforeInit(sender, config) { config.altFormats="dmY|d/m/Y|j/n/Y|j/n/y|j/m/y|d/m/y|j/m/Y|d/n/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|d-m-Y|j-n|j/n"; }
however, I have to do this for each datetimepicker I have on the system, can I do it in a way that replicates for everyone?
-
I realized that by default in the unidatetimepicker when you type the day it completes with the month and current year, when you type the day and month it fills the year, this without having to inform the bar, however for the brazil pattern when you type the day and month it does not fill in correctly, for example, if you type 0806 and type tab, it fills 08/06/2020, how do I make it fill correctly according to the Brazilian standard?
DateFormat is configured this way: dd / MM / yyyy
-
On 6/6/2020 at 6:06 AM, Sherzod said:
function beforeInit(sender, config) { config.style='opacity: 0.5;'; }
thanks
Shoot an ajaxevent to another screen
in General
Posted
I set up that way ... but giving error
Access violation at address 007E2DE8 in module 'Project1.exe'. Read of address 00000064
procedure TUniServerModule.UniGUIServerModuleHTTPDocument ( const Document: string; const InParams: TStrings; ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo; var Handled: Boolean); begin if ARequestInfo.URI = '/test' then begin MainForm.WebForm.JSInterface.JSCode ('ajaxRequest (MainForm.window, "message", ["edit = teste"]);'); end; end;