Page 1 of 1 1
Topic Options
#208179 - 2013-12-19 07:29 PM KixForms Classic Tab Issue
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
Greetz!

I'm scratching my head over this one... I created a KixForms utility with 5 tabs. The form and tabs display correctly, but I cannot select the tabs in random order. When the app launches, tab 1 is displayed. If I click Tab 5, Tab 2 displays! With this code, the tabs MUST be clicked in sequential order to display properly. Once this is done, you can randomly select any tab.

The tabs are fairly complex, so I have simplified the code to still have 5 tabs, but with only one text field on each. All of the supporting functions that load, clear, or manage the data fields have been similarly trimmed. I had hoped that this would help uncover the issue, but it has not. I've attached the source in a ZIP file because it's around 1700 lines. I've compared this with other multi-tab apps that I've written and can't find any significant difference. There is an OnTabChange function, but even an immediate exit won't change the results.

I figure with the Christmas and new year holidays upon us, many of us are dealing with year end change freezes and a lack of posts here on KORG and are bored as hell, so - here you go! I appreciate the help!

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#208180 - 2013-12-19 07:43 PM Re: KixForms Classic Tab Issue [Re: Glenn Barnas]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4562
Loc: USA
Personally, I have hardly used Kforms... but I'll take a look when I get a minute.
Top
#208182 - 2013-12-19 08:05 PM Re: KixForms Classic Tab Issue [Re: Allen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
Ahh, OK... I actually found it.

I had defined the tabs, and then - because it took a while to populate the fields, I had added five $tabPAGE#.Visible = 0 statements before the form inits, and five corresponding $tabPAGE#.Visible = 1 statements after the init was done.

I commented those out, watched the form populate, and the weird sequential selection issue disappeared. I replaced those lines with simple $FORM.Hide and $FORM.Show and it still works, and the form build process doesn't show. It only took about 1.5 seconds to build all the fields, but it looked distracting.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#208183 - 2013-12-19 09:03 PM Re: KixForms Classic Tab Issue [Re: Glenn Barnas]
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Help. I'm not seeing the attached zip file \:\(
Top
#208185 - 2013-12-19 10:06 PM Re: KixForms Classic Tab Issue [Re: Shawn]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Me either.
Top
#208186 - 2013-12-19 11:13 PM Re: KixForms Classic Tab Issue [Re: ShaneEP]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
I pullled the zip when I found & fixed the issue, as I mentioned above. Only Allen was fast enough to grab a copy.

The original code is 4400 lines (so far), so cutting it back helped me find the issue. The structure was similar to SIT v3.0 (Shawn might remember) but without the dynamic tabs.

The tool provides a GUI for our Universal Login Script, managing all of the configurable parameters except the user-defined values. The 1.0 version should be up on my web site for download after the new-year holiday.

It's the first KF-based GUI I've done in a while, even though I use KF pretty heavily in other apps, especially when I use Kix for system services. The ability to use timers and Socket communications has been a lifesaver. THANKS Shawn!!!

My WUS tool and API library was recently upgraded to run as a system service, as has our Log Cleanup suite. All 28 of my Windows servers run two Kix services - one to manage all of the logs and another to precisely deliver WSUS updates within a pre-defined monthly change window. The WSUS service is getting an upgrade to communicate with a central server for centralized logging and administration, as well as "right-now" deployments. We have two other Kix service-apps. One is used to send emails from various apps via a "drop box" and has been discussed in the Scripts forum. The other is used to allow end userd to detect a condition and request an immediate admin-executed installation. It's being tested at a division of Clear Channel Communications, and once we complete testing and feedback, I'll add it to the scripts library here as well.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#208187 - 2013-12-20 03:51 AM Re: KixForms Classic Tab Issue [Re: Glenn Barnas]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11627
Loc: CA
Who is this Shawn imposter? I thought he went the way of the Zen to other gardens far away.

(hope all is well for you Shawn, good to see you around)

Top
#208188 - 2013-12-20 11:53 PM Re: KixForms Classic Tab Issue [Re: NTDOC]
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Really good to hear from you too Doc. Really good ! I'm doing very well. Believe it or not, the Wife (Lori) was asking about you the other day - whether I had heard from you.

Brief overview: I left my old position as the "company domain login guy" about 5 years ago. Working for a different company now, totally different position - I'm a "Middleware guy" now - looking after Sharepoint / WebSphere / JBoss and the like.

Having said that, I still try to Kix whenever I can. In fact, we just put together a little monitoring script that issues SOAP web service calls to our app servers - looking for outages and slow response times. Send emails alerts etc.

What you up to these days ? Still with "the Mouse" ?

Top
#208204 - 2013-12-24 10:49 AM Re: KixForms Classic Tab Issue [Re: Shawn]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11627
Loc: CA
No I left the mouse probably about 8 years ago. They outsourced their IT and just kept a very small skeleton crew for middle men to the outsource company.

I manage a small/mid size company with about 1,000 employees with 4 locations 3 in the US and 1 in Europe. Don't script much myself these days but every once in a while.

Doing VMware migrations and the virtualization game while trying to keep all the major server apps and desktops running. Finally hired a new guy to help with desktop issues as I was getting buried with too many tasks. Still dealing with best ways to secure certain data yet still allow outside partners access to the data and fending off the programmers that seemingly want to make everything available over the Internet.

Well Merry Christmas and Happy New Year to you and the family Shawn. Tell Lori I said hi and glad to hear from you and her as well. Sure miss the "good old days" that's for sure.

Top
#208209 - 2013-12-24 04:12 PM Re: KixForms Classic Tab Issue [Re: NTDOC]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
 Quote:
fending off the programmers that seemingly want to make everything available over the Internet.


I bet all of them are iBelievers.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 793 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.063 seconds in which 0.027 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org