eduardosuruagy
-
Posts
831 -
Joined
-
Last visited
-
Days Won
10
Content Type
Profiles
Forums
Events
Posts posted by eduardosuruagy
-
-
But I would like to do this on the client side, currently I already do server side. He also wanted that when he was clicked off the panel he would be invisible.
-
I would like to click a button and open a panel below the button, how?
-
I would like to click on a dbgrid column and open a poupup, how?
-
-
I also need this, because I use forms in tabs and when I open a customer registry and add a new one I would like in the order form that is already open, when the user clicks to select a client it fills in with the new one.
-
Can I tear down a section? Even using HS?
-
How do I get all the active sections in Hyper Server?
-
With Hyper Server how do I get the sections of connected users ?:
-
I have a list with the users logged into the system, how do I send a message to everyone or to a user determining from this list? I wanted to send it through the session code !!
-
There is no websocket component in Unigui yet, but you may be able to use socket.io with node.js:
const socketToken = 'mySpecialToken'; procedure TMainForm.myHtmlFrameAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if eventname='doSocketAuth' then begin UniSession.AddJS('socket.emit("authenticate", {token: "' + socketToken + '"});'); end; if eventname='gotData' then begin //myData:=strtointdef(Params.Values['mydata'], 0); //do something with it end; end; //to broadcast some data procedure TMainForm.socketPush(myData:integer); begin UniSession.AddJS('if(socket !== undefined)socket.emit("'+companyName+'", ' + inttostr(myData) + ');'); end; //some JS to run somewhere to setup the socket connection and catch the incoming data if(socket === undefined){ var socket = io('http://127.0.0.1:3000/?company=' + companyName, { reconnection: true, reconnectionDelay: 3000, reconnectionAttempts: 20, forceNew: false, secure: true }); } socket.on('connect', function(){ ajaxRequest(MainForm.myHtmlFrame, ["doSocketAuth"], { }); }); socket.on(companyName, function(data){ ajaxRequest(MainForm.myHtmlFrame, ["gotData"], { mydata : data }); }); //node.js script to run an https socket io server var fs = require('fs'); var https = require('https'); var app = require('express')(); var options = { key: fs.readFileSync('c:/my.key'), cert: fs.readFileSync('c:/my.crt') }; var serverPort = 3000; var server = https.createServer(options, app); var io = require('socket.io')(server); io.on('connection', function(socket){ companyName=socket.handshake.query.company; socket.auth = false; socket.on('authenticate', function(data){ if(data.token == 'mySpecialToken'){ socket.auth = true; } }); setTimeout(function(){ if (!socket.auth) { socket.disconnect('unauthorized'); } }, 1000); socket.on(companyName, function(msg){ if (socket.auth)io.emit(companyName, msg); }); }); server.listen(serverPort, function(){ console.log('Socket.io https server listening on port ' + serverPort); });
You will also need to add socket.io.js to the CustomFiles in servermodule and of course set up the node server.
Would you have any examples?
-
Hi,
Try this:
function store.afterCreate(sender) { sender.setRemoteSort(false); }
Thank you, it worked.
-
an anyone help?
-
Before I used this option to sort the columns but now I can not do this, has anything changed?
function headerclick (ct, column, e, t, eOpts)
{
Frame.ClientDataSet.getStore (). Sort (column.dataIndex);
}
function store.afterCreate (sender)
{
sender.remoteSort = false;
}
-
It happened to me. The solution was to even restart the server or the network card.
-
You are using client side alignment. Which means rules must be set correctly.
In your case you need to set Flex property of Grid -> 1 , so it will occupy all empty client area of container.
Ours worked perfect, thank you !! I'd like to better understand client-side alignment settings. Do you have any material that explains this?
-
an anyone help?
-
an anyone help?
-
Please make a simple testcase if possible
Follow the test project. To open the form click on the left side in the Protocols menu, when you open the form click the Filters button
-
Eu encontrei um bug no dbgrid, se eu deixei a opção WebOptins.Paged = False e clicando em qualquer linha da grade, ele vai para o final da grade automaticamente.
-
I have a problem in dbgrid, when I click on the column to sort LoadMask appears at the time of the click but it does not undo, with the screen stuck and the column does not sort. I'm using the option of our friend Mohammad.
function headerclick (ct, column, e, t, eOpts)
{
Frame.dbgrid.getStore (). Sort (column.dataIndex);
}
function store.afterCreate (sender)
{
sender.remoteSort = false;
}
-
-
Have you tried to search on the forum ?!
I researched everything related to dbgrid but I did not find anything
-
Hi,
I create like this way:
use click on dbgrid selected row -> show small form with buttons -> onbuttonclick get dbgrid row data -> work with data.
Form showing dinamically OnDBGridClick.
You can show form by OnHover.
Can create dbgrid column with control -> Panel with buttons and so on.
Can you show me an example?
-
Can someone help me please
I would like to click on a dbgrid column and open a poupup, how?
in General
Posted