Jump to content

Farshad Mohajeri

Administrators
  • Posts

    12114
  • Joined

  • Last visited

  • Days Won

    805

Everything posted by Farshad Mohajeri

  1. Yes, it is only available at design time for developer reference. It is taken from uniGUIXX.BPL file DLL version number.
  2. Correction: for I := 0 to ASessionList.Count - 1 do begin if not TUniGUISession(ASessionList[i]).IsTerminated then (TUniGUISession(ASessionList[i]).UniMainModule as TUniMainModule).MyVar:=10; end;
  3. In MainModule: TUniMainModule = class(TUniGUIMainModule) private { Private declarations } public { Public declarations } MyVar : Integer; end; In your code: implementation {$R *.dfm} uses uniGUIVars, MainModule, ServerModule, uniGUISessionManager; procedure TMainForm.UniButton1Click(Sender: TObject); var I: Integer; ASessionList: TList; begin ASessionList := UniServerModule.SessionManager.Sessions.SessionList.LockList; try for I := 0 to ASessionList.Count - 1 do begin (TUniGUISession(ASessionList[i]).UniMainModule as TUniMainModule).MyVar:=10; end; finally UniServerModule.SessionManager.Sessions.SessionList.UnlockList; end; end;
  4. What is the format of requesting URL from external JS lib? Any example?
  5. Still not clear for me. How do you refer to other sessions? By Session Id? Do you keep a list of them? Do you want to share a global variable among all sessions? If yes put it in servermodule and protect it by Lock/Unlock
  6. function OnCollapse(combo) { }
  7. Does it crash web app? In what way?
  8. In this scenario grid must be refreshed. Can you send a simple test case?
  9. There will be always differences between WEB and VCL. This is nature of web programming. You can't edit a grid unless you set focus on Grid's active cell. For example, consider you have three DBEdits and one DBGrid on Form and you set DataSet to Edit mode, where focus should go? Edit1, Edit2 or DBGrid?
  10. How do you refresh the table, by calling refresh? Code sample please.
  11. We can add a property to button which locks it until request is completed. You can achieve same effect yourself now using client scripting.
  12. Components and Samples forum is only for complete and working components provided by uniGUI users. Please ask your questions in General forums.
  13. Shared hosts can not be used to run ISAPI apps.
  14. What is type of your server. It must be a dedicated or a virtual server to run ISAPI apps.
  15. XE is the most stable version in my view. XE2 is not as stable but a very good version too. Addition of 64-bit is a major feature in XE2. I haven't played with FireMonkey stuff as I don't need them. Neither do I need OS X stuff. I think it is better to wait a few more months and buy XE3.
  16. Then you need to use OnEnter event for each field on the form.
  17. OnEnter is only meaningful for controls which can accept focus. Panels can not be focused hence OnEnter is meaningless.
×
×
  • Create New...