Home
The Toolkit for Online Communities
17220 Community Members, 1 member online, 2042 visitors today
Log In Register
OpenACS Home : ACS API Browser : rp_form_put

rp_form_put (public)

rp_form_put name value
Defined in packages/acs-tcl/tcl/request-processor-procs.tcl

This proc adds a query variable to AOLserver's internal ns_getform form, so that it'll be picked up by ad_page_contract and other procs that look at the query variables or form supplied. This is useful when you do an rp_internal_redirect to a new page, and you want to feed that page with certain query variables. Note that the variable will just be appended to the form ns_set which may not be what you want, if it exists already you will now have two entries in the ns_set which may cause ad_page_contract to break. Also, only simple variables may be added, not arrays.

Parameters:
name
value
Returns:
the form ns_set, in case you're interested. Mostly you will want to discard the result.
Author:
Lars Pind <lars@pinds.com>
Created:
August 20, 2002
Source code:
    set form [rp_getform]
    ns_set put $form $name $value
    return $form

Generic XQL file:
<?xml version="1.0"?>
<queryset>

<fullquery name="ad_acs_kernel_id_mem.acs_kernel_id_get">      
      <querytext>
      
	select package_id from apm_packages
	where package_key = 'acs-kernel'
    
      </querytext>
</fullquery>

 
<fullquery name="ad_acs_admin_id.acs_admin_id_get">      
      <querytext>
      
        select package_id from apm_packages
        where package_key = 'acs-admin'
    
      </querytext>
</fullquery>

<fullquery name="rp_lookup_node_from_host.node_id">
      <querytext>

        select node_id 
	from host_node_map
	where host = :host

      </querytext>
</fullquery>

 
</queryset>

Postgresql XQL file:
<?xml version="1.0"?>
<queryset>
<rdbms><type>postgresql</type><version>7.1</version></rdbms>

<fullquery name="root_of_host.root_get">      
      <querytext>
      
	select site_node__url(:node_id) as url
    
      </querytext>
</fullquery>

</queryset>

Oracle XQL file:
<?xml version="1.0"?>
<queryset>
   <rdbms><type>oracle</type><version>8.1.6</version></rdbms>

<fullquery name="root_of_host.root_get">      
      <querytext>
      
	select site_node.url(:node_id) as url
	from dual

      </querytext>
</fullquery>

</queryset>

[ hide source ] | [ make this the default ]
Show another procedure: