Telegram_2018-03-12T10

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2018 > 03 > 12 >

Telegram_2018-03-12T10

Telegram link

 

2018-03-12T10:00:10

 

I guess you're using something from a previous IW version

 


 

Telegram link

 

2018-03-12T10:00:18

 

some code with different parameters

 


 

Telegram link

 

2018-03-12T10:00:29

 

Guess again. It's latest IW.

 


 

Telegram link

 

2018-03-12T10:00:57

 

14.2.7 ... not IW17 :D

 


 

Telegram link

 

2018-03-12T10:01:43

 

The automatic ServerController that was created has a default IWServerControllerBaseNewSession method declared.

 


 

Telegram link

 

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

 


 

Telegram link

 

2018-03-12T10:01:57

 

with which parameters?

 


 

Telegram link

 

2018-03-12T10:02:10

 

Of course.... I know. I'm just complaining that the design is flawed. I know the solution already.

 


 

Telegram link

 

2018-03-12T10:02:28

 

procedure IWServerControllerBaseNewSession(ASession: TIWApplication;

 

var VMainForm: TIWBaseForm);

 


 

Telegram link

 

2018-03-12T10:02:32

 

procedure TIWServerController.IWServerControllerBaseNewSession(aSession: TIWApplication);

 

begin

 

ASession.Data := TIWUserSession.Create(nil, aSession);

 

end;

 


 

Telegram link

 

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

 


 

Telegram link

 

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 ?

 


 

Telegram link

 

2018-03-12T10:05:36

 

type: mention_name Marcelo user_id: 152929233 Butstrap? :) Kinky....

 


 

Telegram link

 

2018-03-12T10:06:36

 

sorry kkkk erro aqui do menino

 


 

Telegram link

 

2018-03-12T10:07:22

 

Chad, I'm using the stardard IDE designer.

 


 

Telegram link

 

2018-03-12T10:08:01

 

I created a standalone IW app, then in ServerController, when I double clicked on OnNewSession, that happened.

 


 

Telegram link

 

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

 


 

Telegram link

 

2018-03-12T10:09:58

 

Interesting.... that piece of code isn't even called.

 


 

Telegram link

 

2018-03-12T10:10:14

 

btw Chad, I've sent you an email ;)

 


 

Telegram link

 

2018-03-12T10:13:03

 

How do I do URL redirection, or set a form to be shown on a specific URL for Intraweb?

 


 

Telegram link

 

2018-03-12T10:13:46

 

type: mention @cwchua Already defined where? In code of yours?

 


 

Telegram link

 

2018-03-12T10:13:54

 

URL redirection wtih content handlers.

 


 

Telegram link

 

2018-03-12T10:14:12

 

Chad, no, like I said, default ServerController on a new Intraweb standalone server.

 


 

Telegram link

 

2018-03-12T10:14:14

 

type: mention_name Marcelo user_id: 152929233 email where? I dont see anything....

 


 

Telegram link

 

2018-03-12T10:14:35

 

type: mention @cwchua aah.. type: mention_name Alexandre user_id: 499541870 ???

 


 

Telegram link

 

2018-03-12T10:15:25

 

type: mention @czhower I can't use my default chuacw because it's already been taken ;)

 


 

Telegram link

 

2018-03-12T10:21:09

 

oh... darn it. I've figured out the issue.

 


 

Telegram link

 

2018-03-12T10:21:20

 

?

 


 

Telegram link

 

2018-03-12T10:21:29

 

I used the default IW wizard that came with Tokyo, then upgraded to IW 14.2.7....

 


 

Telegram link

 

2018-03-12T10:21:34

 

That's why.

 


 

Telegram link

 

2018-03-12T10:21:48

 

you see)))

 


 

Telegram link

 

2018-03-12T10:21:53

 

so my \guessing\ was right

 


 

Telegram link

 

2018-03-12T10:21:54

 

??

 


 

Telegram link

 

