At 17.48 +0100 2007-03-05, jolle@carlestam.com wrote: >Hello Johan and other Knopare! > >Sitting on a really boring ariport (Miami). Starting to play with Knop a little. Exciting!
Sitting on Newark Airport waiting for my transatlantic leg... Really smooth trip so far
>And since I know I wont be able to send this mail for a while I'm using it as a note block while examining Knop. > >First note. I would prefer that public folders where not named with a starting underscore. I got caught on _css. My Apache is configured to not allow folders or files starting with an underscore. That is a way for me to secure that Lasso stuff can't be accessed directly thru Apache.
Makes sense. That was probably my intention from the beginning as well, not sure why it ended ut with underscore. You can change this as you want, this does not affect anything at all in the framework.
>Second note. Right now I'm stuck on this message: Nav debug trace not enabled. It seems as if I'm missing some configuration that's should present me with the option to create a new record.
The nav ctype doesn't have the trace enabled as default, that is no messages are added to the trace array as default. This is for performance reasons, since nav is called so many times by itself. I didn't want to risk the debug trace array insertion to slow anything down. Enable the debug trace when you create a nav object by specifying -debug. Luckily for me this is actually covered in tagreference.txt ;-)
-> oncreate optional: -default // Key of default navigation item optional: -root // The root path for the site section that this nav object is used for optional: -navmethod // path or param. Path for "URL designed" URLs, otherwise a -path parameter will be used for the navigation. optional: -trace // Flag, if specified debug_trace will be used. Defaults to disabled for performance reasons.
>Recommendation. A walk-thru on how to setup the demo. What to configure where.
Absolutely, as time permits... I'm not exactly happy with the state of the so called documentation at this point.
>Admittedly I don't ave any records to display in the list. But where's the add button?
The framework doesn't provide an add button at the record listing, you have to add the add button yourself to the content file. See the example for cnt_customer_list and cnt_advanced_list.
>After trying some more I have to admit that I'm stuck here. Even if I search for the string "Nav debug trace not enabled" with Bbedit I can't find it. Strange. And I do wonder where the Create new button is. > >This piece of code in the index.lasso doesn't seem to do anything: > >$nav -> (include: 'content')] >At least inserting it twice made no difference.
That is because $nav knows that the file has already been included on the page, so it won't include it again... The purpose of that check is actually to prevent the config being loaded twice, once for the action and once for the lib/cnt.
Try removing [$nav -> (include: 'content')] instead and see what happens...
>Aha, having some sleep gave me the solution. I didn't use the Filemaker DB. Instead I created a Mysql table using the suggested code. And it turns out that there have to be at least one record in the DB in order for the list object to be included. I would call that a bug. :-)
Without checking the code, I don't see a reason for showing the grid object for no found records. Will look into it.
>Now I have a Create new button. Moving on. > >Still get this: Nav debug trace not enabled > >Third note. I'm puzzled and somewhat disturbed. I never changed username and password in the >var: 'd'=(mt_database: -database='jina_testing', -table='ramverktest', > -username='knop', -password='knop', > -keyfield='keyfield', -lockfield='lockfield'); > >And the search still works. What's wrong in my Lasso configuration that allows anyone to do a search? And for that matter, to change the record as well. I do not use Anyuser in my solutions and up untl this point I thought that only explicitly supplying the user and password I assigned should work.
If you have been logged in as serveradmin or siteadmin to access lasso admin on same hostname, then you are already authenticated. Restart the browser and try again, and you should not be able to access the databases. The framework does no magic about this btw so it's an unrelated problem.
>Forth note. I have a number of these: >Getbutton: No button found > >Is that good or bad?
It depends on where you get it. After submitting a form? In that case, what's the name of your submit button? ->getbutton only looks for submit buttons (or image submits) whose names begin with button_. And if it finds one, it returns the part of the name that comes after button_ (minus the .x or .y from an image submit)
>Well finally home again.
Was the flight ok? Mine leaves in 2 hours.
-- Johan Sölve [FSA Member, Lasso Partner] Web Application/Lasso/FileMaker Developer MONTANIA SOFTWARE & SOLUTIONS http://www.montania.se mailto:joh-n@montania.se (spam-safe email address, replace '-' with 'a')
############################################################# This message is sent to you because you are subscribed to the mailing list <knop@lists.montania.se>. To unsubscribe, E-mail to: <knop-off@lists.montania.se> Send administrative queries to <knop-request@lists.montania.se> List archive http://lists.montania.se/Lists/knop/ (log in with your email and ConfirmationID as password, send message to <knop-confirm@lists.montania.se> to get that ID)
Mar 05
jolle Knop reflektioner
Mar 05, 2007; 17:48
jolle
Knop reflektioner
Mar 06
Johan Solve Re: Knop reflektioner
Mar 06, 2007; 06:41
Johan Solve
Re: Knop reflektioner
Mar 06
Jolle Re: Knop reflektioner
Mar 06, 2007; 07:18
Jolle
Re: Knop reflektioner
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!