Post Element Text on report items
I am trying to add an image after an item on a multi row report.
Was wondering if there was anything similar to the Post Element Text attribute that is available for individual page items??
I admit to being a little lazy in trying to create a custom popup lov (Displays description, returns key value) in a multi row report without using the htmldb_util.item function (as this would mean having to create my own optimistic locking and md5 computations).
Was wondering if this was possible and if anyone had done this??
Vikas,
just trying to create a multi-row report which has several columns
one of the columns is hidden and stores the id. One of the visible rows stores a description associated with the hidden id.
I then want to display the list.gif icon after the description field so that it looks like a popup lov (i will code the popup up stuff seperately). In effect i wish to mimic the functionality provided by htmldb_item.popupkey_from_query without having to also code the optimistic locking you have to when using this in a query.
what i am thinking is that if my reports select statement is a basic column selection and i can add a href image to the column as a post element text then this will give me the functionality i need with the optomistic locking provided out of the box?
sorry the concept seems quite easy in my head but quite hard to explain ;-)
Similar Messages
-
Hi,
I'd like to use JavaScript to add some post element text to some form items that is based on the content of the form item.
I know that I could just add some extra items on my page and condition them but I'm keen to avoid this as I don't want to clutter the page with too many items. I'd rather just have post element text that I can condition in some way.
Any ideas how I'd do this?
Cheers
YogHello,
Just add something like this. To your post element attribute
<span id="after_#CURRENT_ITEM_NAME#"></span>
and lets say your item name is
HELLO
you javascript should look like this
$x('after_HELLO').innerHTML = 'After Hello';
or
html_GetElement('after_HELLO').innerHTML = 'After Hello';
Carl
Message was edited by:
Carl Backstrom -
Apex 4.0.2
Suppose I use the Post Element Text attribute of a page item to render a checkbox using <input type="checkbox" .... and a dynamic action to save its state to a database table. I am sure this will work fine but when the page loads how do I go about setting the value of all these checkboxes?
Any ideas? ThanksHello Vikas,
>> I am sure this will work fine but when the page loads how do I go about setting the value of all these checkboxes?
The trick is to use a checkbox that has the same ID and value. Remember that only checked checkboxes are submitted to the server. You can look at the following for a simple example:
http://htmldb.oracle.com/pls/otn/f?p=52616:30
Now for some code. I’m using the following as the post-element content for the first checkbox:
<input type="checkbox" name="f50" id="CB1" value="CB1">Option 1<br />The HTML name will remain the same for all checkboxes; however, the ID and value should be different for each extra checkbox (e.g. CB2, CB3m etc.). In this example, the checked checkboxes will be populated, at submit time, into the G_F50 array. Of course, you can use any other available G_Fxx array.
I’m using the following table to save the checkboxes state:
CREATE TABLE "CB_STATE"
( "PAGE" NUMBER(4,0) NOT NULL ENABLE,
"VALUE" VARCHAR2(4) NOT NULL ENABLE
) ;For saving the checkboxes state, I’m using the following after submit PL/SQL process:
delete from cb_state
where page = :APP_PAGE_ID;
for i in 1..apex_application.g_f50.count loop
insert into cb_state
values(:APP_PAGE_ID, apex_application.g_f50(i));
end loop;For setting the checkboxes state, while rendering the page, I’m using the following Before Footer PL/SQL process:
htp.p('<script type="text/javascript">');
for x in (select * from cb_state
where page = :APP_PAGE_ID) loop
htp.p('$x('''||x.value||''').checked = true;');
end loop;
htp.p('</script>');I’m sure you can translate the last snippet of code to a Dynamic Action. If you do, please post it in here.
Regards,
Arie.
♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
♦ Author of Oracle Application Express 3.2 – The Essentials and More -
Post-element text with computed value
I have a page item (P10_X) with post-element text referencing a application level item using &G_ITEM. notation. G_ITEM is computed on the page and the computation needs to take into account the value of P10_X so the firing point is "after footer".
This leads to a Catch-22 because the item and post-element text is rendered before the computation so the value of G_ITEM is not accurate.
Any ideas? ThanksNot sure I understand. Suppose P10_X=10 when it is rendered. G_ITEM is computed as :P10_X (i.e. 10) + (select ...). The post-element text for P10_X refers to &G_ITEM. so it uses the "stale" value of G_ITEM; the latest value is not computed until after all regions are rendered.
Edit: Turns out that P10_X obtains it value in an Before Header application process, not via its Source attribute. So I can put the computation for G_ITEM at the After Header point and so everything gets computed and rendered properly.
Edited by: Vikas2 on Jul 14, 2009 4:05 PM -
Conditional display of post element text.
Hello,
I wanted to know if it was possible to display the
post element text for a text item conditionally.
Thanks,
shilpa.Hi Shilpa
I am not aware of any functionality to conditionally display the post element text on its own. However there are 2 ways around this.
1) If when entering the page you want to decide if you should display the text you could, after each item add a display only item and put a condition on that. Changing the display only items displayed properties to Begin On New Line = NO and Field = NO will give the impression of post element text
2) If you want to conditionally display the text dependent on what the user has entered into the box you could use some javascript in the post element text field. e.g.
<span id="me"></span>
<script language="javascript">
function test1(){
if (1 + 1 == 2){
document.getElementById("me").innerHTML = "sometext";
</script>
then in the html form element attributes field you can call this function like this:
onblur="test1()"
Hope that helps
Adam -
Image in a post element text : urgent
hello.
I am simulating a lov popup field (display description, return key..) because I am building the popup page manually...
All works fine, I have a text field witch receive the key and display a description, I am concatening an image (in the post text element), when I click on this image My lov popup is openeing...
My problem is : the image witch is right to the text field must be stuck to this text field ( I have a space between them),
Any idea please ?lila,
We can look at your application on htmldb.oracle.com where you reproduce this problem. Just post the app ID and we'll take a look.
Scott -
3.12 post element text appearing on new line
I have an icon and some javaScript behind it to clear the content of the item, which on moving to 3.12 is moved onto the next line:
http://apex.oracle.com/pls/otn/f?p=41395:10
Is there a simple way of avoiding this please so that it all appears on the same line (as in v2)?
PhilHi Phil,
In your page's HTML Header setting, add in:
<style type="text/css">
fieldset {display:inline}
</style>By default "fieldset" items are block elements so will always end with a new line - the above forces it to flow with the text
Andy -
3.1 upgrade problem: Post Element Text does not align properly - DUPLICATE
Duplicated in error - problem with browser. Please remove this one.
Thank you.
Message was edited by:
Thomas 8246Duplicated in error - problem with browser. Please remove this one.
Thank you.
Message was edited by:
Thomas 8246 -
Button with pre element text is given a container div
Hi!
Just installed 4.2.2.00.09 and imported a workspace and an application. Worked fine.
I noted a page display difference when compared to the exported application (4.1.0.00.32). I have (so far) found this:
If I have a button with Pre Element Text set to <div class="dummy"> and Post Element Text set to </div>, Apex generates an extra div around it all.
If my button was named P1_SUBMIT I end up with
<div id="P1_SUBMIT_CONTAINER">
<div class="dummy"> <input type="button" value="Search" id="P1_SUBMIT" /></div>
</div>
Is it possible for me to turn this extra div off?
Kind regards
TomasHi,
Change the "Number of Columns" setting in the "List of Values" where you define the 1,2,3,4,5 to "5", and you'll be all set.
--Jennifer -
Hello dear experts,
please clearify my doubt?
what is the differen b/w "last data update" text element (in web report)and "status of data" in the in the report(in analyzer)? Is it same or different?
Regards
prathap.Hi,
Hope this clears your doubt,
Last Data Update: This would give the information on ROLLUP time..
Status of Data: Time at which the data of the last request (that could be analyzed for reporting) was posted in the InfoProvider. In the case of MultiProviders, the respective current InfoPackages are determined from the individual standard InfoCubes and the one with the latest date is used for the validity of the data. This shows a date and a time (in the local time zone). -
How to identify Parked and Posted Documents in GL Line Item Report
Is there any way to identify parked and posted documents in GL Line Item Report S_ALR_87012282? If i tick the parked documents in the further selection tab in the selection parameter, report will list all documents (parked and posted).
There is no available field in the layout. Is there any other way?
Thanks!HI,
The other way to know the parked document details
use tcode: FBV3 - Display
OR
you can go to SE16 and enter table name VBKPF -Document Header for Document Parking
BSTAT = V
V = parked document
and ececute u will get the details of parked document.
Edited by: Manohar Mathkunti on Sep 13, 2008 11:11 AM -
Report for Posting Rule details for Functions/items
Hello
Is there a standard program in SAP to take a report or listing of extract in MS Excel of the posting rule details configuration settings in SAP-JVA. I am fairly certain there is a program to extract the details in Excel but I am not sure what is the name of that program and how to use it. I appreciate any ABAP programmer or expert can guide me how to go about this listing.
ThanksHi Raghavendra,
In order to do postings in JVA, we create posting methods and under that Posting method we have to create and configure posting rules. Under the posting method, there are SAP JVA processes or functions and function items that are used to create the posting rules. The posting rules details are specified for each function and function item combination and involve the specification of Recovery indicator along with posting keys, SE indicator and billing indicator.
I am not convinced that the standard codes in my system for posting keys, recovery indicators and billing indicators are exactly the same as the default settings and I need to check it along with the posting rule details.
Please see the screenshots attached to give you an idea. I am looking for an ABAP program or report program to take out a listing of these posting rules details from the system.
Spro - JVA - Posting rules fig 0
Posting method / Posting rules screen - fig 1
Posting rule item codes for function CCOP
Posting rule details for function/item CCOP/AC -
Post long text for document line item via FI-GL Inbound IDoc
Hi guru,
I am trying post extension ZFIDCP02 linked basic type FIDCCP02 and message type FIDCC2 IDoc in R/3 (4.6c) via IBM Websphere (Inbound IDoc),
I am use inbound function module IDOC_INPUT_FIDCC2 and activate exit 008 (EXIT_SAPLF050_008) and exit 002 (EXIT_SAPLF050_002),
In the extension ZFIDCP02 and under E1FISEG, I am add my segment ZITEXT include field TDSPRAS, TDID, TDOBJECT, TDLINE.
I am send ZFIDCP02 IDoc via IBM Websphere no error but all field TDSPRAS, TDID, TDOBJECT, TDLINE in my segment ZITEXT not post in FI-GL.
How can I post long text for document line item (ZITEXT) in FI-GL ?.
and I'm mean post ZITEXT to bank statement via IDOC.
Please throw light on this and may be I 'm want solution or example ABAP code for exit 002 (EXIT_SAPLF050_002).
Thanks in advance,
Akkapong Pirachai
CAT Telecom
Edited by: Akkapong Pirachai on Aug 20, 2008 7:40 AMClose question because long time for answer.
-
How to find out all the text elements in the report using Java?
How to trace the contents of an rpt file?
I am able to open the rpt file in my report viewer but can not trace it using the JAVA code.
Actually, I need to find out all the text elements of rpt (Report) file and replace them with the contents of resource bundle.
My Java code to open a report is given below:
import com.crystaldecisions.reports.sdk.ISubreportClientDocument;
import com.crystaldecisions.reports.sdk.ParameterFieldController;
import com.crystaldecisions.reports.sdk.ReportClientDocument;
import com.crystaldecisions.sdk.occa.report.data.ConnectionInfo;
import com.crystaldecisions.sdk.occa.report.data.ConnectionInfos;
import com.crystaldecisions.sdk.occa.report.data.Fields;
import com.crystaldecisions.sdk.occa.report.data.IConnectionInfo;
import com.crystaldecisions.sdk.occa.report.data.ParameterField;
import com.crystaldecisions.sdk.occa.report.data.ParameterFieldDiscreteValue;
import com.crystaldecisions.sdk.occa.report.data.Values;
import com.crystaldecisions.sdk.occa.report.lib.IStrings;
import com.crystaldecisions.sdk.occa.report.lib.PropertyBag;
import com.crystaldecisions.sdk.occa.report.lib.PropertyBagHelper;
import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;
import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;
public String viewRpt()
//1.) Setting Database Infos
IConnectionInfo iConnectionInfoObj=setDatabaseConnectionInfos();
//2.) Setting Report Path
String reportPath=u201DE:
was60
rptFilesLocation
u201D;
reportPath=(reportPath!=null)? reportPath:AppConstants.CONSTANTS.BLANK;
String reportName="report1.rpt";
String reportFullPath = reportPath + rptName;
//3.) Setting Report Source
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(reportPath, 0);
IReportSource reportSource = reportClientDoc.getReportSource();
setReportSource(reportSource);
reportClientDoc.close();
//4.) Setting the Fields Starts
setFieldsCrystal(null);
Fields fields = new Fields();
ParameterField pfield1 = new ParameterField();
Values vals1 = new Values();
ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue();
pfield1.setName("@parameter1");
pfieldDV1.setValue(u201Cvalue1u201D);
vals1.add(pfieldDV1);
pfield1.setCurrentValues(vals1);
fields.add(pfield1);
pfield1 = new ParameterField();
vals1 = new Values();
pfieldDV1 = new ParameterFieldDiscreteValue();
pfield1.setName("@parameter2");
pfieldDV1.setValue(u201Cvalue2u201D);
vals1.add(pfieldDV1);
pfield1.setCurrentValues(vals1);
fields.add(pfield1);
setFieldsCrystal(fields);
//Setting the Fields Ends
The sample jsp code to view the report is as follows:
<%@taglib uri="http://www.businessobjects.com/jsf/crystalreportsviewers"
prefix="bocrv"%>
<bocrv:reportPageViewer viewerName="CrystalViewer"
reportSource="#{CrystalReportBeanObject.reportSource}"
displayToolbarRefreshButton="false"
allowDatabaseLogonPrompting="false"
allowParameterPrompting="false"
databaseLogonInfos="#{CrystalReportBeanObject.connectionInfosCrystal}"
parameterFields="#{CrystalReportBeanObject.fieldsCrystal}"
displayGroupTree="false" displayToolbarLogo="false"
displayToolbarToggleTreeButton="false"
enablePageToGrow="false" height="540"
zoomPercentage="100" width="750"
allowDrillDown="false"
displayToolbarPrintButton="true"
printMode="PDF"
></bocrv:reportPageViewer>
Edited by: JayKumarSharma on Mar 23, 2011 12:42 PMThis is how you retrieve all the text fields in the reort:
ReportObjects reportObjects = (ITextObject) oReportClientDocument.getReportDefController().getReportObjectController().getReportObjectsByKind(ReportObjectKind.text);
for(int i=0; i< reportObjects.size();i++)
ITextObject textObject = (ITextObject)reportObjects.get(i);
// use ReportObjectController to modify the text object.
If you want to modify the contents of the text element, you can do it as follows:
TextObject oTextObject = new TextObject();
Paragraphs oParagraphs = new Paragraphs();
Paragraph oParagraph = new Paragraph();
ParagraphElements oParagraphElements = new ParagraphElements();
ParagraphTextElement oParagraphTextElement = new ParagraphTextElement();
oParagraphTextElement.setText("This is the new text field");
oParagraphTextElement.setKind(ParagraphElementKind.text);
oReportClientDocument.getReportDefController().getReportObjectController().modify(textObject, oTextObject);
oReportClientDocument.save(); -
I have my PC at the window "Make text and others items window larger or smaller" set at the 150%.
How great was my surprise when I found that this setting of my PC broke my RDLC report print deployment.
Do you now about this mistakes?
Is that behavior of "Windows 8" right?
Or is that behavior of "vs 2013" right?Hello,
Since this issue is mainly related to visual studio report, I am moving this thread to
Other Forums > Visual Studio Report Controls
forum to get help.
And IMO I would agree with you that it should be the right behavior, since it could affect the other printing tasks.
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
I just got to school after getting a new screen put on my 13in macbook pro. when i opend up my macbook there was only a apple simble and the loading sing with a bar at the botton it took fovere to load, one it loaded and opend up there was a few opti
-
Is there a way to make the flyout window for the adjustments panel close automatically?
The flyout window for the tool on the adjustments panel is OK, although I'm not thrilled that it takes up space inside of the image. Is there a way to either make it open within the panel the way it did in CS5 or close automatically when you have fi
-
The voice mail does not come as attachment for new users
Hi, We have installed the unity 7.0 as the unified messaging, the existing exchange was 2007, everything was working fine, now we have got exchange 2010, and the new users to be added are in the new exchange 2010, but in the same container. so we tri
-
Shipping Invoice for line item
Hello SAP Gurus, Shipping invoice only triggers a invoice for the complete order but it is not possible for each line item. Is it possible to open the item field on shipping invoices? Please advise. Regards, Manoj
-
COPA document with missing values
Hi Experts, after posting in SD (debit memo rebilling) a CO-PA document is created, but with missing value for value field 'interest'. In transaction KE4I, there is correct assignment of SD condition to value field 'interest'. We use cost based CO-PA