2018-03-12T10:22:09

 

you were using an older wizard with a newer version)))

 


 

Telegram link

 

2018-03-12T10:22:11

 

touchè

 


 

Telegram link

 

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...

 


 

Telegram link

 

2018-03-12T10:22:57

 

yes I remember this change of parameters something that happened 3 years ago i guess

 


 

Telegram link

 

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...

 


 

Telegram link

 

2018-03-12T10:24:02

 

No wonder!!!

 


 

Telegram link

 

2018-03-12T10:24:16

 

And I thought I stumbled across a bug.

 


 

Telegram link

 

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.

 


 

Telegram link

 

2018-03-12T10:24:54

 

17....

 


 

Telegram link

 

2018-03-12T10:25:21

 

I don't think I have a license for that.

 


 

Telegram link

 

2018-03-12T10:25:38

 

Besides, I haven't used IW for nearly 15 years I think?

 


 

Telegram link

 

2018-03-12T10:25:42

 

Its in Alpha testing.. there are many vids and docs on the site....

 


 

Telegram link

 

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.

 


 

Telegram link

 

2018-03-12T10:26:59

 

Well, IW is the quickest way I can think of to prototype a web application...

 


 

Telegram link

 

2018-03-12T10:27:12

 

yep.. and wait till you see what 17 will be able to do. :)

 


 

Telegram link

 

2018-03-12T10:27:26

 

I haven't really explored whether there are any IDEs that can do web apps...

 


 

Telegram link

 

2018-03-12T10:27:34

 

type: link https://www.atozed.com/intraweb/v17/

 


 

Telegram link

 

2018-03-12T10:27:57

 

The thing about IW is... the documents are really out of date.

 


 

Telegram link

 

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

 


 

Telegram link

 

2018-03-12T10:29:02

 

Example:

 

type: link https://doc.atozed.com/en/iw17/iwml/markdown/

 


 

Telegram link

 

2018-03-12T10:29:29

 

Yeah, I saw that earlier on... the documentation at the quickstart page doesn't even make sense.

 


 

Telegram link

 

2018-03-12T10:29:55

 

this doesnt make sense?

 

type: link https://doc.atozed.com/en/iw17/quick-start/

 


 

Telegram link

 

2018-03-12T10:30:06

 

or you mean 14 quickstart?

 


 

Telegram link

 

2018-03-12T10:31:37

 

I'll point out the issues later....

 


 

Telegram link

 

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?

 


 

Telegram link

 

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 :)

 


 

Telegram link

 

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.

 


 

Telegram link

 

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.

 


 

Telegram link

 

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 :)

 


 

Telegram link

 

2018-03-12T10:34:25

 

This one? type: link https://doc.atozed.com/en/iw14/develop/content-handlers/

 


 

Telegram link

 

2018-03-12T10:34:33

 

yes

 


 

Telegram link

 

2018-03-12T10:34:48

 

Ok, I can do this...

 


 

Telegram link

 

2018-03-12T10:35:05

 

So, to redirect, I just add code to the content handler's .Execute that shows my form?

 


 

Telegram link

 

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?

 


 

Telegram link

 

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.

 


 

Telegram link

 

2018-03-12T10:36:56

 

the data is normallly contained in your session, which by default is tracked by a cookie.

 


 

Telegram link

 

2018-03-12T10:38:52

 

Ah... I think I'll persist the data to the UserSessionUnit, and then read the same data back ;)

 


 

Telegram link

 

2018-03-12T10:38:56

 

Hopefully that works.

 


 

Telegram link

 

2018-03-12T10:39:19

 

back later... .printing, eating, going...

 


 

Telegram link

 

2018-03-12T10:39:36

 

will be on phone.. but data coverage where Im going is spotty at best.

 


 

Telegram link

 

2018-03-12T10:40:47

 

??

 


 

Telegram link

 

2018-03-12T10:41:59

 

Doh...