On 5/21/05, Davor Ocelic <suppressed> wrote: > > > One more thing I'd like to know: > > How can I output/read the code field(primary key of products table) or > > any other field from the database-record corresponding to *the item > > currently being viewed*. > > On the flypage, you mean? > > It's ideologically the same trick as above, where "item" prefix is initialized > to the current item, > > Here's a trivial pages/flypage.html : > > <html><body> > > <h3>Product number: [item-code]</h3> > <p>[item-field description] . . . [currency][item-field price][/currency]</p> > > <br> > Return to the [page index]Index page</a>. > > </body></html> > Hmm, 'item'-prefix - sounds logical to me. I can see these tags work in the pages/flypage.html, but I am building a component, which I plan to put in one of the component-slots of that flypage.html template. Now if I try using [item-code] or [item-field price] in my component (which is loaded with the flypage.html), it just outputs the tags unchanged. What I am trying to do (i.e. my component) looks somewhat like this: -- <!-- BEGIN COMPONENT [control component test_component] --> Item No. [item-code] could be yours for only [item-field price] <!-- END COMPONENT [test_component] --> -- But as I said, interchange doesn't seem to care about replacing the [item-...] tags at all if used in my component. Thanks in advance. _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.