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.
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?
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"
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 ?
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.
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:
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?
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.
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
);