User defined column heading
Hello Every1,
The following is a peice of code produces a report. At the moment the heading of the column is GBCCCL15/16_CSAHEPA because it has been hard coded that way. However what i would like instead, is the heading of the column to be what ever the user selects. What i mean by this is, what ever the user chooses to search in the text fields will then be displayed as the column heading when the report is exicuted.
select schema_name,
max(GBCCCL1516_CSAHEPA) as "GBCCCL15/16_CSAHEPA"
from
select schema_name, created_time,
case when
server_name||'_'||db_name='GBCCCL15/16_CSAHEPA'
then DB_PATCH_NUMBER||'v'||VERSION_NUMBER else null end GBCCCL1516_CSAHEPA
from version_control
group by schema_name
order by SCHEMA_NAME
Does anyone know how to get this done?
Thanks in advance.
Hi,
Headings can be created dynamically. Change the headings type to PL/SQL. You then see a "Function returning colon delimited headings" setting - enter in something like:
DECLARE
v_headings VARCHAR2(2000);
BEGIN
v_headings := '';
SELECT USER_HEADING INTO v_HEADINGS FROM TABLEX;
RETURN v_headings;
END;The string returned must be a colon-delimited string with one value for each column. eg:
COL1:COL2:COL3Andy
Similar Messages
-
How to add a user defined HTTP header field?
Hi, everyone!
I want to add a user defined HTTP header field to a HTTP
response header.
I use the following statements in testHeader.jsp
response.addHeader("myheader", "123");
response.sendRedirect("middleHeader.jsp");
in middleHeader.jsp,
out.print(request.getHeader("myheader"));
But the output in middleHeader.jsp is null!
How to add a user defined HTTP header field to a HTTP
response header? Are there some sample codes?
Cheers,
Georgethe send redirect actually creates a new request (through the client) and thus a new response
thus the headers you set in the response are gone for the next request/response
You can try servletDispatcher.forward -
How can I access user defined column(in query) inside the trigger?
Hi
I have 3 unions and each query displays different records on some criteria. I also have a column hard-coded
Ex:
select a.col1, a.col2,
add as update
from table1 a
where ...
union
select a.col1, a.col2,
change as update
from table1 a
where ...
union
select a.col1, a.col2,
del as update
from table1 a
where ...
And I need to display a column in the report only if update is Add. I was thinking of writing a format trigger for that field. But I do not know how can I access this user defined column named update in the trigger?
Any help?Try ":update" minus the double-quotes. Ex:
IF :update = 'add' THEN
RETURN(TRUE);
ELSE
RETURN FALSE;
END IF;
You'll want to place your hard-coded values in single-quotes. Ex:
select a.col1, a.col2,
'add' as update
- Brian -
How to Insert a User Defined Column with CheckBox In ADF Swings
I have create JTable by dragging a view object from Data Control Palette .But apart from columns listed in JTable i need to insert a User Defined column with Check Box selection option in each row .
Can any one help me out to sort the problem.
Regards
Bhanu Prakash
Message was edited by:
user579125I retrieve 10 column from Database and build JTable. But apart from 10 column displayed i need to display one more column( User Defined) at run time with the check box option for each row . Because on select of corresponding check box i need to do some mathematical calculation. add also How do i know whether check box is selected or not.
Regards
Bhanu Prakash -
Add data in a user defined column in System matrix
Hello All,
I have created a User defined column in the Goods Issue Form
When I choose a particular order, I get values in the matrix defined by system
Based on this selection, I fire a query which returns a value and this value has to be
displayed in the user defined column.
I am trying to add a value to this column but I get the following error message
Form Item is not Editable
Here is the code written in form activate event
code = (EditText)matrix.Columns.Item(1).Cells.Item(i).Specific;
string strcode = code.Value.ToString();
string str;
str = "select itemCode from owor where Docnum='" + strcode + "'";
RecSet.DoQuery(str);
e = (EditText)matrix.Columns.Item(15).Cells.Item(i).Specific;
strcode = RecSet.Fields.Item(0).Value.ToString();
try
matrix.Columns.Item(15).Editable = true;
e.String = strcode;
matrix.Columns.Item(15).Editable = false;
catch (System.Runtime.InteropServices.COMException com_err)
Regards
Nirmala BOn system forms, you cannot update the DataSource (DBDataSource) of system matrixes, SAP blocks it.
The only solution is to set the column visible and editable, and write in it with the matrix cell set value method.
The downside is that the user will be able to see and edit the values (unless you catch all edit and click events to that cell). -
Is it Possible to link user defined column of system matrix ?
HI All,
Is it possible to link (with ExtendedObject) user defined column of system matrix?
For Example, In purchase order form, I have added one column called U_ItemCode (through Tools-User Defined Fields-Marketing Doc). I want to give drill down to Item master.
Here is the code:
OColumn = OMatrix.Columns.Item("U_ItemCode")
olink = OColumn.ExtendedObject
olink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items
the last line gives me 'Object refrence not set to an instance of the object' error.
For user form, it works fine (since it has the column defined as LinkedColumn in screen painter). How can we do this in system matrix?
thanks in advance
regards,
BinitaHi Binita,
nice to see you
i mean the following:
1.) add the field in marketing document lines -> you need this to store the values in database
but this user field column will not have the arrow so we do ...
2.) you also add a linked column to the system matrix. you can copy the values from the udf column
to your manual added column and than you can use the arrow. (maybe you should disabled this column)
the result is you have two columns - the udf column and the linked manual column
i hope you know what i mean - very complicated
regards
David -
Is posible to do a choosefromlist in a user defined column of system matrix
Hi all,
I have a question that i can´t solve. Is posible to do a choosefromlist in a
user defined column of system matrix?How can i do it?and i can use a datatable?How?
Thank you all again!
Regard.The answer is No , that I know of. The matrix permits ony the it_EDIT, it_COMBO_BOX, PICTURE, and CHECKBOX types. Additionaly it has an LINK_BUTTON type
Choosefrom list works best with UDOs. Which means that you have to create your table and specify it in an UDO in order for the choosefromlist to have access to it.
Maybe there's a manual workaround, like say for instance that if the user clicks the Tab button you can then pop up another screen with a list of items.
Hope it helps! -
Cannot logon user defined in header variable!
Dear Guru's
I'm seeing this this error when I type the URL. "Cannot logon user defined in header variable!"
I have stopped and sterted the portal.
I could not find the authschemes.xml (if this is related)
Thanks,
EP6 SP2
NarenHi ,
Please explain what exactly you want to do ..If you want to use Header Variables for User Authentication go through this links
http://help.sap.com/saphelp_nw2004s/helpdata/en/68/5ddc40132a8531e10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/68/5ddc40132a8531e10000000a1550b0/frameset.htm
Thanks n Regards
Santosh
Reward if helpful !!! -
How to define Column Header text table control
Hi All,
I have to create a function in which user will pass Field Name, Field Description.
I have to show that field description in Table Control Columns as Text for columns.
Like if a user pass Material , PLant etc, then first column header text will be Material and so on and in rows it will show the data.
One more thing, is it possible to define the technical attributes like length based on field passed through function.
Please help me to find out the solution.
Thanks
Piyush MathurHi Piyush,
here are the some components of the screen . you can change tehm at run time in your code.
components: name,input,output,required,length,active,invisible,intensified,group1,group2...etc.
at ruin time you modify these attributes..
your requirement is to change the name attribute.
regards,
sateesh -
OSB question : passing a user defined transport header to a proxy service
Hi All,
I have a proxy service that calls another proxy service. The protocol for the "called proxy service" is set to local. The calling proxy service has a "transport header" action to add a user defined header to the outbound request.
I log the outbound request in the calling proxy service before publishing/calling the other proxy service. It does have header set as expected. But the called proxy service does not get this header.
As a note in the "transport" tab "get all headers" is set to true.
Please suggest
Here is the outbound xml gets printed just before calling the proxy service
<con:endpoint name="BusinessService$userProvisioning$businessService$HttpMessageSender" xmlns:con="http://www.bea.com/wli/sb/context">
<con:service/>
<con:transport>
<con:uri>http://localhost:8064/ProvisioningService/</con:uri>
<con:mode>request-response</con:mode>
<con:qualityOfService>best-effort</con:qualityOfService>
<con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
<tran:user-header name="JMS_BEA_RedeliveryLimit" value="1"/>
<tran:user-header name="JMSDeliveryMode" value="2"/>
<tran:user-header name="JMSExpiration" value="0"/>
<tran:user-header name="JMSMessageID" value="ID:<914937.1294164899050.0>"/>
<tran:user-header name="JMSPriority" value="4"/>
<tran:user-header name="JMSRedelivered" value="false"/>
<tran:user-header name="JMSTimestamp" value="1294164899050"/>
<tran:user-header name="JMSXDeliveryCount" value="1"/>
*<tran:user-header name="reResolvedAddress" value="http://LPF004689:8080/axis2/services/provisioning/"/>*
*<tran:user-header name="reResolvedRegion" value="MB"/>*
<http:Content-Type>application/soap+xml; charset=utf-8</http:Content-Type>
</tran:headers>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
</con:request>
</con:transport>
<con:security>
<con:doOutboundWss>false</con:doOutboundWss>
</con:security>
</con:endpoint>>
And here is the inbound xml getting printed inside the called proxy service
inbound="<con:endpoint name="ProxyService$userProvisioning$proxyService$LocalSoapListener" xmlns:con="http://www.bea.com/wli/sb/context">
<con:service/>
<con:transport>
<con:mode>request-response</con:mode>
<con:qualityOfService>best-effort</con:qualityOfService>
<con:request xsi:type="loc:LocalRequestMetaData" xmlns:loc="http://www.bea.com/wli/sb/transports/local" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="loc:LocalRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports"/>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
</con:request>
<con:response xsi:type="loc:LocalResponseMetaData" xmlns:loc="http://www.bea.com/wli/sb/transports/local" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="loc:LocalResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports"/>
<tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
</con:response>
</con:transport>
<con:security>
<con:transportClient>
<con:username><anonymous></con:username>
</con:transportClient>
</con:security>
</con:endpoint>"Hi,
We are using OSB 11g for sending message to external client.
we are setting Headers "JMSType" in set Transport Header. but Client is not able to recieve the JMSType header at there side.
we have read many forums for the same and turned on
Pass all Headers through Pipeline
Get All Headers
then I put one publish action and keep my "Set Transport Header" inside that. still client is not able to find the same
In out outbound request we can see the header as following.
$outbound = <con:endpoint name="BusinessService$Notification$BusinessService$external$BUSINESSSERVICE:con="http://www.bea.com/wli/sb/context">
<con:service/>
<con:transport>
<con:uri></con:uri>
<con:mode>request</con:mode>
<con:qualityOfService>exactly-once</con:qualityOfService>
<con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
<tran:user-header name="JMSType" value="XXXXXXX">
<http:Content-Type>text/plain; charset=utf-8</http:Content-Type>
</tran:headers>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
</con:request>
<con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
<tran:user-header name="content-description" value="SOAP"/>
<tran:user-header name="content-disposition" value="attachment;filename="[email protected]""/>
<tran:user-header name="content-id" value="<[email protected]>"/>
<http:Cache-Control>proxy-revalidate</http:Cache-Control>
<http:Connection>Keep-Alive</http:Connection>
<http:Content-Length>112</http:Content-Length>
<http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
<http:Date>Sun, 02 Sep 2012 04:06:43 GMT</http:Date>
<http:Server>XXXXXXXXXerver>
<http:Set-Cookie><![CDATA[<cookie-values xmlns="http://www.bea.com/wli/sb/transports/http">
<value>JSESSIONID=m2RvGs2_Lvk_AZgyVJIv_e2-vSiFOQFi_mIA_SAPULGAKriCp_hbBD8uC0e8pEXt; Version=1; Path=/</value>
<value>saplb_*=(spspiq_PIQ_00)6487650; Version=1; Path=/</value>
</cookie-values>]]></http:Set-Cookie>
</tran:headers>
<tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
<tran:response-message xmlns:tran="http://www.bea.com/wli/sb/transports">OK</tran:response-message>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
<http:http-response-code>200</http:http-response-code>
</con:response>
</con:transport>
<con:security>
<con:doOutboundWss>false</con:doOutboundWss>
</con:security>
</con:endpoint> -
User-defined http header and com.oracle.httpclient.HttpRequestBuilder
Hello,
In Java ME Embedded 8, I would like to send a HTTP request containing a user-defined identifier in the http header (X- header type), using the com.oracle.httpclient package.
HttpClient client = clientBuilder.build();
HttpRequestBuilder requestBuilder = client.build(http://my_uri);
requestBuilder.setHeader(HttpHeader.ACCEPT, "text/plain");
Here, I would like to add a user-defined header value like :
requestBuilder.setHeader("MyHeader", "myHeaderValue");
It seems that there are only pre-defined values available for headers in the com.oracle.httpclient.HttpHeader class.
Is there any way to add a user-defined header in the request ?
Thanks in advance.
BrunoHi Bruno,
did you try HttpHeader myHeader = new HttpHeader("MyHeader");?
/Sergey -
Cannot populate user defined column
I try to get the selected Item's AvgPrice on et_validate event with the following code. After orecordset.doquery the item's avgprice will not be displayed.
How can achieve this?
Any help would be appreciated.
Regards
Zoltan Sutto
Set oItem = oInvoiceForm.Items.Item("38")
Set oMatrix = oItem.Specific
oMatrix.DeleteRow (1)
Set oColumns = oMatrix.Columns
Set oColumn = oColumns.Add("AvgPrice", it_EDIT)
oColumn.TitleObject.Caption = "AvgPrice"
oColumn.Width = 100
oColumn.Editable = False
oMatrix.AddRow
Set oUserDataSource = oInvoiceForm.DataSources.UserDataSources.Add("dsAvgPrice", dt_LONG_NUMBER, 10)
oColumn.DataBind.SetBound True, "", "dsAvgPrice"
Select Case pVal.EventType
Case et_FORM_LOAD
AddColumnToInvoice
BindDataSources
Case et_VALIDATE
If pVal.ItemUID = 38 And pVal.ColUID = "1" Then
If pVal.Row <= oMatrix.RowCount Then
Set oEdittext = oMatrix.Columns(pVal.ColUID).Cells.Item(pVal.Row).Specific
oRecordSet.DoQuery "Select avgprice from oitm where itemcode='" & oEdittext.String & "'"
oUserDataSource.Value = oRecordSet.Fields(0).Value
End If
End If
End SelectOk!
As i understatnd you issue, you don't want to store avgprice in doc_table, you want just to show to user AVG price, probably it'll help him to deside, what price shold he put in price-column..
So, what for you want to use SDK UI??
I suppose it'll be more effective and nicely to create formated search, relate it with price-column, and then when user select an Item then in price-column AVG price will appear (or user press Sh-F2 on price-column).
The query for format search is too simple:[code]SELECT avgprice from OITM where itemcode = $[OINV.ItemCode][/code]By the way, you can create more cool query to show user extra info about that Item...
You can even allow user to see last prices.. It is a standard feature, just press Ctrl-TAB on price-column..
what do you think about it?
Hope it'll solve you issue! -
Dynamic column heading in csv export not working
Hi,
I have a SQL report where the column headings are defined dynamically. for an example let's say I have a report
SELECT NAME, TODAY'S_DATE FROM TABLE A.
Under report attribute column I have defined column heading as "&P_todays_date.”. This item has source value “Select sysdate from dual. When I export the data into csv file the dynamic column headings are coming as blank.
Any suggestions?
Thanks,
ManishYou are posting this question in the PeopleSoft forums. I think it belongs in the BI section:
https://forums.oracle.com/forums/category.jspa?categoryID=16 -
Help needed for User-Defined Datatype
Hi All,
I have one table which has User-defined Column Datatype.
Now Client wants us to rename the User-Defined Datatype for some Standardization process.
How to do rename of it, coz Rename old to new doesnt work in Oracle 10.2.0.4G for TYPES.
So we re-created it with the new names. Now our Problem is how do i re-assign the column datatype with the New User-Defined DataType.
Regards,
PrathameshThe Only Solution that i could found was - Create a new column with new User-Defined Datatype, copy the old column values to New Column, then drop the old column and rename the new Column to Old Column
ORA-22859: invalid modification of columns
Cause: An attempt was made to modify an object, REF, VARRAY, nested table, or LOB column type.
Action: Create a new column of the desired type and copy the current column data to the new type using the appropriate type constructor. -
Hi.
Is there any way that I can add a user defined HTTP header when posting messages
to a servlet?
I tried the following --
URL url = new URL("http://localhost:7001/ebXML/receiver");
HttpURLConnection urlc = (HttpURLConnection)url.openConnection();
urlc.setRequestMethod("POST");
urlc.setDoOutput(true);
FileInputStream in = new FileInputStream("ebxml.xml");
byte[] buf = new byte[8192];
buflen = in.read(buf);
System.out.println("len="+buflen);
urlc.setRequestProperty("Content-length", (new Integer(buflen)).toString());
urlc.setRequestProperty("Content-type",
"multipart/related; type=text/xml; boundary=\"BEA-EBXML-Boundary\"; version=1.0");
urlc.setRequestProperty("SOAPAction", "ebXML");
At the receiving side, the servlet uses
HttpServletRequest.getHeaderNames() to get all the headers.
The Content-type and the Content-length headers are shown up properly; however
the "SOAPAction" header is missing.
I tried to put "X-" in front of "SOAPAction". Then, it got through. It seems to
me that our Servlet Container has filtered out user defined headers if they are
not started with "X-".
How can I work around this problem? The ebXML TRP spec specified that the "SOAPAction"
header must be in the HTTP header and I can not change the name to be "X-SOAPAction".
Weird. I use 6.1sp1 and this works as expected. Here is a small test
(app does pretty much the same):
test.jsp:
<%
Enumeration e = request.getHeaderNames();
while(e.hasMoreElements()) {
String name= (String)e.nextElement();
out.println(name + " = " + request.getHeader(name));
%>
Test.java:
import java.io.*;
import java.net.*;
public class Test {
public static void main(String[] args) {
try {
URL url = new URL("http://localhost:7001/test.jsp");
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
conn.setRequestMethod("POST");
conn.setDoOutput(true);
conn.setRequestProperty("Content-type", "some/xml");
conn.setRequestProperty("SOAPAction", "foo:bar");
OutputStream out = conn.getOutputStream();
byte[] data = "Hello, World!".getBytes();
out.write(data);
out.close();
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while((line = in.readLine()) != null) {
System.out.println(line);
} catch(Throwable oops) {
oops.printStackTrace();
# java Test
Content-type = some/xml
SOAPAction = foo:bar
User-Agent = Java1.3.1
Host = localhost:7001
Accept = text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection = keep-alive
Content-length = 13
> Dimitri Rakitine <[email protected]> wrote:
>>Hrm. Unless you use some internal WebLogic version this should
>>work (And it does work as expected - using both 5.1sp10 and 6.1sp1 -
>>
>>SoapAction gets to the servlet just fine).
>>
> I do use WLS 6.1 sp1 release version. I also find out another application using
> java mail to post a request on the same servlet can have any user defined header
> in the HTTP header.
> So, I guess the problem is at the sending side. Have you tried to use the same
> mechanism (HttpURLConnection) I was using to send the HTTP request?
> Thanks!
> Yuhua
>>Yuhua <[email protected]> wrote:
>>
>>> Hi.
>>
>>> Is there any way that I can add a user defined HTTP header when posting
>>messages
>>> to a servlet?
>>
>>> I tried the following --
>>
>>> URL url = new URL("http://localhost:7001/ebXML/receiver");
>>> HttpURLConnection urlc = (HttpURLConnection)url.openConnection();
>>> urlc.setRequestMethod("POST");
>>> urlc.setDoOutput(true);
>>
>>> FileInputStream in = new FileInputStream("ebxml.xml");
>>> byte[] buf = new byte[8192];
>>> buflen = in.read(buf);
>>> System.out.println("len="+buflen);
>>
>>> urlc.setRequestProperty("Content-length", (new Integer(buflen)).toString());
>>> urlc.setRequestProperty("Content-type",
>>> "multipart/related; type=text/xml; boundary=\"BEA-EBXML-Boundary\";
>>version=1.0");
>>> urlc.setRequestProperty("SOAPAction", "ebXML");
>>
>>> ;;;;;;;;;;;;
>>> At the receiving side, the servlet uses
>>> HttpServletRequest.getHeaderNames() to get all the headers.
>>> The Content-type and the Content-length headers are shown up properly;
>>however
>>> the "SOAPAction" header is missing.
>>
>>> I tried to put "X-" in front of "SOAPAction". Then, it got through.
>>It seems to
>>> me that our Servlet Container has filtered out user defined headers
>>if they are
>>> not started with "X-".
>>
>>> How can I work around this problem? The ebXML TRP spec specified that
>>the "SOAPAction"
>>> header must be in the HTTP header and I can not change the name to
>>be "X-SOAPAction".
>>
>>
>>
>>
>>--
>>Dimitri
Dimitri
Maybe you are looking for
-
Table which stores the list of active ods objects in BW
Hi, I am trying to find out the list of active ods objects starting with y and Z, Is there any table which has the information regarding that. For Infoobject I found the table as "RSDIOBJ". Can you plz let me know if there is any table for ods. Thank
-
A305d-s6848 no sound out of speaker
I have a satellite A305d-s6848, and all of a sudden one day I turned on my computer and the speakers didn't work. I took it to a place in town and they tried everything they could think of software and replaced speakers the earplug port works but aga
-
Ms-access to oracle 8i migration.
Hi,all while useing Oracle Migration Workbench Release 10.1.0.4.0 i am facing prob.while Exporting my access database to xml i got following error. error#3270-XML EXPORTER-METHOD 'Run' of object _Application failed c:\migration\nsmini2.mdb databse sc
-
CC not visible in RWB-Communication channel monitoring
Hi All, Communication channel created in the directory is not visible in Communication channel monitoring of RWB. I refresh ABAP cache, SXI_CACHE, CPA cache. Still its not visible. Deleted and created again. Still no use. None of the communication ch
-
How do I close the reading list in Safari?
I opened my reading list and it is now using about 1/4 of my monitor screen. How do I close it?