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? Thanks
Not 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
Similar Messages
-
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 ;-) -
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 -
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 -
Using attachments in work-flow and creating custom text with key values
Hi,
I have 2 simple requirements.
1. how to attach a tcode or trigger method of business object for work-flow item. The user should be able to navigate to transaction to see data before approval or rejection.
2. I have created custom task for long text that will be displayed in the SAP inbox. How do I provide key values in this long text. I was able to do in the subject line using Substitution parameters(&Name1& etc..)
Regards
KasiI did the same thing. see details.
Created Workitem and attached a task "TS92500097". in the task, I mentioned Business Object and method to be called. I have set the binding also for this business object. the method I am calling is nothing but just "display" which is using call transaction. 2 problems here.
1. How do I show this "BusinessObject.Display" as an attachment or link in the mail.
2. how do I assign key values during exection of this attachment or link.
Regards
Kasi
2. -
Create text with default values
Hi,
I need to copy values(ID, description , dates , status text) from current document to follow up document ' text ' .
I have defined text determination procedure->text type-> access sequence->function ( copy of COM_TEXT_DETERMINE_TEXT)
, but this function only copies SO10 text to next document.
I need to pass values to the text.
Please suggest how to achieve this.
Regards
PratyushHi,
you can use screen fields in BDC to update short text. you need CREATE_TEXT or SAVE_TEXT function module to update long text. Transaction may any. You have to pass some parameter to update long text.First try to use READ_TEXT to get existing text for practice.You will get some idea of long text, then create your own long text for any transaction -
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 -
Dear All
Plz see below comments of Sujay.. can any one tell me is there any other sollution for that? plz note, while i am trying to use 501 MVT with ZSPR there is no FI doccument generated but if i use ROH material, then fi doc generated with value.. why and how it is happening?
plz advice
Subject: Re: maintaining spares returned
Message: As per your mentioned specification what i see is material type ZSPR is a valuated material, so in that case if you doing reverse movement 202 wrt 201 then it should cancel the effect of 10.00 RS, which the system is doing correctly.
Now coming to your question if you want to return the material to your respective store without any valuation, then why don't you do 501 movement.
BRthanks for clarification.
however it will not change the answer in general.
return from user departments are usually done with 202 movement, 501 is usually used for receipts from external vendors without having a PO.
In any case the movements will be valuated with the price in the material master, if the material type is quantity and value managed.
There is only one option to return at zero value: make the field fo external valuation in the movement optional, and try then to enter a zero manually while executing the movement. This will post the movement with no value and reduce the MAP of the material accordingly.
But this is pretty dangerous as you will not really have a control about the use of this field, any user can enter any value and will effect the material prices. -
Call Standard Text by report replacing the variables with their values
Hi,
I have a requirement to call a standard text from a report.
Following is the text present in standard text.
&PTXT1-ENAME& will attend for interview
on &MEMOACT-PLDAT& at &MEMOACT-PLTIM&.
I am doing it by using READ_TEXT. But READ_TEXT reads the entire text as it is.
Is there any way I could retrieve the standard texts with &PTXT1-ENAME& replaced by the value of PTXT1-ENAME in report. And similarly &MEMOACT-PLDAT& replcaed with its actual value.
Any pointers in this regard would be helpful.
Points will be awarded.
Regards,
Mayank AgarwalHi,
In the Text
&PTXT1-ENAME& will attend for interview
on &MEMOACT-PLDAT& at &MEMOACT-PLTIM&.
do not use the * as a paragrapgh , use /: as the paragraph
Regards
Sudheer -
GR Value is not matching with PO Value while posting good receipt.
Hi Experts,
My client has raised the PO with accounts assignment category K (COST CENTRE) with material description.
but he has received invoice receipt before good receipt.while invoice receipt he has entered wrong value for some qty as per PO intially and cancelled that wrong entry.
I have gone through original & cancelled invoice document accounting entries. below is entries:
Original invoice document accounting entries:
GR/IR Clearing account: Debited
Vendor account: Credited
during cancelling the above document it should be vendor acc is debited and GR/IR account is credited but in the system below entries taken place
Cancelled invoice document accounting entries:
Vendor account : Debited
GR/IR Account : Credited
Consumption Account : Credited
Why consumption acc taken place here. pls help what are the possibilitis....
these entries affecting good receipt value means while taking goods receipt for some qty out of full qty value is not matching with PO value.
but while cancelling the GR documents system taking correct values as per PO. Please help.
Kindly help in this regards
Regards
MohanHi,
Check the Credit Memo document whether G/L tab is there & whether any G/L account is entered ?
I think instead of cancelling the MIRO document they might have posted a vendor credit memo manually by specifying a consumption GL.
Thanks & Regards, -
How Can I replace newScale Text Strings with Custom Values?
How Can I replace newScale Text Strings with Custom Values?
How can I replace newScale text strings with custom values?
All newScale text is customizable. Follow the procedure below to change the value of any text string that appears in RequestCenter online pages.
Procedure
1. Find out the String ID of the text string you would like to overwrite by turning on the String ID display:
a) Navigate to the RequestCenter.ear/config directory.
b) Open the newscale.properties file and add the following name-value pair at the end of the file:res.format=2
c) Save the file.
d) Repeat steps b and c for the RmiConfig.prop and RequestCenter.prop files.
e) Stop and restart the RequestCenter service.
f) Log in to RequestCenter and browse to the page that has the text you want to overwrite. In front of the text you will now see the String ID.
g) Note down the String ID's you want to change.
2. Navigate to the directory: /RequestCenter.ear/RequestCenter.war/WEB-INF/classes/com/newscale/bfw.
3. Create the following sub-directory: res/resources
4. Create the following empty text files in the directory you just created:
RequestCenter_0.properties
RequestCenter_1.properties
RequestCenter_2.properties
RequestCenter_3.properties
RequestCenter_4.properties
RequestCenter_5.properties
RequestCenter_6.properties
RequestCenter_7.properties
5. Add the custom text strings to the appropriate RequestCenter_<Number>.properties file in the following manner (name-value pair) StringID=YourCustomTextString
Example: The StringID for "Available Work" in ServiceManager is 699.
If you wanted to change "Available Work" to "General Inbox", you would add the following line to the RequestCenter_0.properties file
699=General Inbox
Strings are divided into the following files, based on their numeric ID:
Strings are divided into the following files, based on their numeric ID:
String ID File Name
0 to 999 -> RequestCenter_0.properties
1000 to 1999 -> RequestCenter_1.properties
2000 to 2999 -> RequestCenter_2.properties
3000 to 3999 -> RequestCenter_3.properties
4000 to 4999 -> RequestCenter_4.properties
5000 to 5999 -> RequestCenter_5.properties
6000 to 6999 -> RequestCenter_6.properties
7000 to 7999 -> RequestCenter_7.properties
6. Turn off the String ID display by removing (or commenting out) the line "res.format=2" from the newscale.properties, RequestCenter.prop and RmiConfig.prop files
7. Restart RequestCenter.
Your customized text should be displayed.I've recently come across this information and it was very helpful in changing some of the inline text.
However, one place that seemed out of reach with this method was the three main buttons on an "Order" page. Specifically the "Add & Review Order" button was confusing some of our users.
Through the use of JavaScript we were able to modify the label of this button. We placed JS in the footer.html file that changes the value of the butt
Maybe you are looking for
-
backed up my iphone 4 32 gig and got a iphone 5 16gig and i cant restore it not enought gigs an my new iphone . anyone know how to delete some of old infor on old phone before restore to new phone?
-
SQL query to get the monitor target on a monitor
Hi! I have a list of some custom created Monitors. I need a list of which computers that are using the monitors, the "Monitor target". Please help me with this. It need to be a SQL Query because my powershell have stopped working.
-
can anyone tell me what to check my laptop turns on and has full charge on battery but will not open up any programs.
-
Collecting or time based inbound idoc posting
Dear All, We have need of posting idoc's in a specific time interval in SAP ECC system. Please help us. requirement is We are pushing idocs to ECC , but the idoc should get process only between 3 Pm to 6 PM. Kindly help us. Regards Pradeep P N
-
I use mpeg streamclip but when i try to convert avi to mp4 or whatever itunes is capable of having and it takes all this time to convert or watever and then when i finaly get it on itunes i replay the movie and it is black with no audio. p.s. The mov