Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 97,907
» Latest member: xoilacteam1
» Forum threads: 2,426
» Forum posts: 11,371

Full Statistics

Online Users
There are currently 1431 online users.
» 3 Member(s) | 1425 Guest(s)
Applebot, Bing, Google, ao888innet, Febetzcocom, taxihotram

Latest Threads
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
09-11-2026, 09:49 PM
» Replies: 1
» Views: 169
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 137
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 154
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 453
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 230
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 625
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 217
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,218
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 348
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 972

 
  How URL routing
Posted by: matija - 03-29-2023, 05:28 AM - Forum: IntraWeb General Discussion - Replies (1)

How implement URL routing products? Where to start?

Example:
http://localhost/articles/article-1 
http://localhost/articles/article-2

Print this item

  add attr in input tag
Posted by: raulevm - 03-29-2023, 12:44 AM - Forum: IntraWeb General Discussion - Replies (1)

I would like to add from Delphi the data-role attribute with the value "checkbox" in the input tag of an IWCheckBox. I was only able to create it in the span tag, but I need to put it in the input tag

Code:
procedure TFrmMain.IWCheckBox1HTMLTag(ASender: TObject; ATag: TIWHTMLTag);
begin
ATag.AddStringParam('data-role', 'checkbox');
end;
Code:
<span class="IWCHECKBOX1CSS" data-role="checkbox" data-type="IWCHECKBOX" id="IWCHECKBOX1">
<input id="IWCHECKBOX1_CHECKBOX" name="IWCHECKBOX1_CHECKBOX" type="CHECKBOX">
<span id="IWCHECKBOX1_CHKBCAPTION">IWCheckBox1</span></span>

I wish it was like this


Code:
<span class="IWCHECKBOX1CSS" data-type="IWCHECKBOX" id="IWCHECKBOX1">
<input id="IWCHECKBOX1_CHECKBOX" data-role="checkbox" name="IWCHECKBOX1_CHECKBOX" type="CHECKBOX">
<span id="IWCHECKBOX1_CHKBCAPTION">IWCheckBox1</span></span>

Print this item

  TerminateAndRedirect
Posted by: Comograma - 03-28-2023, 03:56 PM - Forum: IntraWeb General Discussion - Replies (6)

I have a main form and a second form.
I have a button on the second form to terminate session/app.

I open main than with a button click, I open my second form. On that form a hit a button that calls WebApplication.TerminateAndRedirect('some page')

Why is that instead of terminate and redirect to the specified page, the app return to the main form?

Print this item

  How not refresh parameter
Posted by: matija - 03-28-2023, 07:45 AM - Forum: IntraWeb General Discussion - Replies (1)

If directly (first) write URL http://localhost/details?number=1  then read details
and then change URL http://localhost/details?number=2 and then not read details! I have to close browser it work.

Where/How do I need to read the URL parameter again? What wrong in my code?

My code:

IWServerControllerBaseConfig ->

with THandlers.Add('', '/Details', TContentForm.Create(TDetailsForm)) do
begin
    CanStartSession := true;
    RequiresSessionStart := false;
end;

IWServerControllerBaseGetMainForm ->

if WebApplication.RunParams.Count>0 then
begin

    if UserSession.param= 'number' then
        vMainForm:=TDetailsForm.Create(WebApplication)
    else
        vMainForm:=TDetailsForm.Create(WebApplication);

end else
      vMainForm:=TMainForm.Create(WebApplication);

TDetailsForm.IWAppFormShow ->

if (WebApplication.RunParams.IndexOfName('number') <> -1) then
      UserSession.param := WebApplication.RunParams.Values['number'];

Print this item

  IWDBGrid - (RefreshAsyncRender, DoRefreshControl)
Posted by: raulevm - 03-26-2023, 07:35 PM - Forum: IntraWeb General Discussion - Replies (1)

Good afternoon, working with an example template, I try to asynchronously refresh an IWDBGrid control to see the changes of a DataSet. I have used the RefreshAsyncRender method and the IWDBGrid1.DoRefreshControl := True; property. I can see the changes to the DataSet but the control scrolls below all other controls. Even if I don't have any DataSet connected to the IWDBGrid the control changes position.

Initially:

{%IWBUTTON1%}
{%IWBUTTON2%}
{%IWDBGRID1%}
{%IWBUTTON3%}
{%IWBUTTON4%}


After applying the mentioned method and property:

{%IWBUTTON1%}
{%IWBUTTON2%}
{%IWBUTTON3%}
{%IWBUTTON4%}
{%IWDBGRID1%}

I attach an example project. If this is an IntraWeb failure, which of the two ways should I use to correctly refresh the IWDBGrid asynchronously? Thanks



Attached Files
.zip   RefreshError.zip (Size: 92.13 KB / Downloads: 3)
Print this item

  How to reach TIWForm’s or TIWFrame’s components from another TIWForm or TIWFrame in c
Posted by: Ibouka - 03-24-2023, 01:01 PM - Forum: IntraWeb General Discussion - No Replies

I am working with a single IWForm in which I display alternatively IWFrames though it may have two IWFrame at the same time.
Under VCL and FMX environment TForm class is redefined as extern package that can be used to reach its properties everywhere within the project.

Code:
extern PACKAGE TForm1 *Form1;
There is no such a redefinition under IntraWeb and I didn’t manage to access properly the properties of my IWForm and IWFrame apart from their own source.
The workaround I found is to manually redefine IWForm and IWFrame like below:
Code:
//.h
class TIWFrame2: public TFrame
{
__published:    // IDE-managed Components
TIWRegion *IWFrameRegion;
private:    // User declarations
    TIWForm1 *IWForm1;
    TIWFrame1 *IWFrame1;
public:        // User declarations
        __fastcall TIWFrame2(TComponent* Owner);
};
//---------------------------------------------------------------------------

//.cpp
__fastcall TIWFrame2::TIWFrame2(TComponent* Owner)
        : TFrame(Owner)
{
IWForm1 = static_cast<TIWForm1*>(Owner);
IWFrame1 = static_cast<TIWFrame1*>(Owner);
}
//---------------------------------------------------------------------------
This snippet doesn’t compile in the UserSessionUnit, so every IWFrame must have its own declaration of almost all other IWFrame resulting in a messy code.
Furthermore, this doesn’t work every time. If two IWFrame are displayed in the IWForm, the tip doesn’t work for the first one.
I am afraid I am missing something trivial allowing to reach TIWForm’s or TIWFrame’s components from another TIWForm or TIWFrame in C++Builder.
Any idea?
Thank you for your help & Kind regards.

Print this item

  ContentHandlers for Articles not for Pages
Posted by: matija - 03-23-2023, 12:49 PM - Forum: IntraWeb General Discussion - Replies (4)

How can we implement show in one form my details articles?

I know an example from the pages!

THandlers.AddRootHandler('', '/', FormHandler)
with THandlers.Add('', '1', TContentForm.Create(TShopForm)) do
  begin
    CanStartSession := true;
    RequiresSessionStart := false;
 end;

Example:
http://localhost/shop/1 -> Details for article 1
http://localhost/shop/2 -> Details for article 2
http://localhost/shop/3 -> Details for article 3

Is there any demo?

Print this item

  TIWVideo file size limit?
Posted by: davidbaxter - 03-22-2023, 09:09 PM - Forum: IntraWeb General Discussion - Replies (4)

Working with the IWVideo demo program. If I copy lion.mp4 to a directory on my server, set iwvideo.videofile.url to that directory and run, all is well. If I change to the video I actually want to play, which is 1.5G, I get a spinning wait indicator and then nothing. The lion video will show "0/0:15" in the player, my file only "0". It doesn't seem to load.
My question is, then, is there a file size limitation, or do I need to do something other than RefreshAsyncRender to get a large file to play?

Print this item

  Session locked
Posted by: Comograma - 03-22-2023, 04:36 PM - Forum: IntraWeb General Discussion - Replies (2)

I have an IW app the is running on a server and several terminal picking machines are accessing this app.
My client employees are frequently getting without network access and for some reason the IW app on the server (running as a service) is crashing.
For them to be able to work again, I have to Stop/Start the service.
From the log file I get this:
------------------------------------------------------------------------------------------------------------------------
Exception message  : Session is already locked.
Session ID is invalid.
Exception class    : ESessionAlreadyLocked
Session ID        : U5frjA36njGH2PHcMhFc7-zKZWS
Exception details  : UrlPath=/$/callback; CallbackName=CODIGOARTIGO.DoOnAsyncEnter
Exception address  : 00797B25
Exception Time    : 2023-03-22 15:40:17.636
------------------------------------------------------------------------------------------------------------------------
Application Name  : Comogest_GestArmazemWebSrv.exe
Application Version: 1.0.0.0
Started at        : 2023-03-22 14:30:10.976
Running for        :  1 hour 10 minutes 6 seconds
Computer Name      : SERVICOS
Compiler Version  : 320
------------------------------------------------------------------------------------------------------------------------
IntraWeb Version  : 15.2.69
Multi-session      : False
Content Path      : C:\Comograma\Comogest_Gestao_Armazem\wwwroot\
Session count      : 24
------------------------------------------------------------------------------------------------------------------------
Client IP address  : 192.168.1.107
Request PathInfo  : /gestarmazem/$/callback
Request Method    : POST
Request User Agent : Mozilla/5.0 (Linux; Android 7.1.2; PM550 Build/N2G47H; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/111.0.5563.57 Mobile Safari/537.36
Cookies Count      : 1



Any idea on how to solve this?
How to terminate session on this case, when I loose access to the network (wireless) ?

Print this item

  Intraweb 15 JavaScriptOprions(Priority Support)
Posted by: valmeras - 03-22-2023, 01:47 PM - Forum: IntraWeb General Discussion - Replies (1)

I am using Intraweb 15.2.69 with Rad Studio 10.2.3 (C++ Builder)
I have noticed that the JQuery version 1.12.4, JavaScriptOptions in the ServerController is too old! For sure, it will be flagged by browsers as a security risk!
I know that Intraweb uses embedded JavaScript.
But what is this JQuery is for?
And is it possible to update it to the latest version?

Print this item