Share this page

# nca_configurator_set_ui_data

Oracle Configurator Functions

Saves Oracle Configurator data from an HTTP service response as internal parameters for correlation during replay.

    int nca_configurator_set_ui_data( LPCSTR ui_data_string );

ui_data_string | parameter containing the entire HTTP service response.

nca_configurator_set_ui_data is an service function for Oracle Configurator that parses data received from HTTP service requests and creates internal parameters for each value to correlate when the script is replayed.

During replay, any session-specific values saved as internal parameters are converted into the relevant nca_configurator_parameterize_data and nca_configurator_parameterize_url functions.

The internal parameters are released when the Oracle Configurator session ends.

This function is recorded when HTTP service request data containing dynamic values are received, and the data will be needed for subsequent calls to the server. For example:

- When Oracle Configurator is started, one of the first web requests, getUiType, returns dynamic values for the Terminate ID and the Session ID. These values must be correlated.The web_url function includes a query for the getUiType special service. Text is returned that will be incorporated in a subsequent UI-related step and must be correlated. An example would be the terminateId and returnUisessionId values in the following sample text:

ui_type=DHTML

appletWindowMessage=applet message

terminateId=3038

txtDone=Done

look_and_feel=BLAF

returnUisessionId=returnui130

We recommend that the ui_data_string argument be a parameter created using the web_reg_save_param function to save the entire HTTP response.

This function minimizes the amount of manual correlation the user must do. There is usually no need to insert this function or change its argument values after recording.

## Return Values

Oracle NCA Error Codes

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

The nca_configurator_set_ui_data function uses the values saved in the nca_cfg_first_page parameter to substitute the recorded values during replay.

Copy code

    nca_configurator_start("ORDER_CONTROL_BEANAREA_0", "CFG");
    web_reg_save_param("nca_cfg_first_page", "LB=", "RB=", LAST );
    web_url("CZInitialize.jsp",
    nca_configurator_parametrize_url("URL=http://myServer.myLab.ad:8000/OA_HTML/CZInitialize.jsp?getUiType=%3Cinitialize%3E%3Cparam+name%3D%22terminate_msg_behavior%22%3Ebrief%3C%2Fparam%3E%3Cparam+name%3D%22database_id%22%3Evis%3C%2Fparam%3E%3Cparam+name%3D%22context_org_id%22%3E204%3C%2Fparam%3E%3Cparam+name%3D%22config_creation_date%22%3E11-24-2008-15-09-52%3C%2Fparam%3E%3Cparam+name%3D%22calling_application_id%22%3E660%3C%2Fparam%3E%3Cparam+name%3D%22responsibility_id%22%3E21623%3C%2Fparam%3E%3Cparam+name%3D%22model_id%22%3E137%3C%2Fparam%3E%3Cparam+name%3D%22ui_type%22%3Ereturnui%3C%2Fparam%3E%3Cparam+name%3D%22pricing_package_name%22%3EOE_Config_Price_Util%3C%2Fparam%3E%3Cparam+name%3D%22price_mult_items_proc%22%3EOE_Config_Price_Items%3C%2Fparam%3E%3Cparam+name%3D%22atp_package_name%22%3Ecz_om_atp_callback%3C%2Fparam%3E%3Cparam+name%3D%22get_atp_dates_proc%22%3Ecall_atp%3C%2Fparam%3E%3Cparam+name%3D%22warehouse_id%22%3E204%3C%2Fparam%3E%3Cparam+name%3D%22requested_date%22%3E11-24-2008%3C%2Fparam%3E%3Cparam+name%3D%22customer_id%22%3E1290%3C%2Fparam%3E%3Cparam+name%3D%22customer_site_id%22%3E1425%3C%2Fparam%3E%3Cparam+name%3D%22configurator_session_key%22%3E196305%23180078%3C%2Fparam%3E%3Cparam+name%3D%22model_quantity%22%3E1%3C%2Fparam%3E%3Cparam+name%3D%22icx_session_ticket%22%3E3A48B1F1C6F55B27BB56865717B08AB5%3C%2Fparam%3E%3Cparam+name%3D%22save_config_behavior%22%3Enew_revision%3C%2Fparam%3E%3Cparam+name%3D%22read_only%22%3Efalse%3C%2Fparam%3E%3Cparam+name%3D%22client_header%22%3E94236%3C%2Fparam%3E%3Cparam+name%3D%22client_line%22%3E196305%3C%2Fparam%3E%3Cparam+name%3D%22sbm_flag%22%3ETRUE%3C%2Fparam%3E%3C%2Finitialize%3E&redirectFromJsp=true"),
            "Resource=0",
            "RecContentType=text/html",
            "Referer=",
            "Snapshot=t4.inf",
            "Mode=HTML",
            LAST );
    nca_configurator_set_ui_data ("{nca_cfg_first_page}");

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: