|
<< Click to Display Table of Contents >> Navigation: Telegram > 2018 > 03 > 12 > Telegram_2018-03-12T10 |
2018-03-12T10:00:10
I guess you're using something from a previous IW version
2018-03-12T10:00:18
some code with different parameters
2018-03-12T10:00:29
Guess again. It's latest IW.
2018-03-12T10:00:57
14.2.7 ... not IW17 :D
2018-03-12T10:01:43
The automatic ServerController that was created has a default IWServerControllerBaseNewSession method declared.
2018-03-12T10:01:50
this message says that you already has a method with that name with parameters that are not compatible with the ones required by registered libraries.... about this I'm 99.99% sure
2018-03-12T10:01:57
with which parameters?
2018-03-12T10:02:10
Of course.... I know. I'm just complaining that the design is flawed. I know the solution already.
2018-03-12T10:02:28
procedure IWServerControllerBaseNewSession(ASession: TIWApplication;
var VMainForm: TIWBaseForm);
2018-03-12T10:02:32
procedure TIWServerController.IWServerControllerBaseNewSession(aSession: TIWApplication);
begin
ASession.Data := TIWUserSession.Create(nil, aSession);
end;
2018-03-12T10:02:54
so there is in the design time code generator some bug the right one to tell about IW14 problems is Alexandre by the way
2018-03-12T10:05:17
type: mention @cwchua That looks like a Delphi error, not an IW one. IW uses the standard IDE designer. type: mention_name Alexandre user_id: 499541870 ?
2018-03-12T10:05:36
type: mention_name Marcelo user_id: 152929233 Butstrap? :) Kinky....
2018-03-12T10:06:36
sorry kkkk erro aqui do menino
2018-03-12T10:07:22
Chad, I'm using the stardard IDE designer.
2018-03-12T10:08:01
I created a standalone IW app, then in ServerController, when I double clicked on OnNewSession, that happened.
2018-03-12T10:08:45
The problem is that the default ServerController created, already has procedure IWServerControllerBaseNewSession(ASession: TIWApplication;
var VMainForm: TIWBaseForm); declared without overload
2018-03-12T10:09:58
Interesting.... that piece of code isn't even called.
2018-03-12T10:10:14
btw Chad, I've sent you an email ;)
2018-03-12T10:13:03
How do I do URL redirection, or set a form to be shown on a specific URL for Intraweb?
2018-03-12T10:13:46
type: mention @cwchua Already defined where? In code of yours?
2018-03-12T10:13:54
URL redirection wtih content handlers.
2018-03-12T10:14:12
Chad, no, like I said, default ServerController on a new Intraweb standalone server.
2018-03-12T10:14:14
type: mention_name Marcelo user_id: 152929233 email where? I dont see anything....
2018-03-12T10:14:35
type: mention @cwchua aah.. type: mention_name Alexandre user_id: 499541870 ???
2018-03-12T10:15:25
type: mention @czhower I can't use my default chuacw because it's already been taken ;)
2018-03-12T10:21:09
oh... darn it. I've figured out the issue.
2018-03-12T10:21:20
?
2018-03-12T10:21:29
I used the default IW wizard that came with Tokyo, then upgraded to IW 14.2.7....
2018-03-12T10:21:34
That's why.
2018-03-12T10:21:48
you see)))
2018-03-12T10:21:53
so my \guessing\ was right
2018-03-12T10:21:54
??
2018-03-12T10:22:09
you were using an older wizard with a newer version)))
2018-03-12T10:22:11
touchè
2018-03-12T10:22:26
aah... ok well nort a bug then.. the IW that comes wtih 10.2 is liek 5+ years old becuase EMBT doesnt want to chagne and retest the installer...
2018-03-12T10:22:57
yes I remember this change of parameters something that happened 3 years ago i guess
2018-03-12T10:23:30
No, I wasn't using an older wizard with a newer version. I used the default Tokyo IW wizard to create the project, then I upgraded to IW 14.2.7...
2018-03-12T10:24:02
No wonder!!!
2018-03-12T10:24:16
And I thought I stumbled across a bug.
2018-03-12T10:24:52
Have you looked at IW16 yet? Its going to be a game changer, and beyond just the Delphi world too.
2018-03-12T10:24:54
17....
2018-03-12T10:25:21
I don't think I have a license for that.
2018-03-12T10:25:38
Besides, I haven't used IW for nearly 15 years I think?
2018-03-12T10:25:42
Its in Alpha testing.. there are many vids and docs on the site....
2018-03-12T10:26:27
and we have a telegram group for it too and early alphas available. Its not quite usable yet for anything but testing, but within weeks we wil be abel to deplyo some apps once the 2 way databinding is done. Right now its limited to simple stuff like guess etc.
2018-03-12T10:26:59
Well, IW is the quickest way I can think of to prototype a web application...
2018-03-12T10:27:12
yep.. and wait till you see what 17 will be able to do. :)
2018-03-12T10:27:26
I haven't really explored whether there are any IDEs that can do web apps...
2018-03-12T10:27:34
type: link https://www.atozed.com/intraweb/v17/
2018-03-12T10:27:57
The thing about IW is... the documents are really out of date.
2018-03-12T10:28:41
yes.. BUT 17 is being documented as we go and there are arleady extensive docs in many areas and the 14 docs are under review too:
type: link https://doc.atozed.com
2018-03-12T10:29:02
Example:
type: link https://doc.atozed.com/en/iw17/iwml/markdown/
2018-03-12T10:29:29
Yeah, I saw that earlier on... the documentation at the quickstart page doesn't even make sense.
2018-03-12T10:29:55
this doesnt make sense?
type: link https://doc.atozed.com/en/iw17/quick-start/
2018-03-12T10:30:06
or you mean 14 quickstart?
2018-03-12T10:31:37
I'll point out the issues later....
2018-03-12T10:31:55
I need to give a URL to an external site that will redirect back to my IW form. How do I do that?
2018-03-12T10:32:29
the 14 docs are being redone, but if you can point to specifics it will save a lot of time and let us edit them sooner. I can also give you write access if you are really interested :)
2018-03-12T10:32:49
That is, say I give a site type: link http://chuacw.ath.cx :PortNumber/UniqueURL I want that specific URL to redirect to a particular form.
2018-03-12T10:33:02
the redirect - you can use content handlers to create custom inbound URLs that you handle. IIRC there are some demos for it.
2018-03-12T10:33:43
Id look up the demo but I have to leave in 30 mins and have some urgent work I have to finish before gonig including eating :)
2018-03-12T10:34:25
This one? type: link https://doc.atozed.com/en/iw14/develop/content-handlers/
2018-03-12T10:34:33
yes
2018-03-12T10:34:48
Ok, I can do this...
2018-03-12T10:35:05
So, to redirect, I just add code to the content handler's .Execute that shows my form?
2018-03-12T10:36:11
How do I redirect with existing contents on my form, so that when the redirection comes back, I get the old data and new data too?
2018-03-12T10:36:27
type: mention_name Alexandre user_id: 499541870 is the best one to answer - content handlers typically handle more raw data but can be used to go to specific forms as well.
2018-03-12T10:36:56
the data is normallly contained in your session, which by default is tracked by a cookie.
2018-03-12T10:38:52
Ah... I think I'll persist the data to the UserSessionUnit, and then read the same data back ;)
2018-03-12T10:38:56
Hopefully that works.
2018-03-12T10:39:19
back later... .printing, eating, going...
2018-03-12T10:39:36
will be on phone.. but data coverage where Im going is spotty at best.
2018-03-12T10:40:47
??
2018-03-12T10:41:59
Doh...