/*-----------------------------------------------------------------------------
	Name: A01_MPD_003_ClkSearchLink.c
	Recorded By: Converted via tool
	Date of recording:
	Flow details:
	Build details:
	Modification History:
-----------------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ns_string.h"

void A01_MPD_003_ClkSearchLink()
{
	
	/* Search link */

	//web_add_cookie("window.name={C_windowID}; DOMAIN=pasperf4");
	
	
	ns_start_transaction("A01_AZ_003_MPD_clkSearchlink");

	//addDynaTraceHeader("NA=A01_AZ_003_MPD_clkSearchlink;PC=flow_2");
//	ns_web_url ("QS01_CA_Search",
//        "URL={P_URL}/aaa-app/flow?_flowId=search-main-flow&_parentWindowId={WindowID}",
//        "HEADER=Upgrade-Insecure-Requests:1",
//        "HEADER=X-dynaTrace: NA=QS01_CA_Search;ID=256;VU=0;PC=QS01_CA_Search",
//        "HEADER=Sec-Fetch-User:?1",
//        "HEADER=Sec-Fetch-Site:same-origin",
//        "HEADER=Sec-Fetch-Mode:navigate",
//        "HEADER=Accept-Language:en-US,en;q=0.9",
//        "COOKIE=JSESSIONID;loaded_W1611943006815;loaded_{WindowID};_WEBFLOW_LAST_EXECUTOR_NAME;oam.Flash.RENDERMAP.TOKEN;window.name",
//        "PreSnapshot=webpage_1611943071866.png",
//        "Snapshot=webpage_1611943071866.png",
//        INLINE_URLS,
//            "URL={P_URL}/aaa-app/flow/rfRes/datatable.ecss?db=eAHjW!XqPQAE!QKS&ln=org.richfaces", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=JSESSIONID;loaded_W1611943006815;loaded_{WindowID};_WEBFLOW_LAST_EXECUTOR_NAME;oam.Flash.RENDERMAP.TOKEN", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/eis-styles.min.css?crc=30f120484e7b7ae189317784e01811c6b9764051", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/primefaces.css?ln=primefaces&crc=55381084881a9a68f2cc1fa3769572784d05c328", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/watermark/watermark.css?ln=primefaces&crc=186d952b276bfce31ef2dd7d61e9fa2e906ca01e", END_INLINE,
//            "URL={P_URL}/aaa-app/resources/css/aaaStyles.css", END_INLINE,
//            "URL={P_URL}/aaa-app/premium-details/js/style.css", END_INLINE,
//            "URL={P_URL}/aaa-app/resources/css/mprogress.min.css", END_INLINE,
//            "URL={P_URL}/aaa-app/js/surfly.js?1", END_INLINE,
//            "URL={P_URL}/aaa-app/flow/rfRes/datascroller.ecss?db=eAHjW!XqPQAE!QKS&ln=org.richfaces", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=JSESSIONID;loaded_W1611943006815;loaded_{WindowID};_WEBFLOW_LAST_EXECUTOR_NAME;oam.Flash.RENDERMAP.TOKEN", END_INLINE,
//            "URL={P_URL}/aaa-app/flow/rfRes/popupPanel.ecss?db=eAHjW!XqPQAE!QKS&ln=org.richfaces", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=JSESSIONID;loaded_W1611943006815;loaded_{WindowID};_WEBFLOW_LAST_EXECUTOR_NAME;oam.Flash.RENDERMAP.TOKEN", END_INLINE,
//            "URL={P_URL}/aaa-app/flow/rfRes/calendar.ecss?db=eAHjW!XqPQAE!QKS&ln=org.richfaces", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=JSESSIONID;loaded_W1611943006815;loaded_{WindowID};_WEBFLOW_LAST_EXECUTOR_NAME;oam.Flash.RENDERMAP.TOKEN", END_INLINE,
//            "URL={P_URL}/aaa-app/flow/rfRes/tooltip.ecss?db=eAHjW!XqPQAE!QKS&ln=org.richfaces", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=JSESSIONID;loaded_W1611943006815;loaded_{WindowID};_WEBFLOW_LAST_EXECUTOR_NAME;oam.Flash.RENDERMAP.TOKEN", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/js/search/aaaSearchValidation.js?crc=798b03579449d9d3c97e0ccc641609d5728bb8b1", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=JSESSIONID;loaded_W1611943006815;loaded_{WindowID};_WEBFLOW_LAST_EXECUTOR_NAME;oam.Flash.RENDERMAP.TOKEN", END_INLINE,
//            "URL={P_URL}/aaa-app/flow?_flowId=search-main-flow&_parentWindowId={WindowID}#noback", END_INLINE,
//            "URL={P_URL}/aaa-app/flow?_flowId=search-main-flow&_parentWindowId={WindowID}#noback2", END_INLINE
//    );

    ns_web_url("QS01_CA_Search",
		"URL={P_URL}/aaa-app/flow?_flowId=search-main-flow&_parentWindowId={WindowID}", 
		"HEADER=Content-Type: text/html", 
		"HEADER=sec-ch-ua-mobile: ?0",
		"HEADER=sec-ch-ua-platform: \"Windows\"",
		"HEADER=Sec-Fetch-Dest: document",
		"HEADER=Sec-Fetch-Mode: navigate",
		"HEADER=Sec-Fetch-Site: same-origin",
		"HEADER=Sec-Fetch-User: ?1",
		"HEADER=Upgrade-Insecure-Requests: 1",
		"HEADER=Referer: {P_URL}/aaa-app/faces/work/work-list.xhtml?_windowId={WindowID}", 
		"Snapshot=t4.inf", 
		);

	
	ns_end_transaction("A01_AZ_003_MPD_clkSearchlink", NS_AUTO_STATUS);
}
