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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,331
» Latest member: lokpahal
» Forum threads: 2,154
» Forum posts: 10,484

Full Statistics

Online Users
There are currently 465 online users.
» 2 Member(s) | 458 Guest(s)
Applebot, Bing, Facebook, Google, Yandex, conveyorsystems, lokpahal

Latest Threads
Call TPicture.Assign in a...
Forum: IntraWeb General Discussion
Last Post: lmengyew
Yesterday, 09:48 AM
» Replies: 0
» Views: 31
Http.sys application prom...
Forum: IntraWeb General Discussion
Last Post: lmengyew
Yesterday, 08:25 AM
» Replies: 2
» Views: 725
IntraWeb Bootstrap4 - dem...
Forum: IntraWeb General Discussion
Last Post: jindrich.volek
04-25-2024, 03:16 PM
» Replies: 0
» Views: 62
Dummy div in a IWRegion
Forum: IntraWeb General Discussion
Last Post: StephB
04-24-2024, 03:58 PM
» Replies: 2
» Views: 111
Create components at runt...
Forum: IntraWeb General Discussion
Last Post: PaulWeem
04-23-2024, 10:27 PM
» Replies: 1
» Views: 124
message when added TIWDBN...
Forum: IntraWeb General Discussion
Last Post: Mike_A
04-22-2024, 02:09 PM
» Replies: 6
» Views: 1,281
303 Redirect and Response...
Forum: IntraWeb General Discussion
Last Post: ALW2019
04-22-2024, 01:25 PM
» Replies: 3
» Views: 548
IW 15.5.9 IWChart
Forum: IntraWeb General Discussion
Last Post: PaulWeem
04-22-2024, 07:16 AM
» Replies: 2
» Views: 255
Data Decimation in ChartJ...
Forum: IntraWeb General Discussion
Last Post: iwuser
04-22-2024, 06:51 AM
» Replies: 8
» Views: 1,622
ClassicRegionDraw
Forum: IntraWeb General Discussion
Last Post: JuergenS
04-17-2024, 05:35 PM
» Replies: 0
» Views: 165

 
  IWDBAdvWebGrid "MouseSelect" Issue
Posted by: sirmikealot - 03-18-2022, 10:17 PM - Forum: IntraWeb General Discussion - No Replies

When using the "IWDBAdvWebGrid" component and setting "MouseSelect = msMove", so that the dataset is repositioned to the matching grid row,...
one of my columns suddenly loses the values from the database and shows the first value from the list instead. I should also point out that the '1st' row in the grid is always colored grey, whether it's selected or not ( regardless of whatever row i click on. another issue ).


That specific column settings are:



ColumnType = ctDynCombo

ComboItems = User, Manager (stored in one value per line)


ComboBalues = U, M (stored in one value per line)


Editor = edCombo

DataSource = qUsers ( MySQLDac query component used for all columns in this grid. )




All other columns work fine, it just appears to be the ctDynCombo that has the issue.



When I click a row or cell, the "MouseMove.mtMove" setting takes affect and then ALL rows with the ctDynCombo suddenly have the same value.

I've spent 2 days on this, and am completely stumped. I've even seen this behavior using your demo apps and using the ctMove setting - so I know it's not my code or project that is at fault - and I seriously need ctMove feature to work correctly.



I have created some TIWButtons that also demonstrate something interesting. ( Add, Edit, Delete, Save, Cancel ).



1. I click on any row and the column's combobox suddenly loses it's original display values and all become the same.

2. This combo values remain the same no matter what other columns or rows I click on.

3. I click my own TIWButton that calls "dataset.Edit" and the selected row goes into edit mode AND all original combo box values are restored.

4. I click 'save' or 'cancel' and the values are fine.

5. I click onto a different row and the combo values in that column are lost again.



I am on Delphi 10.4 and the latest IW 15.2.50.



Please advise. I'm seriously out of ideas on how to make this work, and as I said, I can get it to break on your demos as well by choosing the "MouseMove = msMove" property.



Attached Files Thumbnail(s)
       
Print this item

  IW Source Code
Posted by: ozelaya - 03-18-2022, 02:37 PM - Forum: IntraWeb General Discussion - Replies (2)

Hi,

I have a valid subscription for IW Ultimate. When I look for the latest source code, ther last zip file version available is 15.2.27. There is no source code for lastest 15.2.50?

Any hints?

Thanks in advance,

Omar Zelaya

Print this item

  Delphi 11.1 - 64 bit compile issue?
Posted by: rudyPos - 03-17-2022, 12:22 PM - Forum: IntraWeb General Discussion - Replies (9)

Delphi 11.1 (was working with 11.0)
15.2.50
Build or Compile fail:
A) App1:
"[dcc64 Fatal Error] ServerController.pas(44): F2051 Unit IWInit was compiled with a different version of IWGlobal.gServerControllerClass'"
B) App2:
"[dcc64 Fatal Error] IWMain.pas(8): F2051 Unit IWStandAloneServer was compiled with a different version of IWURL.TURL"

32 bit app profile compiles ok Build and Compile

What can be done?
TIA Huh

Print this item

  Redirect in form constructor
Posted by: Adrien - 03-16-2022, 08:42 AM - Forum: IntraWeb General Discussion - Replies (2)

Hi,

Since I migrated to IW15, something I was doing previously does not work anymore. In the WebApp main form (which is a login page), I was reading parameters from the URL in order to bypass the login view if the correct "auth_token" is provided trough the URL parameters. This detection was done directly in the login form constructor :


