Unable to use field value as link icon in linked column
I am building an interactive report which includes a linked column. I would like to display an image link which is based on a value in the row named ICON. On the Report Attributes tab, in the Link Icon field of the Link Column attribute, I have set up the Link Icon definition to be <img src="#WORKSPACE_IMAGES##ICON#" alt="">. It resolves the #WORKSPACE_IMAGES# substitution string, but does not resolve the #ICON# placeholder. The only workaround I have found is to build out the entire href string as part of the query and simply display it as a field in the report. However, I would prefer to use the attribute method as it is much cleaner. Can anyone tell me if this is possible or have I hit a bug? Thanks.
Hi,
it works the same if you put the placeholder into your column attributes of the ICON-column in your dynamic report. As I read your previous post again, I came to the conclusion you want to use the column in the more "general" "Link Column" of your interactive report. I agree that you can choose the column from your report using "Pick Dynamic Query Column", but the substitution will not work. I'm not sure whether the bug is the non-working substitution or that the Picker-widget is provided, since you don't have the column as a javascript link below the text field as you would have in the column attributes. I think it's not intended to be possible to reference other columns in that context, but you'll either have to put the reference into the actual column's link attribute or use a static image for all links.
-Udo
Similar Messages
-
Instead of using image in a link column can we have button with name?
Hi,
In Apex , in report region instead of using image in a link column can we have button with name?
Thanks,
Anoo..From your wording, it sounds like you used the built-in column link within APEX. You will need to edit your column and remove that so that the column is only containing the definition that is coming from the query (you can also just change the alias used for the column and then the old column with the link will be removed and the new alias will be added against your new button column).
-- Sharon -
Unable to capture field values in Master agreement Line Items
I am trying to get the field values from master agreement line items page. I have written the following code to get the line item details which is working fine to capture part number and quantity->
agreementBean = doc.getRootParentIBean();
lineItemCollection = agreementBean.getLineItems();
collectionsize = lineItemCollection.size();
for(i=0;i<collectionsize;i++){
collectionbean = lineItemCollection.get(i);
partNum = ""+collectionbean.getPartNumber() ;
Quantity = ""+collectionbean.getQuantity();
throw doc.createApplicationException(null,partNum + " , " + Quantity );
Now, my problem is that I am unable to capture the following field item values in the master agreement > line items page.
1. Price Unit
2. Unit Price
3. Product Category
4. Plant
Please help me to find the values.
Thankx in Advance.
Su
Edited by: subrataindra on Aug 10, 2010 11:11 AMThis will return the name of the plant.
.getExtensionField("PLANT").get().getDisplayName(session);
Check if this returns the product category
collectionbean.getExtensionField("ITEM_CAT").get().getDisplayName();
This will Return the Price
collectionbean.getExtensionField("PRICE").get().getPrice();
(return type :BigDecimal)
This will return the currency
collectionbean.getExtensionField("PRICE").get().getCurrency;
(Return type:String)
Similarly to retrieve other fields for which there are no standard functions, use .getExtensionField("Field ID")
Hope this helps
Regards,
Immanuel -
Unable to read field value from main table - unexpected socket read error
Hi Friends,
While executing the below code, I am able to get the value of the field 'id' but i am unable to get the value for the 'materialnumber' field. i am getting the below exception
+com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ProtocolException: java.io.IOException: Unexpected socket read. Result is -1.
at com.sap.mdm.data.commands.AbstractRetrieveLimitedRecordsCommand.execute(AbstractRetrieveLimitedRecordsCommand.java:158)
at com.sap.mdm.data.commands.RetrieveLimitedRecordsCommand.execute(RetrieveLimitedRecordsCommand.java:157)
at updaterecords.main(updaterecords.java:126)
Caused by: com.sap.mdm.internal.protocol.manual.ProtocolException: java.io.IOException: Unexpected socket read. Result is -1.
at com.sap.mdm.internal.protocol.manual.AbstractProtocolCommand.execute(AbstractProtocolCommand.java:100)
at com.sap.mdm.data.commands.AbstractRetrieveLimitedRecordsCommand.execute(AbstractRetrieveLimitedRecordsCommand.java:146)
... 2 more
Caused by: java.io.IOException: Unexpected socket read. Result is -1.
at com.sap.mdm.internal.net.DataSocket.receiveData(DataSocket.java:59)
at com.sap.mdm.internal.net.ConnectionImpl.readInt(ConnectionImpl.java:417)
at com.sap.mdm.internal.net.ConnectionImpl.nextMessage(ConnectionImpl.java:501)
at com.sap.mdm.internal.net.ConnectionImpl.receiveMessage(ConnectionImpl.java:472)
at com.sap.mdm.internal.net.ConnectionImpl.send(ConnectionImpl.java:209)
at com.sap.mdm.internal.net.ReservedConnection.send(ReservedConnection.java:105)
at com.sap.mdm.internal.protocol.manual.AbstractProtocolCommand.execute(AbstractProtocolCommand.java:97)
... 3 more+
import com.sap.mdm.commands.AuthenticateUserSessionCommand;
import com.sap.mdm.commands.CommandException;
import com.sap.mdm.commands.CreateUserSessionCommand;
import com.sap.mdm.commands.DestroySessionCommand;
import com.sap.mdm.commands.GetRepositoryRegionListCommand;
import com.sap.mdm.data.Record;
import com.sap.mdm.data.RegionProperties;
import com.sap.mdm.data.ResultDefinition;
import com.sap.mdm.data.commands.RetrieveLimitedRecordsCommand;
import com.sap.mdm.ids.TableId;
import com.sap.mdm.net.ConnectionException;
import com.sap.mdm.net.ConnectionPool;
import com.sap.mdm.net.ConnectionPoolFactory;
import com.sap.mdm.schema.FieldProperties;
import com.sap.mdm.schema.RepositorySchema;
import com.sap.mdm.schema.commands.GetFieldListCommand;
import com.sap.mdm.schema.commands.GetRepositorySchemaCommand;
import com.sap.mdm.search.Search;
import com.sap.mdm.server.DBMSType;
import com.sap.mdm.server.RepositoryIdentifier;
public class updaterecords {
public static void main(String[] args) {
try {
String serverName = "159.112.6.26";
ConnectionPool connections = null;
try {
connections = ConnectionPoolFactory.getInstance(serverName);
} catch (ConnectionException e) {
e.printStackTrace();
return;
// specify the repository to use
// alternatively, a repository identifier can be obtain from the GetMountedRepositoryListCommand
String repositoryName = "DEMO";
String dbmsName = "MDMD";
RepositoryIdentifier reposId = new RepositoryIdentifier(repositoryName, dbmsName, DBMSType.ORACLE);
// get list of available regions for the repository
GetRepositoryRegionListCommand regionListCommand = new GetRepositoryRegionListCommand(connections);
regionListCommand.setRepositoryIdentifier(reposId);
try {
regionListCommand.execute();
} catch (CommandException e) {
e.printStackTrace();
return;
RegionProperties[] regions = regionListCommand.getRegions();
// create a user session
CreateUserSessionCommand sessionCommand = new CreateUserSessionCommand(connections);
sessionCommand.setRepositoryIdentifier(reposId);
sessionCommand.setDataRegion(regions[0]); // use the first region
try {
sessionCommand.execute();
} catch (CommandException e) {
e.printStackTrace();
return;
String sessionId = sessionCommand.getUserSession();
// authenticate the user session
String userName = "meter1";
String userPassword = "meter1";
AuthenticateUserSessionCommand authCommand = new AuthenticateUserSessionCommand(connections);
authCommand.setSession(sessionId);
authCommand.setUserName(userName);
authCommand.setUserPassword(userPassword);
try {
authCommand.execute();
} catch (CommandException e) {
e.printStackTrace();
return;
GetRepositorySchemaCommand cmd=new GetRepositorySchemaCommand(connections);
cmd.setSession(sessionId);
try{
cmd.execute();
}catch(CommandException e){
System.out.println(e.getLocalizedMessage());
RepositorySchema repsch=cmd.getRepositorySchema();
// the main table, hard-coded
TableId mainTableId = new TableId(1);
// specify the result definition (what to retrieve); in this example, nothing
ResultDefinition rd = new ResultDefinition(mainTableId);
// select all records
Search search = new com.sap.mdm.search.Search(mainTableId);
//get fields
GetFieldListCommand getFieldListCommand = new GetFieldListCommand(connections);
getFieldListCommand.setSession(sessionCommand.getUserSession());
getFieldListCommand.setTableId(mainTableId);
try {
getFieldListCommand.execute();
} catch (CommandException e) {
System.out.println(e);
FieldProperties[] lookupFields = getFieldListCommand.getFields();
// add fields to records to retrieve
rd.addSelectField(repsch.getFieldId("Products","Id"));
rd.addSelectField(repsch.getFieldId("Products","MaterialNumber"));
// retrieve the records
RetrieveLimitedRecordsCommand limitingCommand = new RetrieveLimitedRecordsCommand(connections);
limitingCommand.setSession(sessionId);
limitingCommand.setResultDefinition(rd);
limitingCommand.setSearch(search);
//limitingCommand.setPageSize(2000);
try {
limitingCommand.execute();
} catch (CommandException e) {
e.printStackTrace();
return;
System.out.println("Record count is " + limitingCommand.getRecords().getCount()+"\n");
Record[] records=limitingCommand.getRecords().getRecords();
System.out.println(records[0].getFieldValue(repsch.getFieldId("Products","Id"))+ " \n");
System.out.println(records[0].getFieldValue(repsch.getFieldId("Products","MaterialNumber"))+ " \n");
// finally destroy the session
DestroySessionCommand destroySessionCommand = new DestroySessionCommand(connections);
destroySessionCommand.setSession(sessionId);
try {
destroySessionCommand.execute();
} catch (CommandException e) {
e.printStackTrace();
return;
} catch (Exception e) {
System.out.println(e.getLocalizedMessage());
e.printStackTrace();
Kindly let me know where i am going wrong. MaterialNumber field is a TEXT not a lookup table field. Above fields are from the main table.
Thanks,
RaagsHi Friends,
I got the solution. It was the error because of not having a the below statement.
limitingCommand.setPageSize(1);
As i havent used that statement, it was trying to get 1000 records, and i dont know exactly what makes this to get that error. Anyhow., As i want to use for updation, i cn live with one record.
Thanks,
Raags -
HOW TO USE field value in repeat_fram formate trigger
i have a field on report layout. i want to use its value in formate trigger to filter the record in which that field value is zero.
field is number type, getting stock of item. i want if stock of item is zero than it should not display, for this i use formate trigger of repeating frame.
Thanks yashyash_08031983 wrote:
i have a field on report layout. i want to use its value in formate trigger to filter the record in which that field value is zero.
field is number type, getting stock of item. i want if stock of item is zero than it should not display, for this i use formate trigger of repeating frame.Hello, yash
Format trigger is for change the formation of value. Like change the font, make it bold,italic, changes it's colour . Not for filtering.
If you want to restrict your report not to show Zero(0) value of stock , you have to done it at SQL query. Like, if stock is a database filed you may write
select .........,....
from table
where stock >0Hope this helps.
If someone response is helpful or correct, please mark it accordingly. -
Using Field values as part of PDF output file
Hello,
I was wondering if it is possible to use information in the *.dat file to create the name of the *.pdf file which will be sent (by email) to our customer automaticly.
So let say there is a field "GLOBAL ORDNO" with a value "1042193" in the datastream and I want to have the PDF to have the filename "confirmation for order 1042193"
Is this, or a similar construction, possible?You would have to write your own program, perhaps using VB, to locate the ^GLOBAL ORDNO line and then extract the data from the next physical line. The program would then put this data in the jfserver.ini file as the value for one of the User#= variables (such as "user1") that are defined there. Then the jfmerge step that creates the PDF could reference that variable (-zc:\temp,@user1..pdf). I've never used the user variables so I don't know that you can reference them like that but the manual seems to indicate it will work. It would be easy to test by manually changing the jfserver.ini file to see if it is possible. If it works, then the custom agent to extract the value and set the variable could be written. (Manually changing the file may not work because I see that the manual indicates these variables are reset at the beginning of each job, but it also states that default values can be defined within the jfserver.ini file - testing will let you know.)
Check out the "Creating a Custom Agent" chapter in the "Working with Central" manual. In my Windows version 5.5 manual it is section 6 and starts on page 45. This not only tells what is required to set up Central to run the agent but explains about the user variables. Section 4 in the same manual explains about using substitution variables.
Unfortunately, if you aren't a programmer it may be difficult to create the custom agent to extract the value and create the "jetform.rsp" file for setting the variable in the jfserver.ini file. We have many custom agents but none do anything like this, though it would be a simple program to write. -
SQLLDR - Unable to use field defined as FILLER
Why doesn't SUBSTR(VJOB_NO, 1, 1) work?
What am I doing wrong?
Portion of control file:
FIELDS TERMINATED BY "|" OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
cycle_no CONSTANT '0002',
VJOB_NO FILLER CHAR,
spaces FILLER,
RETRIEVAL_STATUS EXPRESSION "CASE WHEN SUBSTR(VJOB_NO, 1, 1) ='C' THEN 'CE' ELSE 'X' END"
Portion of log file entry:
SQL*Loader: Release 9.2.0.1.0 -
CYCLE_NO CONSTANT
Value is '0002'
VJOB_NO NEXT * | O(") CHARACTER
(FILLER FIELD)
SPACES NEXT * | O(") CHARACTER
(FILLER FIELD)
RETRIEVAL_STATUS EXPRESSION
SQL string for column : "CASE WHEN SUBSTR(VJOB_NO, 1, 1) ='C' THEN 'CE' ELSE 'X' END"
Record 1: Rejected - Error on table INV_SUPPORT_RETRIEVAL_CONTROLS, column RETRIEVAL_STATUS.
ORA-00984: column not allowed here
Additional info:
-RETRIEVAL_STATUS is not in the input file, does exist in table
-When VJOB_NO is replaced with :MyCol which exists in both the file and the table, it works fine.Yes, that works like what I currently have in production, with the CASE instead of DECODE though.
Just like the current temporary solution, VJOB_NO is loaded into RETRIEVAL_STATUS, then RETRIEVAL_STATUS is reduced.
I hope to be able to define VJOB_NO as FILLER, then place a value into RETRIEVAL_STATUS based on the value in VJOB_NO.
Any other suggestions?
Thanks.
I added Rec_ID for linkage; Re-executed prior tests with Rec_ID, no change in results.
==============================
Test input file - 1st record is a header, and vjob_no is allowed to be null.
Rec_ID|VJOB_NO|Filler
1|C1234567|xxx
2|D1234567890123456|xxx
3||xxx
==============================
Export of table after execution - Empty prior to test.
RETRIEVAL_STATUS,REC_ID
"CE",1
"X",2
"X",3
==============================
SQLLDR Log
SQL*Loader: Release 9.2.0.1.0 - Production on Tue May 23 16:59:04 2006
Number to load: ALL
Number to skip: 1
Errors allowed: 1000
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Silent options: FEEDBACK
Table MYTEST_1, loaded from every logical record.
Insert option in effect for this table: APPEND
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
REC_ID FIRST * | O(") CHARACTER
RETRIEVAL_STATUS NEXT * | O(") CHARACTER
SQL string for column : "decode(SUBSTR(:RETRIEVAL_STATUS, 1, 1),'C', 'CE', 'X')"
CODE1 NEXT * | O(") CHARACTER
(FILLER FIELD)
Table MYTEST_1:
3 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Message was edited by:
user508348
Message was edited by:
user508348 -
Folder level script? How can I use field value as a pdf filename in save as dialog box
I read somewhere that if you use a folder level script, you can do things like save a pdf with a specific filename - possibly based on a field name.
How would one set up a folder level script?
How do you execute a script from the PDF?
What code would you use to change the PDF name to the contents of the fFieldName text field?
Or, is this really just impossible to do?The article is interesting. It suggests you place code like this:
// Page Replacement Function
var ReplaceLastPage = app.trustedFunction( function(cPath) {
app.beginPriv();
this.replacePages(this.numPages-1, cPath); app.endPriv();
In the trusted folder. What is the path of the trusted function(s) that get automatically loaded into Acrobat?
I assume in the example above, function(cPath) is a function inside of the PDF... -
How can I use field value as a pdf filename in save as dialog box
Hello,
I want to use a submit/save button and once you press that the document is automatically named like a field in that document,
e.g. their is a date field in PDF, When I click Save button in PDF Then the file name in Save As window is automically entered. Like "09/08/2012.pdf"
I'm using Adobe Acrobat X Pro.
Thanks a lot for all your help,
I really appreciate it.Hello Ebnul.nao
I am having this same problemwith trying to work this out.
Did you succeed in the end?
I will really appreciate your help if you did
Kind regards -
Unable to use the values returned by a PL/SQL stored procedure in a XSQL page
Hi,
I've been messing around with XML and XSQL in particular. I was trying to write a xsql page to display a report with account totals...I have the following .xsql which calls a PL/SQL stored procedure :
<?xml version="1.0"?>
<xsql:query connection="pfcdm" xmlns:xsql="urn:oracle-xsql">
<xsql:set-session-param name="zasset_total" value="100">
<xsql:dml connection="pfcdm">
rraman.sp_vw_id(zasset_total,zinvm_total,zmkt_val);
</xsql:dml>
</xsql:set-session-param>
select 'Asset total is {@zasset_total}' as "ASSET_TOTAL" from dual
</xsql:query>
My procedure sp_vw_id returns the values that it should. But, I am not sure how to declare variables within a page, and to output the return values. There is very scanty documentation on the usage of <xsql:dml> or <xsql:ref-cursor-function>.
Any response would be greatly appreciated.
Thanks,
RajaHere is the example from the Oracle9i (complete rewrite) of the XSQL Chapter in our Oracle documentation.
Question
I using <xsql:dml> to call a stored procedure which has one OUT parameter, but I was not able to see any results. The executed code results in the following statement:
<xsql-status action="xsql:dml" rows="0"/>
Answer
You cannot set parameter values by binding them in the position of OUT variables in this release using <xsql:dml>. Only IN parameters are supported for binding. You can create a wrapper procedure that constructs XML elements using the HTP package and then your XSQL page can invoke the wrapper procedure using <xsql:include-owa> instead.
For an example, suppose you had the following procedure:
CREATE OR REPLACE PROCEDURE addmult(arg1 NUMBER,
arg2 NUMBER,
sumval OUT NUMBER,
prodval OUT NUMBER) IS
BEGIN
sumval := arg1 + arg2;
prodval := arg1 * arg2;
END;You could write the following procedure to "wrap" it, taking all of the IN arguments that the procedure above expects, and then "encoding" the OUT values as a little XML datagram that you print to the OWA page buffer:
CREATE OR REPLACE PROCEDURE addmultwrapper(arg1 NUMBER, arg2 NUMBER) IS
sumval NUMBER;
prodval NUMBER;
xml VARCHAR2(2000);
BEGIN
-- Call the procedure with OUT values
addmult(arg1,arg2,sumval,prodval);
-- Then produce XML that encodes the OUT values
xml := '<addmult>'| |
'<sum>'| |sumval| |'</sum>'| |
'<product>'| |prodval| |'</product>'| |
'</addmult>';
-- Print the XML result to the OWA page buffer for return
HTP.P(xml);
END;This way, you can build an XSQL page like this that calls the wrapper procedure:
<page connection="demo" xmlns:xsql="urn:oracle-xsql">
<xsql:include-owa bind-params="arg1 arg2">
BEGIN addmultwrapper(?,?); END;
</xsql:include-owa>
</page>This allows a request like:
http://yourserver.com/addmult.xsql?arg1=30&arg2=45
to return an XML datagram that reflects the OUT values like this:
<page> <addmult><sum>75</sum><product>1350</product></addmult>
</page> -
Use field value in xml binding expression
Hi all.
I'm trying to access dropdownlist selected value from a binding expression.
I have a dropdownlist called rooms which is bound to some XML data. When the selection changes I woud like to access that value in another dropdownlist called members which is also bound to some XML data.
The expression I tried is:
$record.room.[roomname==$form.company.mainform.rooms.rawValue].member[*]
I'm calling this code on the rooms.changed event (alsop tried on rooms.exit event):
members.execCalculate();
Aparently $form.company.mainform.rooms.rawValue doesn't return the selected value of the rooms dropdownlist.
Is there a way to get the selected event from a different form and re-calculate binding of the field?
thanxBinding is not dynamic ...meaning that it is set when the form is rendered and cannot be changed on the fly.
Paul -
BB 9220 unable to use browser to bbm8 link
Hi All -
Question - Various users have suggested to go to www.blackberry.com/bbm or www.blackberry.com/messenger to download latest version of BBM. But from my device 9220 which is on the latest OS version (7.1.0.907 (2494), it takes me to the BBM7 download page. Why is the BBM8 not visible. Is there a problem in device setup or is it normal??
Note - Appworld does give an option to update to BBM 8 and it works.
This is bugging me though it is not an issue
Any replies would be welcome!
Regards,this part of the forum is for BlackBerry Z30.
sent from my IMBA BlackBerry Smartphone -
Arrow mark with kunnr field values in alv output.
Hi ,
I need to increase the column field length. I am using Function Module REUSE_ALV_LIST_DISPLAY because alv_grid display fm is not available in 4.0b version. I have used column optimization in layout. The column kunnr is coming with a small arrow though there is no data loss. Is there any way I can remove the arrow mark with kunnr field values.Hi,
You can increase your column lenght in fieldcat by using Fcat-columnwidth = "SIZE OF KUNNR ".
Set the size of kunnr field in fieldcat and get the appropiate output.
Regards
Abdul -
How to add an extra columns to accounting flex field value sets
Hi
I am working on report customization for standard Account Analysis (180 Char) report. Requirement is to show a column "Parent" in Flex field value set .
Currently its showing columns as Account, description
i need to add parent column
i can not modify segment value sets as they are attached to accounting flex fields
so is there any other way i can achieve thie
Regards
DhananjayIf it would help your company to be able to change the accounting flexfield and value sets, I might be able to help. there is software to do this on the market. Sometimes when companies need to develop complex reporting, it's a sign that the chart of accounts, the AFF is obsolete, and it makes sense to change it rather than work around it.
-
Unable assign a BPM Object field value to a JSP Variable using "invoke"
Hi,
I'm unable to retrieve a value returned by a BPM Object Method and use it in JSP. Here is what I'm trying to achieve:
BPM object named : "myObject" has a method "getRequiredValue" which returns a "String". I want to assign the value returned by "getRequiredValue" to a JSP Variable "myVariable" using invoke method as below:
<% String myVariable = ""; %>
<f:invoke var="${myObject}" methodName="getRequiredValue" retAttName="myVariable"/>
<% out.println ("myVariable: " + myVariable); %>
When I execute the above code I don't get the value being returned by "getRequiredValue" into "myVariable".
Any help would be highly appreciated!
regards,
MK1. Make sure you mark the "Server Side Method" property of the getRequiredValue method to "Yes".
2. I guess you dont need to specify "<% String myVariable = ""; %>". Try removing it.
3. Replace "<% out.println ("myVariable: " + myVariable); %>" by <c:out value="${myVariable}"/> just in case!
4. Lastly, I hope "myObject" is the name of the instance variable in your screenflow, and not the BPM object name.
Hope this helps
-Hemant
Maybe you are looking for
-
After lollipop update can't select dialer (phone or skype)
How to reset the option of calling either via the phone or skype or other app? Since the update calling numbers go directly to the phone, no choice is possible. I searched many forums for the right answer but no luck yet. Resetting to standard settin
-
Hi, Has anyone worked on Duplex printing for smartform? If yes, please tell me the procedure/steps that need to be taken for the same. Thanks Regards
-
Help Me , can't find what is wrong :S Simple code
Hello everyone, im'm back =P ...well the problem is : I can't find what's wrong with this code above. The output shoul be "-1" but it prints -4 , it should print the min. value of an array. An absolute value to do that , its simple just do: e.g ( if
-
The 'Share' option is greyed out
So I can't send my movies to YouTube. How do I fix it?
-
Supplying adobe flash and reader with an app
Does anyone know, if I produce lets say a cd with some captivate files on it can I supply adobe flash on the same cd so the user does not have to go onto the internet to download it. (same question for adobe reader) I don't mind asking Adobe if i can