Jump to content

Guest

Members
  • Posts

    2514
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Guest

  1. Message from: "Farshad Mohajeri" "Farshad Mohajeri" > You don't need to do anything special. Just move all of your Data > components (Connections, Tables, Datasets and etc.) from ServerModule to > MainModule. ServerModule is created once per server while MainModule is > created in a "per session" manner. Doing so will make your data aware app > multi-user enabled. You can also create additional DataModules from "uniGUI Wizard" for same purpose. .
  2. Message from: "Farshad Mohajeri" "fleeingtoelude" > Hello Everyone, > I've just recently discovered uniGUI and extPascal. I must say, this is > something close to a revolution for web apps. The seamless integration is > wonderful; good work Farshad! > Thank you. > For a learning project, I am building a simple form using data aware > controls to enable data entry into a single table in a MySQL database. I > have basic filtering capability to locate the desired record, and data > entry fields to edit the record. > > Currently, all of my DataSources, DataSets and Providers are in the > ServerModule. Linking the Uni data aware components up was simple, and a > basic data entry app was created in less than 30 minutes. That's RAD! > > How would I separate clients in this type of an app? Create a Form and > ClientDataset for each connection? Is there a mechanism to manage such an > app? You don't need to do anything special. Just move all of your Data components (Connections, Tables, Datasets and etc.) from ServerModule to MainModule. ServerModule is created once per server while MainModule is created in a "per session" manner. Doing so will make your data aware app multi-user enabled. .
  3. Message from: "Farshad Mohajeri" "Andrew Tierney" > Any idea when 0.81.0 will be released ? (Few Days, Week...) Tomorrow. .
  4. Message from: "fleeingtoelude" Hello Everyone, I've just recently discovered uniGUI and extPascal. I must say, this is something close to a revolution for web apps. The seamless integration is wonderful; good work Farshad! For a learning project, I am building a simple form using data aware controls to enable data entry into a single table in a MySQL database. I have basic filtering capability to locate the desired record, and data entry fields to edit the record. Currently, all of my DataSources, DataSets and Providers are in the ServerModule. Linking the Uni data aware components up was simple, and a basic data entry app was created in less than 30 minutes. That's RAD! However, it does not seem to be a multi-user app yet. Since everything is piped through the same DataSource, filtering gets applied to all connected clients. How would I separate clients in this type of an app? Create a Form and ClientDataset for each connection? Is there a mechanism to manage such an app? .
  5. Message from: "Farshad Mohajeri" "Andrew Tierney" . >>> >> >> I'm currently busy finalizing features 0.81.0. Most probably we will have >> borderless window feature included. >> >> > > > Thanks for the update.. > > Any idea when 0.81.0 will be released ? (Few Days, Week...) > > And do you have a list of new features ? > > Here is the changelog for 0.81.0 0.81.0.798 +---------------------------------------------------------------------------------------- - New Component UniDBText - Ability to create a windowless borderless MainForm - UniTreeView: Node dynamic add/delete support - UniTreeView: Several Memory leak issues - UniDBGrid: DBGrid.Column.Visible bug - PageControl: Render problem in invisible tabs - TUniListBox: Items are not rendered if placed on UniPageControl invisible Tab - ISAPI: Bug when pathInfo contains Unicode chars - TUniLabel Text alignment - UniDBGrid: _OnDataLoaded may be called before Grid is rendered - UniPageControl: TabIndex doesn't return correct index - UniComboBox in hidden TabPage bug in Chrome browser - New Demo: TreeView - New Demo: ClientInfo - New Demo: Windowless > Will you be adding a Javascript control ? That is the ability to pop a > control onto a form, and insert some javascript (ie. maybe jquery, some > custom javascript code etc). Or can this be done now via another means ? > A basic form of client side programming is targeted for version 0.90.0 which will evolve till version 1.0.0. I'm preparing a mini-roadmap which I will share this friday. > Again.. Amazing work.. So far.. Testing is proving very fruitful. > Thanks Andrew. .
  6. Message from: "Andrew Tierney" >> > > I'm currently busy finalizing features 0.81.0. Most probably we will have > borderless window feature included. > > Thanks for the update.. Any idea when 0.81.0 will be released ? (Few Days, Week...) And do you have a list of new features ? Will you be adding a Javascript control ? That is the ability to pop a control onto a form, and insert some javascript (ie. maybe jquery, some custom javascript code etc). Or can this be done now via another means ? Again.. Amazing work.. So far.. Testing is proving very fruitful. Andrew .
  7. Message from: "Farshad Mohajeri" "Tom YU" wrote in message news:WH2JCF6fLHA.2084@anaxagvs227... >ÓÚ 2010-11-08 22:00, Farshad Mohajeri дµÀ: >> "Andrew Tierney" wrote in message >> news:xOk0bh0fLHA.2080@anaxagvs227... >>> The wizard creates a web application with a Main window that has >>> Max/Min/Close buttons and a border. >>> >>> The buttons can easily be removed via properties... >>> >>> But how do you make the 1st form/main contain no borders ? >>> >>> It would be nice to start with a clean page, then only show the >>> window/popups on effectively the desktop. >>> >> >> In future releases you can design your MainForm like an empty canvas >> without >> borders. >> >> > > I also encountered the same problem, and he is very important! Can be > implemented in the next version of it? > I'm currently busy finalizing features 0.81.0. Most probably we will have borderless window feature included. .
  8. Message from: "Andrew Tierney" Hi, Will you be supporting: 1) http://dev.sencha.com/deploy/dev/examples/portal/portal.html 2) http://dev.sencha.com/deploy/dev/examples/form/adv-vtypes.html 3) http://dev.sencha.com/deploy/dev/examples/form/file-upload.html 4) A notification control something like: http://www.efattal.fr/extjs-dev/examples/toastwindow/ or http://www.artalat.com/Ext.ux.AlertBox/ 5) Multi-Select on a date would be nice. Andrew .
  9. Message from: "Tom YU" ÓÚ 2010-11-08 22:00, Farshad Mohajeri дµÀ: > "Andrew Tierney" wrote in message > news:xOk0bh0fLHA.2080@anaxagvs227... >> The wizard creates a web application with a Main window that has >> Max/Min/Close buttons and a border. >> >> The buttons can easily be removed via properties... >> >> But how do you make the 1st form/main contain no borders ? >> >> It would be nice to start with a clean page, then only show the >> window/popups on effectively the desktop. >> > > In future releases you can design your MainForm like an empty canvas without > borders. > > I also encountered the same problem, and he is very important! Can be implemented in the next version of it? Tom YU. .
  10. Message from: "giovanni.v" Il 27/09/2010 20.32, Michael Basov ha scritto: > Hi Farshad, good work ! > > When it is possible to expect components analogs TDBLookupComboBox and > TDBLookupListBox with properties (ListSource, KeyField, ListField) > allowing to receive lists from DB? Inc(Priority, LargeInteger); /* ;-) */ Any, even basic, database application needs lookups. .
  11. Message from: "Farshad Mohajeri" "Andrew Tierney" wrote in message news:xOk0bh0fLHA.2080@anaxagvs227... > The wizard creates a web application with a Main window that has > Max/Min/Close buttons and a border. > > The buttons can easily be removed via properties... > > But how do you make the 1st form/main contain no borders ? > > It would be nice to start with a clean page, then only show the > window/popups on effectively the desktop. > In future releases you can design your MainForm like an empty canvas without borders. .
  12. Message from: "Farshad Mohajeri" "Leandro Ávila" . > ...and I wonder if there is a plan for the official version 1.0 > I will publish a "mini-roadmap" this week. .
  13. Message from: "Farshad Mohajeri" "Harry Rogers" wrote in message news:q6mnmCOfLHA.2080@anaxagvs227... > Farshad Mohajeri wrote: > >> >> "Harry Rogers" wrote in message >> news:02n6LeCfLHA.2316@anaxagvs227... >> > Hi Farshad >> > >> > What mechansims, if any, exist to broadcast to all clients ? >> > >> > It would be nice if a session had an 'OnGlobalMessage'event >> > which was triggered from something like >> > serverModule.SendGlobalMessage. >> > >> > >> > Any thoughts ? >> > >> >> Will it be a text message for web sessions or an internal message >> like Windows messages? > > I had thought originally of a text message for web sessions. An > instance of a form could have the choice of listening to messages > recevied by its session. > That requires two way communication with the browser. I will investigate it. .
  14. Message from: "Andrew Tierney" The wizard creates a web application with a Main window that has Max/Min/Close buttons and a border. The buttons can easily be removed via properties... But how do you make the 1st form/main contain no borders ? It would be nice to start with a clean page, then only show the window/popups on effectively the desktop. Regards Andrew .
  15. Message from: "Leandro Ávila" ....and I wonder if there is a plan for the official version 1.0 thanks! Leandro Ávila .
  16. Guest

    Forms Collection ?

    Message from: "Harry Rogers" Harry Rogers wrote: > Farshad Mohajeri wrote: > > > TMainForm(TUniExtForm(UniApplication.FindComponent('MainForm')).Form > > Ob ject) > > > - TuniExtForm is not a found type - am I missing some units ? Found it in the dcus folder. -- .
  17. Guest

    Forms Collection ?

    Message from: "Harry Rogers" Farshad Mohajeri wrote: > TMainForm(TUniExtForm(UniApplication.FindComponent('MainForm')).FormOb > ject) - TuniExtForm is not a found type - am I missing some units ? -- .
  18. Guest

    Forms Collection ?

    Message from: "Harry Rogers" Farshad Mohajeri wrote: > > "Harry Rogers" wrote in message > news:rUpWraPfLHA.2316@anaxagvs227... > > Harry Rogers wrote: > > > > > Farshad Mohajeri wrote: > > > > > > > > >>> "Please note that if "FreeOnDestroy" is true (true by default), > >>> Form will be automatically destroyed when user closes it. > >>> "FreeOnClose" > > > > > > Hi Farshad > > > > >> That's clear now - thank you > > > > Hi Farshad > > > > Uniapplication.FindComponent( aname ) is working for me in VCL mode > > but not webmode. > > > > In the web implementation I get an access violation if I try to > > write to anything on the 'found' form. All its components are nil > > in the debugwindow. > > > > > > // fine in vcl. AV in Webmode > > > > procedure TfrmCont1.btnAddTextClick(Sender: TObject); > > var > > afrm : TfrmMainMenu; > > begin > > afrm := TfrmMainMenu(uniapplication.FindComponent('frmMainMenu')); > > afrm.UniLabel1.Caption := 'HELLO'; > > end; > > > > You are right. > > This should solve it: > > if WebMode then > > F:=TMainForm(TUniExtForm(UniApplication.FindComponent('MainForm')).For > mObject) else > F:=TMainForm(UniApplication.FindComponent('MainForm')); > > F.UniLabel1.Caption:='abc'; > > Well, as you can see it is not very straightforward. > > I've started a new branch and trying to redesign library core, so > hopefully, such type confusions between VCL and WEB will no longer > exist. Thanks for the quick solution - thought I was going mad ! -- .
  19. Guest

    Forms Collection ?

    Message from: "Farshad Mohajeri" "Harry Rogers" wrote in message news:rUpWraPfLHA.2316@anaxagvs227... > Harry Rogers wrote: > >> Farshad Mohajeri wrote: >> >> > >> > "Please note that if "FreeOnDestroy" is true (true by default), >> > Form will be automatically destroyed when user closes it. >> > "FreeOnClose" >> >> Hi Farshad >> >> That's clear now - thank you > > Hi Farshad > > Uniapplication.FindComponent( aname ) is working for me in VCL mode but > not webmode. > > In the web implementation I get an access violation if I try to write > to anything on the 'found' form. All its components are nil in the > debugwindow. > > > // fine in vcl. AV in Webmode > > procedure TfrmCont1.btnAddTextClick(Sender: TObject); > var > afrm : TfrmMainMenu; > begin > afrm := TfrmMainMenu(uniapplication.FindComponent('frmMainMenu')); > afrm.UniLabel1.Caption := 'HELLO'; > end; > You are right. This should solve it: if WebMode then F:=TMainForm(TUniExtForm(UniApplication.FindComponent('MainForm')).FormObject) else F:=TMainForm(UniApplication.FindComponent('MainForm')); F.UniLabel1.Caption:='abc'; Well, as you can see it is not very straightforward. I've started a new branch and trying to redesign library core, so hopefully, such type confusions between VCL and WEB will no longer exist. .
  20. Guest

    Forms Collection ?

    Message from: "Harry Rogers" Harry Rogers wrote: > Farshad Mohajeri wrote: > > > > > "Please note that if "FreeOnDestroy" is true (true by default), > > Form will be automatically destroyed when user closes it. > > "FreeOnClose" > > Hi Farshad > > That's clear now - thank you Hi Farshad Uniapplication.FindComponent( aname ) is working for me in VCL mode but not webmode. In the web implementation I get an access violation if I try to write to anything on the 'found' form. All its components are nil in the debugwindow. // fine in vcl. AV in Webmode procedure TfrmCont1.btnAddTextClick(Sender: TObject); var afrm : TfrmMainMenu; begin afrm := TfrmMainMenu(uniapplication.FindComponent('frmMainMenu')); afrm.UniLabel1.Caption := 'HELLO'; end; All the best -- .
  21. Message from: "Harry Rogers" Farshad Mohajeri wrote: > > "Harry Rogers" wrote in message > news:02n6LeCfLHA.2316@anaxagvs227... > > Hi Farshad > > > > What mechansims, if any, exist to broadcast to all clients ? > > > > It would be nice if a session had an 'OnGlobalMessage'event > > which was triggered from something like > > serverModule.SendGlobalMessage. > > > > > > Any thoughts ? > > > > Will it be a text message for web sessions or an internal message > like Windows messages? I had thought originally of a text message for web sessions. An instance of a form could have the choice of listening to messages recevied by its session. All the best Harry -- .
  22. Guest

    Forms Collection ?

    Message from: "Harry Rogers" Farshad Mohajeri wrote: > > "Please note that if "FreeOnDestroy" is true (true by default), > Form will be automatically destroyed when user closes it. > "FreeOnClose" Hi Farshad That's clear now - thank you -- .
  23. Guest

    Forms Collection ?

    Message from: "Farshad Mohajeri" "Please note that if "FreeOnDestroy" is true (true by default), Form = will be automatically destroyed when user closes it.=20 "FreeOnClose"
  24. Guest

    Forms Collection ?

    Message from: "Farshad Mohajeri" "Harry Rogers"=20 > Hi Farshad >=20 > What's is the correct mechinism to access specific instances of forms > within a session. Maybe a little diagram helps ?? >=20 > Dynamic Dynamic Dynamic > forms 1 forms 2 forms 3 >=20 > 2.1 > 1.1 /------- > ------ 2.2 > \------- > 2.3 > / 1.2 /------- =20 > Mainform - ------ 2.4 > \ \------- 3.n > 2.5 \-------- > 1.3 /------- > ------ 2.6 > \-------=20 >=20 >=20 > if form 3.n needs to update a member in any other dynamic form how = does > it find the one it's after. Presuambly the session must have a forms > collection of some type ? how to access it ? >=20 > Hope (1) that makes snese > and (2) it's not a dumb question ! >=20 >=20 You can find forms by calling owner's "FindComponent".=20 Since "UniApplication" is owner of all forms below code should work: TargetForm:=3DUniApplication.FindComponent('MainForm'); or TargetForm:=3DUniApplication.FindComponent('UniForm1'); So are all these forms visible on the screen? I mean do you want to = change a visual control on another form? Please note that if "FreeOnDestroy" is true (true by default), Form will = be automatically destroyed when user closes it.=20
  25. Message from: "Farshad Mohajeri" "Harry Rogers" wrote in message news:02n6LeCfLHA.2316@anaxagvs227... > Hi Farshad > > What mechansims, if any, exist to broadcast to all clients ? > > It would be nice if a session had an 'OnGlobalMessage'event > which was triggered from something like serverModule.SendGlobalMessage. > > > Any thoughts ? > Will it be a text message for web sessions or an internal message like Windows messages? .
×
×
  • Create New...