[ic] [table-editor] problems

Scott Andreas---Learning Services, Inc interchange-users@interchange.redhat.com
Tue Jan 15 13:21:00 2002


Try this...
[calc]
	if(! $CGI->{mv_data_table}) {
		$CGI->{ui_hide_key} = 0;
		$CGI->{mv_data_table} = 'products_characs';
	}
	if(! $CGI->{ui_data_fields}) {
		$CGI->{ui_data_fields} = 'code sku characid;
	}
return;
[/calc]
[table-editor
	cgi=1
	widgit.code = "text"
      label.code = "Code"
      widgit.sku = "text"
      label.sku = "Sku"
      widgit.characid = "text"
      label.characid = "Characid"

]

-----Original Message-----
From: interchange-users-admin@interchange.redhat.com
[mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of
Alexandra Birch
Sent: Tuesday, January 15, 2002 9:47 AM
To: Interchange
Subject: [ic] [table-editor] problems


Hi there

I can't get this tag to see my new table products_characs.
I am missing a step somewhere. Would apreciate any ideas.

It seemed non-essential add relevant info to mv_metadata but is this maybe
the problem?

----------------------------------------------------------------------------
------------------
Test form:
[calc]
        $CGI->{ui_data_fields} = "code sku characid";
        return undef;
[/calc]
[table-editor
        table=products_characs
        file_upload=0
        cgi=1
        item-id="code"
        widgit.code = "text"
        label.code = "Code"
        widgit.sku = "text"
        label.sku = "Sku"
        widgit.characid = "text"
        label.characid = "Characid"

]
End test form.
----------------------------------------------------------------------------
------------------
ErrorLog:
192.168.0.76 bVHJVAm5:192.168.0.76 - [15/January/2002:19:32:44 +0100] csc3
/cgi-bin/csc3/csc.html table-editor: bad table
products_characs
----------------------------------------------------------------------------
------------------
\d in my postgres db:
csc3=> \d products_characs
                               Table "products_characs"
 Attribute |    Type     |                          Modifier
-----------+-------------+--------------------------------------------------
-----------
 code      | integer     | not null default
nextval('products_characs_code_seq'::text)
 sku       | varchar(14) | not null
 characid  | integer     | not null
Index: products_characs_code_key
----------------------------------------------------------------------------
------------------


----------------------------------------------
Alexandra Birch
Trymedia Systems
965 10 77 71
www.trymedia.com
----------------------------------------------

_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users