How to get Cookie Name and Value Using HttpGetterCallback - CE 7.3
Hi All,
We are migrating from Netweaver 7.0 to 7.3. We are facing a issue when migrating the custom login module from 7.0 to 7.3.
Since WebCallback is deprecated and not to be used in Netweaver 7.3, we are finding difficulties in getting the cookie name and value. Please find below our coding for getting the cookie value using HttpGetterCallback. We are not getting the cookie name and value, Kindly let us know if we are implementing the HttpGetterCallback correctly.
HttpGetterCallback httpGetCookieCallback = new HttpGetterCallback();
httpGetCookieCallback.setType(HttpCallback.COOKIE);
Callback] callbks = new Callback[ { httpGetUrlCallback, httpGetCookieCallback };
callbackHandler.handle(callbks);
requestUrl = (String) httpGetUrlCallback.getValue();
Cookie] cookies = (Cookie [) httpGetCookieCallback.getValue();
if (cookies != null) {
for (int i = 0; i < cookies.length; i++) {
location.debugT("Cookies name " + cookies.getName()
+ " - value "
+ cookies.getValue());
Thanks and Regards,
Saravanan
Try This-
Cookie cookiesArray[] = request.getCookies();
Cookie currentCookie = null;
String currentCookieName = "";
String cookieValue = "dummycookie";
int cookieArrayLength = cookiesArray.length;
for (int i = 0; i < cookieArrayLength; i++) {
currentCookie = cookiesArray<i>;
currentCookieName = currentCookie.getName();
cookieValue = currentCookie.getValue();
Regards,
Atul
Similar Messages
-
How to get the name and value of an attribute on a node/element that is not a child
Hello,
Can someone shed some wisdom on how I can compare 2 xml nodes for differences.
My main challenge is I need to use the attributes/values of 'ProductDescription' and 'Features' as 'key' to identify the same node in
another doc with the same layout, but different content.
I am having trouble getting the name of the attribute on the node, 'ProductDescription' and 'Features'. I can only seem to get the node names, but not the attributes on the node. I need the name, because it can be different from doc to doc, so
I can't hardcode this.
Can someone please help with how to retrieve an attribute name/value on a node that is not a child. Here's an example of what
my xml looks like:
DECLARE
@myDoc1 xml
,@mydoc2 xml
DECLARE
@ProdID int
SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
<Features featureID = "1" featureName = "body">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
</Features>
<features featureID = "2" featureName = "seat">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
</Features>
</ProductDescription>
SET @myDoc2 ='<ProductDescription ProductID="1" ProductName="Road Bike">
<Features featureID = "1" featureName = "body">
<Warranty>2 year parts and labor</Warranty>
<Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
</Features>
<features featureID = "2" featureName = "wheel">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
</Features>
</ProductDescription>
I need to compare the attributes of 'ProductDescription' and 'Features' from @mydoc1 against @mydoc2 to see if they are the same based on those 2 nodes first. If they are, then i want to show the difference in the child elements.
This will eventually be an outer join to give me the differences betw the 2 docs based on those key values (node attributes).
I used node('//*') for the path, and value('local-name(../.)', 'varchar(50)') as element
,value('.[not(@xsi:nil = "true")]','VARCHAR(255)') AS new_value
...etc...
but that only gives me the node names, and the child elements. It does not give me back the attribute names and values from the node itself.
Thanks in advance for your help.
ceeAre you looking for something like this:
DECLARE @myDoc1 xml
SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
<Features featureID = "1" featureName = "body">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
</Features>
<Features featureID = "2" featureName = "seat">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
</Features>
</ProductDescription>'
SELECT T.c.value('local-name(.)', 'nvarchar(50)') AS name,
T.c.value('.', 'nvarchar(50)') AS value
FROM @myDoc1.nodes('ProductDescription/@*') AS T(c)
Erland Sommarskog, SQL Server MVP, [email protected] -
How can I get a list of values (one or more) used in the WHERE filter of stored procedures and functions in SQL Server?
How can get a list of values as shown (highlighted) in the sample stored procedure below?
ALTER PROC [dbo].[sp_LoanInfo_Data_Extract] AS
SELECT [LOAN_ACCT].PROD_DT,
[LOAN_ACCT].ACCT_NBR,
[LOAN_NOTE2].OFCR_CD,
[LOAN_NOTE1].CURR_PRIN_BAL_AMT,
[LOAN_NOTE2].BR_NBR,
INTO #Table1
FROM
dbo.[LOAN_NOTE1],
dbo.[LOAN_NOTE2],
dbo.[LOAN_ACCT]
WHERE
[LOAN_ACCT].PROD_DT = [LOAN_NOTE1].PROD_DT
and
[LOAN_ACCT].ACCT_NBR = [LOAN_NOTE1].ACCT_NBR
and
[LOAN_NOTE1].PROD_DT = [LOAN_NOTE2].PROD_DT
and
[LOAN_NOTE1].MSTR_ACCT_NBR = [LOAN_NOTE2].MSTR_ACCT_NBR
and
[LOAN_ACCT].PROD_DT = '2015-03-10'
and
[LOAN_ACCT].ACCT_STAT_CD IN
('A','D')
and
[LOAN_NOTE2].LOAN_STAT_CD IN
('J','Z')
LenfinkelHi LenFinkel,
May I know what is purpose of this requirement, as olaf said,you may parse the T-SQL code (or the execution plan), which is not that easy.
I have noticed that the condition values in your Stored Procedure(SP) are hard coded and among them there is a date values, I believe some day you may have to alter the SP when the date expires. So why not declare 3 parameters of the SP instead hard coding?
For multiple values paramter you can use a
table-valued parameter. Then there's no problem getting the values.
If you could elaborate your purpose, we may help to find better workaround.
Eric Zhang
TechNet Community Support -
Query to get parameter name and value after ran the conccurent program
Hi All,
Query to get the parameter name and value for completed concurrent program using the request id. can any one help me in this regard.
Thanks,
Red.Red,
I have tried the same query and it works properly here.
I have submitted "Purge Signon Audit data" concurrent program with "Audit Date" parameter set to 01-06-2009, and here is the query output:
SQL> select request_id, phase_code, status_code,
argument_text, argument1
from fnd_concurrent_requests
where request_id = '739664';
REQUEST_ID P S ARGUMENT_TEXT ARGUMENT1
739664 C C 2009/06/01 00:00:00 2009/06/01 00:00:00Regards,
Hussein -
How to pass tag name and value dynamically in the output of PCo notification?
Hi,
I have a requirement to develop such a scenario where there can be multiple no of tags in PCo (Say 10) but there will be single notification to push the tag name when the value got changed and the changed value to MII. for any value change for any of the tag, the notification will be trigger. So As per my knowledge I have to pass the tag name and value dynamically in the "output" tab of the notification. But need your support to find out how to pass them dynamically.
Thanks in advance.
Regards,
SumanHi Suman/Jeedesh,
As per Pco notification, it will trigger whenever any of the tag value changes in Agent instance subscription items.
For above issue, My suggestion
1. Create DB table name TAGLIST with 200 tags as rows in columns (Tagname, TagValue)
2. Based on notification trigger, create a transaction and update values w.r.t TagNames in above table
3. Next time, when notification trigger with fresh value for any of the tag, cross check with existing TagName with Value and update in DB table.
4. And in the mean time, send those Tag details vie mail trigger or as per requirement
Instead of creating 200 notification, above is a just alternate way suggestion to achieve dynamic tag value change notification.
Hope it might solve your problem
Regards,
Praveen Reddy -
Getting Asset Name and ID using postgreSQL command line
Hi,
I`m excited by the possibility of getting/putting Annotations from/to FCSvr from command:
/Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/fcsvr_run psql px pxdb -c "select * from pxtcmdvalue;"
Using grep and awk (print) it`s possible to extract individual fields. But first I need to identify
Assets Names with Assets ID`s.
Anyone know how to get from command line an asset name from ID and vice versa?
In other words: If I grep for the ID and awk for the 3, 4, and 5 column I can extract TCIN, TCOUT and the Annotations from that Asset ID. But I want to know what Asset is and write to a text file with the asset name and not the asset ID.
The syntax would be more or less like this:
For each ID on the pxtcmdvalue (first column is entityID) get from FCSvr (or from db) the AssetName the columns with TCIN, TCOUT and Value of Annotations. Put (append if more than one entries) this on a tabulated text file named after AssetName.
I`m sorry for not being so "program write" like, but I try! ahaah
Thanks!Hey guys,
Thank you very much for all this help! Especially fbm! Thanks a lot!
Regarding inserting into annotation I could manage to do that , as I`ve said, I`m stubborn! hehehehe
with this command you can insert an annotation (ONE with each command) into a clip:
/Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/fcsvr_run psql px pxdb -c "INSERT INTO pxtcmdvalue VALUES (72, 1527, '00:35:41;09/(30000,1001)', '00:36:28;24/(30000,1001)', 'if works I`ll be very happy!', 1, '2009-03-15 19:31:15.839795-03');"
Of course, remembering to change all things inside single quotes.
The only catch is that you`ll have to know the entityid for the asset in question. Of course, looking into fbm post above it`s possible to "translate" the entityid into the ASSETID, but I don`t know how to parse this inside the parentheses. Maybe letting the "72" (in my case) entityid as "entityid" and outside the parentheses translating with INNER JOIN???
We`re almost there!! I`m glad that this is here, opened to every one that wants to adventure into FCSRV "dark" side!
Just remember, this is NOT supported by APPLE! I`m testing this on a test FCSRV installed on a mini (yes I could "hack" into the "detecting hardware" and disable to manage to install).
Just one more thing: I`ve read somewhere that the pxatommap table has ALL that FCSRV could provide (and of course yours custom md). I`m trying to get ALL this fields to each asset. I`ve tried the command:
/Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/fcsvr_run psql px pxdb -c "SELECT * FROM pxatommap INNER JOIN pxmdvalue ON pxatommap.id = pxmdvalue.fieldid"
But it`s very messy and it`s not for one asset.
Thanks again you all that took the time to post to help others like me!
Regards! -
WAD: How-to get query name and pass to URL
Hi,
The task: In a BI 7.0 web template - get the technical query name and use that to open a URL in the format http://<MYURL>&DOCUMENTATION=<QUERYNAME>. So:
1) User clicks an icon
2) Get technical name of query
3) Open the documentation for that query using a URL
How can this be done? Do I have to use the Custom Extension web item and implement a new class using the interface IF_BICS_CONS_WEBITEM_CUST_EXIT? If so, do you have an example of how this can be done? OR even better is there an easier way to accomplish this?
Thanks in advance,
JacobHi Daniel,
you could get the query name in ABAP code, also. Here is a snippet from the execute method. The Query name should be in l_sx_view at the end.
best regards
Arne
TYPE-POOLS:
rrx1.
DATA:
l_string TYPE string,
l_xml TYPE string,
l_xml_xstring TYPE xstring,
l_sx_view TYPE rrx1_sx_view,
* Line Feed, CR
c_lf TYPE string,
l_h_lf(2) TYPE x VALUE '0D0A',
l_r_conv TYPE REF TO cl_abap_conv_in_ce.
* Get the line feed and carriage return for unicode
l_r_conv = cl_abap_conv_in_ce=>create( input = l_h_lf ).
l_r_conv->read( IMPORTING data = c_lf ).
DATA:
l_t_data_providers TYPE cl_bics_cons_webitem_util=>tn_t_data_provider,
l_s_data_providers TYPE cl_bics_cons_webitem_util=>tn_s_data_provider,
l_r_variable_container TYPE REF TO if_ixml_node.
CLEAR e_xml.
TRY.
* All data passed to the webitem exit is hold in I_XML using XML.
* The XML is UTF-8 encoded. You can convert the UTF-8 xstring
* to a simple ABAP string by calling the following method:
* ==================================================================
CALL METHOD cl_bics_cons_webitem_util=>utf8_xstring_2_string
EXPORTING
i_utf8_xstring = i_xml
RECEIVING
r_string = l_xml.
* The XML includes sections about the used data provider and about the
* variable container. The following method parses the XML and
* provides the IF_IXML_NODE instances for data providers and for the
* variable container.
* ==================================================================
CALL METHOD cl_bics_cons_webitem_util=>parse_xml
EXPORTING
i_xml = i_xml
IMPORTING
e_t_data_providers = l_t_data_providers
e_r_variable_container = l_r_variable_container.
* 01 Get name of first Data Provider
READ TABLE l_t_data_providers INDEX 1 INTO l_s_data_providers.
CALL TRANSFORMATION bics_cons_webitem_filter_by_dp
PARAMETERS dataprovider = l_s_data_providers-name
SOURCE XML i_xml
RESULT XML l_xml_xstring.
CALL METHOD cl_bics_cons_state_converter=>convert_xml
EXPORTING
i_xml = l_xml_xstring
IMPORTING
e_sx_view = l_sx_view. -
How to get file name and set it as static text in a dialog
Hi,
I m new to InDesign Programming.
I have a menu that creates a dialog with different controls in it.
The dialog will appear only if there is an open file. I need to display the name of the open file as a static text in the dialog. I know to get the name of the current file but don't know how to pass this each time the dialog is opened.
Can someone help me in doing this?
I m using InDesign CS3 in MAC OS.
Thank You.those are the methods, but you can't use getCharacterEncoding(), actually, cuz it seems it's not necessarily filled in.. or at least that might be on some servers only, like Tomcat 4. As for encodings, you need to do a search for character encoding names and use the appropriate one.
-
How to get server name and port of OSB server in a proxy service ?
I need to get the server name and port of the OSB server inside a proxy service. How can I get this?
You may use java callout for this purpose -
How to get ServerName and ApplicationName in OSB (ALSB) ?
Regards,
Anuj -
How to get Server Name and port. Urgent.....
Hi,
Please let me know how can i get the server name and port without using request object.
I am getting it :- request.getServerName();
But, pl. let me know how can I get it without using this request object.
Waiting for reply..I don't know of any way to trivially access that, but why do you need to do this? If you need access to that information in a method that can't see your HttpServletRequest, then perhaps your architecture has a flaw, and you'll be better off in the long run restructuring it.
-
How to get service name and listening host to connect to oracle DB server?
I have successfully installed oracle db client 10g release 2 on my winXP. But when I tried to use Net Congiguration Assistance to connect to oracle db server. I do not know what is the "service name" and listening "host" I supporse to enter. Where can I get the names?
PLEASE HELP! THANKS!machine name or IP = machine name or IP address of the database server
To know the service name do the following on the server :
$ lsnrctl services
LSNRCTL for Linux: Version 10.1.0.3.0 - Production on 30-DEC-2005 00:24:28
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "test10" has 1 instance(s).
Instance "test10", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
$The service name is test10 in my case. Of course you have to use yours. -
How to output variable names and units used in binary file
My colleague will be giving me binary files (*.dat) generated from within LabView. There are over 60 variables (columns) in the binary output file. I need to know the variable names and units, which I believe he already has set up in LabView. Is there a way for him to output a file containing the variable name and unit, so that I'll know what the binary file contains? He can create an equivalent ASCII file with a header listing the variable name, but it doesn't list the units of each variable.
As you can tell I am not a LabView user so I apologize if this question makes no sense.
Solved!
Go to Solution.Hi KE,
an ASCII file (probably csv formatted) is just text - and contains all data that is (intentially) written to. There is no special function to include units or whatever!
Your collegue has to save those information the same way he saves the names and the values...
(When writing text files he could use WriteTextFile, FormatIntoFile, WriteToSpreadsheetFile, even WriteBinaryFile could be used...)
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
How to get Vendor name and Material text in FAGLL03 transaction?
Hello All,
I am executing FAGLL03 report which display Vendor No and material No in item level but I want Vendor name and Material text to be display for every vendor no. and material no.
Please let me know any approach to do this?
Thanks in advance.
Regards
SteveHi Raymod,
Again I am getting the same error after executing all reports and FM.
Internal error in ANALYZE_ACT_FIELDCAT
Message no. MSITEM012
Diagnosis
An internal error has arisen in the form routine ANALYZE_ACT_FIELDCAT for program RFITEM_INC.
This is due to inconsistencies between table T021S (special fields) and structure RFPOSEXT.
System Response
During the processing of special fields in the line item list, errors and even a program termination may occur.
Procedure
Recreate the special fields in Customizing. If the error occurs again, contact SAP.
Can you pls check it out in your system if you can?
It is not working here ..
Thanks and Regards
Steve -
How to get vendor name and invoice reference details in asset register
Hi Experts,
My client requirement is he want to see Vendor name and invoice reference filed in asset register.
Is there any standard reports relating this requirement.
Kindly Provide valuable information relating to this issue.
Regards
MadhanHi Madhan,
Let me know the t.code which you are getting asset data.
Thanks -
How to get class name and method name within a class method?
Hi,
In a java class, is it possible to get its class name and the class method?
Please advise.
Thank you.I mean whether there's any built-in command that will
return the class name instead of code it ourself, for
easier maintenance.
Possible?
this.getClass().getName();
Maybe you are looking for
-
Migrating to my Mac mini, but to two accounts!
I seem to finally have suceeded in migratingall my things, but I hade to Migrate Data and Prefrences two times. So now I have my ordinary user account fully set up, but when I got my mail working, this was done on another account. So I have mail and
-
I would really appreciate some help with this.
-
Compiling and linking C library in C++
I am using a C library (Solstice FTAM v9.0) in my C++ program. One of the library header files has a declrartion short class; in one of the structures. The C++ compiler (Sun C++ 5.4 on Solaris 8) gives error. What we should do to compile and link thi
-
I know how to create a JavaBean - zero argument constructor, private field variables, and public get and set methods to expose the properties. Now, I have created a Map object: Map map = new HashMap(); map.put("sort", sort); map.put("order", order);
-
Motion JPEG AVI codec unsupported by Adobe Premiere Pro CS4?
Hello everyone, First of all I must say English isn't my native language. Forgive me if I make any spelling mistakes or if I write inpolitely, it's not on intention. I have a couple of videos made with a camera. The videos have an .avi extension and