Rav
-
Posts
89 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Posts posted by Rav
-
-
Hello,
While testing cookies I found that during the UniMainModule creation setting cookie works fine:UniSession.UniApplication.Cookies.SetCookie('test_cookie','temp')
but reading it raises an exception:
UniSession.Cookie['test_cookie'];
During the MainForm creation both code lines works fine.
Is this normal behavior? Is it possible to read cookies in UniMainModule?
-
Filter doesn't work yet, does it?
-
Hello,
I often use TButtonedEdit component with a TLabel placed above it in VCL but couldn't find a similar component in UniGui. So I decided to compose it myself using layouts. The result is uploaded here:
https://yadi.sk/d/S1FzGCblraotK
It consists of 5 components. Can it be done easier with less number of components or with more advanced layout technics?
-
I have checked your example and it looks as before - first cells at the top (1-1,1-2, 2-1) are filled with UniEdits no matter the Tab order as on the picture:
https://yadi.sk/i/bE7J9-x-raT8r
The UniGui is the latest (1298) and doesn't look to be broken
As per the tips regarding UniSpinEdit, thanks, that works.
-
Thanks for you answers!
1) That doesn't work
2) Ok, got it.
3) That's nice! I found a small issue though - it doesn't work properly if FielLabelAlign is laTop but it really matters nothing.
5) That's too radical solution for me, but I will try.
-
Hello,
I tried to use table layout and found difficult to do it.
Here is the modified sample:
https://yadi.sk/d/hUYtg2CFrZ3Qd
1)UniGui doesn't pay attention to controls tab order or creation order and align them according to its own rules: first cells are for TUniEdits, then for TUniLabel and at last for TUniDateTimePickers. Is there a way to manually set the order?
2)TUnidateTimePickers do not extend to 100% width. Is this normal?
Also some small questions that don't relate to layouts directly
3)TUniSpinEdit doesn't have FieldLabel property. Is there a particular reason for that?
4)What font is used for FieldLabel? Why does it differ from its owner - TUniEdit? On the sample it certainly differs from the font used for TUniLabel though the default fonts are the same.
5)Is it possible to use images in the TUniCombobox items?6)TUniDBGrid has two(!) event handlers for placing images on the grid items: OnFieldImage and OnFieldImageURL but cannot use TUniImageList items for them. That's not the question, just weird.
- 1
-
Thanks, that helped a little but I am not good at JS and ExtJs, so cannot understand how to extract rows numbers from SelectedRows to pass them to JS function? Is it possible to pass field values?
-
Hello,
Is it possible to keep the selected rows of TUniDBGrid after dataset refreshing?
Or even totally unlink the connection between TUniDBGrid selection and TDataSet cursor position?
-
Hi,
Will I think we should upload a video on youtube showing the correct use of the layout
Yes that would be great!
But first it would be nice just to get a text explanation of all layout properties.
TUniServerModule properties description also would come in handy.
-
Hello,
I have a small problem with layouts and don't know how to resolve it.
If you change the button's layout properties of the "Clientside Alignment - Layout VBox" example from (Flex=1 and Height='') to (Flex=0 and Height=30) so it doesn't change its height after form resizing and assign an image to it then both image and text are shown at the top of the button. With "Flex=1" they appear at the button's center as expected. Can it be corrected?
Here is the example's screenshot:
https://yadi.sk/i/O5vEz5lyrQRrB
This is the example's code:
-
Yes, that's it!
Thanks!
-
Hello,
I want to give the user an option to log on automatically without showing TUniLoginForm. Is there a way to enable/disable TUniLoginForm?
-
-
Sorry, it's my bug
-
Hello,
Is there an event that is triggered when the user sets columns visibility from TUniDBGrid header?
-
Hello,
As recommended I have checked ExtJs examples regarding layouts and found that there is no "card (wizard)" in the "layout" property values of UniGui. This feature is interesting for me, is it not implemented yet or is it already implemented by other means?
-
Hello,
I have one container panel which is the parent of three panels with two splitters between them (image is attached). I want that width of all the internal panels to be the same whenever the container panel is resized. How to do it properly? First I thought that it should be handled in the main form's "onresize" event, but it is called before its width is changed ("onresizing" is more appropriate name for this event). Also the container panel can change its width without the main form is resized but it doesn't have the "onresize" event. And the last question: can this autoresizing be done without server intervention, on the client side only?
Ravil
-
-
Hello,
I cannot understand two things:
1)Allfeaturesdemo always starts as maximized but I couldn't find in the code how it was done
2)The popup menu in Allfeaturesdemo works fine, but the same menu in my code always pops up with the Firefox context menu (as in the attached image). But I wasn't able to find where and how it is done in Allfeaturesdemo either.
Ravil
-
At the simplest level, you can change/adapt design-time interface elements
here, or fully create the two interfaces at runtime on show, or doing it more complex,
you can load two different html files into one htmlframe, and go from there,
with the ajaxrequest handling two different event sets from the two different
html/javascript setups.
You gave me even a simpler idea - to use TUniPageControl hiding all its pages except the one that corresponds to the current client.
Thanks!
-
do you mean two different customers connect at the same server at two different applications?
Yes, one database, one server, but two different clients with different main windows.
I assume you mean two servers working against the same database,
on the same physical server - and that is no problem.
But of course not on the same port - as only one server process
can listen to a port at a time, on a single IP, as it locks it.
So you can just run them in the same folder, but on 8077
and 8088 for example, if you just test with standalone.
No it's not an option, server should be only single. I know there can be only one port per server, so I added the "First" and the "Second" parts in URL to distinguish the clients.
To create two different "client" versions from a singleserver process, you need some trigger mechanism that tells
the single server what to deliver - could be anything like
something in the url to the average temperature of LA
on that day...and it produces one of two versions.
Yes, exactly, I need such mechanism but don't know how to create it cause the main Unigui form is created automatically.
-
Hello,
I need that the server can handle two different clients:
The first can be accessed via http://localhost/First:8077
The other can be accessed via http://localhost/Second:8077
Two questions
1)How to properly organize it?
2)Is there a brief description of all specific TUniServerModule properties?
Rav
-
See option 2 and 3 in Post #4.
I looked through your long polling application, very informative, thank you!
I think that's a little bit complicated scheme, does it have flaws?
Are you planning to add WebSockets example to it?
-
The TUniTimer works fine, thank you.
But I got another question. As far as I understand the TUniTimer being placed on the main form is instantiated in every session, so with the 100 open sessions we'll have 100 timers on the server side. Is this the right way of constructing the application?
Question about the cookies
in General
Posted
Thanks!
I tested TUniMainModule and TMainForm on the subject of cookies:
1) In TUniMainModule:
UniSession.Cookie - works, but not recommended
UniSession.UniApplication.Cookies.Values - works
UniApplication.Cookies.Values - doesn't work
2) In TMainForm:
UniSession.Cookie - works, but not recommended
UniSession.UniApplication.Cookies.Values - works
UniApplication.Cookies.Values - works
So the UniSession.UniApplication.Cookies.Values is a universal method for getting cookies, right?