
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] [table -editor] default value
Ugh...got most of it figured out except.
here's the problem
I'm carring a form value of customer=[cgi customer] through the UI...no
problem.
I've created a table of notes with the following code
[calc]
$CGI->{viewrecipient}=1;
$CGI->{noshow}=1;
if($CGI->{customer}) {
$CGI->{item_id} = $CGI->{customer};
}
if(! $CGI->{item_id} and $Session->{arg}) {
$CGI->{item_id} = $CGI->{customer} = $Session->{arg};
}
$CGI->{customer} = $CGI->{item_id} if ! $CGI->{customer};
return if ! $CGI->{item_id};
if(! $CGI->{mv_data_table}) {
$CGI->{ui_hide_key} = 0;
$CGI->{mv_data_table} = 'catalogreq_notes';
}
if(! $CGI->{ui_data_fields}) {
$CGI->{ui_data_fields} = <<EOF;
code
catreqno
note
date
source
EOF
}
if(! $CGI->{ui_return_to}) {
$CGI->{ui_return_to} = join "\0",
'__UI_BASE__/contact_view',
"customer=$CGI->{item_id}",
;
}
if(! $CGI->{override.catreqno}) {
$CGI->{override.catreqno} = $CGI->{customer};
}
return;
[/calc]
[if !cgi item_id]
[bounce page="__UI_BASE__/cat_recipient"]
[/if]
[set ui_class]Contacts[/set]
[seti page_title]Contact data -- [cgi item_id][/seti]
[seti page_banner]Contact Notes data: <B>[page
href="__UI_BASE__/contact_view" form="customer=[cgi customer]"][cgi
customer]</A></B>[/seti]
[set help_name]contact.edit[/set]
[set icon_name]icon_contact.gif[/set]
@_UI_STD_HEAD_@
<P>
[table-editor cgi=1]
@_UI_STD_FOOTER_@
<!-- page: @@MV_PAGE@@
[return-to click]
-->
my problem is that I want column catreqno to be automatically inputed with
the customer=[cgi customer] value.
THX N ADV.
J. Scott Andreas :)
IS/Programmer/WebDevelopement
Learning Services, Inc.
e-mail: sandreas@learningservicesinc.com
phone: 1-800-877-9378 ext. 146
fax: (541) 744-2056
--- __o
--- _-\<,_
--- (_)/ (_)
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users