Code:
constructor TLoginView.Create(AOwner: TComponent);
var
...
begin
  if WebApplication.RunParams.Values['username'] <> '' then
  begin
    txtUserName.Text := WebApplication.RunParams.Values['username'];
    LUserCredentials := True;
  end;
  if WebApplication.RunParams.Values['auth_token'] <> '' then
  begin
      txtPassword.Text := AuthTokenToPassword(WebApplication.RunParams.Values['auth_token']);
      LPwdCredentials := True;
  end

  ...
  if tryLogin then
     with TMainView.Create(WebApplication) do Show;


This code does not work anymore in IW15. 

I tried using a timer and executing this code inside it, and it works. I suppose it is because the timer code is executed after the form is rendered and not in the form constructor. But is it the best way to handle a such redirection, or is there another recommended method ?

Best regards,

Adrien

Print this item

  Delphi 10.3 IntrraWeb 15.2.36 failure within IWBaseForm
Posted by: defaultuser - 03-15-2022, 08:33 PM - Forum: IntraWeb General Discussion - Replies (9)

Hello, 

I'm debugging an application that has an unhandled exception stemming from InternalInitInheritedComponent in IWBaseForm, I can see that it raises an exception within CreateComponent proc witihin System.Classes. Is there anything I can do on my end to circumvent, or could this be a bug?  I tried IW 15.2.50 but the problem persists. This issues was not noted in version 15.2.24, attached is the stack trace.



Attached Files Thumbnail(s)
   
Print this item

  Save Post File issue
Posted by: Blanca80 - 03-14-2022, 04:14 PM - Forum: IntraWeb General Discussion - Replies (4)

Hello everybody,

I have implemented the iw.content.xml execute function like the deploy in PostDataDemo and it works fine. The problem is when i save the file that i posted for example like this

1. catch the file. (only 1 file) 

     xFile := THttpFile(aRequest.Files[0]);

2. save the file directly on the server. 

  xFile.SaveToFile(FTempName);

That "new" posted file has added the following headers/ foot: 

-----------------------8da05d7825e0cb7
Content-Disposition: form-data; name="file"; filename="STR7F6F_14_03_2022_16_27_02.TXT"
Content-Type: application/octet-stream

.
.
.
-----------------------8da05d7825e0cb7--

In some types of files this ends in their corruption, like excel ones. 

If i load this into filestream and then save it is the same. 

the only thing that occurs to me is to load into a streamreader object, read the lines, and discard the boundaries and the header ones. But is there an easiest way to do that? 

In resume how do i can avoid the boundaries and header lines in the httpfile before save? 

Thank you very much

kind regards

Blanca

Print this item

  using ICS Overbyte component on IntraWeb Problem
Posted by: baxing - 03-10-2022, 02:32 PM - Forum: IntraWeb General Discussion - Replies (13)

Hello everyone and support,

I have problem about use ICS Overbyte component on IntraWeb application.

About, I use TWSocket component of ICS for WebSocket client and it has error "Invalid argument (#10022 in WSAAsyncSelect)" when try to connect to WebSocket Server or try to send data to Websocket server.

Before, I ask to Delphipraxis ICS forum in this: link delphipraxis ics topic and Mr. François PIETTE who is created ICS compoent told me through the forum that:

Quote:Now I'm convinced that this is an issue with IntraWeb. The test program has nothing to do with ICS. It only make use of the same fundamental Windows functions that ICS uses. If the test program doesn't work, then ICS won't work either.

I suggest you contact IntraWeb support with the test programs (Both VCL and IntraWeb) so that they can fix their code.

Please guide me for fix this error for InraWeb application. Because, I try this component VCL applicaiton it's working normally.

Print this item

Bug Frame with Template
Posted by: oulijrasec - 03-07-2022, 04:31 PM - Forum: IntraWeb General Discussion - Replies (4)

I made a frame with template load in a region on my main form, 

But javascript is not executed on frame call

Attached example



Attached Files
.zip   AsyncRenderFrameTemplate.zip (Size: 6.33 KB / Downloads: 8)
Print this item

  Dynamic body change
Posted by: VampireKB - 03-07-2022, 10:34 AM - Forum: IntraWeb General Discussion - Replies (1)

Hello all !
is it possible to change body of http throw intraweb ? 

as an example:
i have a static template
<html>
<body>
#1
#2
#3
<body>
<html>

and i want to replace #1 with my data  and show it to user...

(searched all examples on git and help docs...)


While it get an approvement i already find an answer and have a problem #2 ))

i'm using IWTemplateProcessorHTML>>onunknowntag to create info i needed
and now i need to return info back into intraweb ,...

i tryied to copy function from DBGRID ( <a HREF="#" OnClick="return SubmitClickConfirm('IWDBGRID1','0_name', true, '');">name</a> ) but it do nothing... )



Self answer...
at template add:

<script>
function Submitrowdata(e) {
var a=e
ajaxCall( "Submitrowdata","id="+a )}
</script>

At form "OnCreate" add:


RegisterCallBack('Submitrowdata',
procedure (aParams: TStrings; out aResult: string)
begin
IWMemo1.Lines.Add(aParams.Values['id']);
end
);



Attached Files
.zip   http_test.zip (Size: 435.5 KB / Downloads: 2)
Print this item

  JS change IWEdit
Posted by: matija - 03-07-2022, 09:08 AM - Forum: IntraWeb General Discussion - No Replies

My example:
 
IWEdit.Text:='test1';

Template: {%IWEdit%}

JS: document.getElementById('IWEdit').value ='test2' or $('#IWEdit').val('test2');

JS good change value in IWEdit from test1->test2

I would like to now Intraweb detect change IWEdit with IWEditAsyncChange

procedure TForm1.IWEditAsyncChange(Sender: TObject;
  EventParams: TStringList);
begin
      WebApplication.ShowNotification('Change!', ntSuccess);
end;

This change event not work?! I forgot the property IWEdit?!

Print this item