Conditional Pagination for Multiple Regions
Apex 3.1.1, theme 16, Search Engine 1,2,3,4 (set based pagination)
Hello,
I'm working on an application that uses conditional pagination. We have a select list item where the user can choose how many result rows they want to see on a page. If the result rows returned are less than what the user selects (there is only one page of results), the pagination is hidden so the "1" doesn't display. This works great except where there is a page with more than one report region. Is it possible to restrict the $('.pagination') to each region? Maybe using the region static ID? I'm new to Javascript and Apex so I don't know how to reference the pagination for a particular region or if this is even possible. Thanks.
Script located in each Region Footer:
<script type="text/javascript">
if ( #TOTAL_ROWS# > &P302_RESULT_ROWS. )
$('.pagination').show();
else
$('.pagination').hide();
</script>Lisa
Not got jQuery installed, but as far as I understand I don't see any reason why what you suggest won't work. #REGION_STATIC_ID# is substituted in the region footer, and – in standard report templates at least – the pagination elements are descendants of the #REGION_STATIC_ID# element:
<script type="text/javascript">
if ( #TOTAL_ROWS# > &P302_RESULT_ROWS. )
$('##REGION_STATIC_ID# .pagination').show();
else
$('##REGION_STATIC_ID# .pagination').hide();
</script>
Similar Messages
-
Is there a way to reset pagination for a region and not the whole page?
If I have a report region R1 with a clickable link to another report region on the same page R2, I would want each click on R1's link to reset pagination only for R2, not for the whole page! Otherwise I lose my place in R1's resultset.
ThanksWhat is the rationale for this? How would an answer help you?Well, obviously it wouldnt if I wanted to do just that, but I am the curious sort. I just wanted to understand what the reason for it was from a architecture/design perspective.
Put reports on different pages so that resetting
pagination on a page doesn't reset pagination on
reports that you don't want pagination reset for.Yeah, I guess, but changing pages just for this reason doesnt quite seem right. It disrupts the user experience to flip between pages -
Volume adjust for multiple regions
This is probably very simple but I'm looking for a way to adjust the volume of multiple selected regions. Is there a hold-down key for this?
There are a couple of quick ways...
1. Select all your audio you want to adjust and press optioncommandL, then enter the value in the pop-up box that appears.
2. Select all your audio you want to adjust and hold down control, then press '+' or '-' which will increase/decrease the volume by 1 respectively. Obviously, the more you tap '+' or '-' the more/less the volume will change. -
Condition field for Multiple Receiver Services in Receiver Determination
Hi All,
I have a requirement where I need to send an xml to any of the two receivers base on a condition in XPATH as follows:
IF a field say abc having any value then RCVR1
IF abc is empty then RCVR2
I have tried putting following values in Left Operand and Right Operand
abc = NULL
abc = ''
abc = ""
abc EX
but no help...Is there any way that we can check for Blank value in Condition fieldleft operad operator right Operand
abc EX
abc notequal
abc EX
abc equal
combine first two condition with a AND Operator for RCVR1 and also the last two condition with a AND operator for RCVR2 -
Conditional Help for Multiple Customers
In the company I work for we have a software product that is configurable for different customers. I have a master online help that contains ALL the components. When we are sending a particular iteration of the software to a customer with their specific set of components exposed, I have to generate a specific help for this set of components. I have all the different components conditionalised so that I can pick and choose the components needed for each customer. Development here are trying to automate the software build process and I am wondering if there is any way for our build process, via a script or something, to pick the conditionalised topics from the master help system so that we do not have to generate a new help for every customer? Any help or advice would be great. Thanks.
Bill Albing describes what you need to know in an article on my site.
http://www.grainge.org/pages/authoring/command_line/command_line.htm
See - Preparing a Layout for Each Deliverable.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
How can I decouple the pagination for a global region?
I was having a delightful time using a common region defined on a global page when I determined that pagination setting was begin carried from one page to the next. Arghhhh! So for example, if I have paged to the second set (page) of rows (11-20) on Page 1 and then I go to Page 2, the second set (page) of rows (11-20) is displayed there. If I go to a page which only has a first set of rows (1-10), I get the pagination error "Invalid set of rows requested, the source data of the report has been modified. Reset Pagination". And when I click to reset, it just repeats the error. [I suppose it tries to display the second set or rows (11-20) again -- which doesn't exist. What's that saying about insanity?]
How can I decouple the pagination for a global region? I want it to operarate just as it would if it were not sharing a common region. So if I'm looking at rows (11-20) on page 1, I can go to any other page beginning with rows 1-10 there. Then return to page 1 where I left off with rows 11-20 displayed. One solution is NOT to paginate but that's not my preferred solution.
HowardHoward(...inTraining) wrote:
I was having a delightful time using a common region defined on a global page when I determined that pagination setting was begin carried from one page to the next. Arghhhh! So for example, if I have paged to the second set (page) of rows (11-20) on Page 1 and then I go to Page 2, the second set (page) of rows (11-20) is displayed there. If I go to a page which only has a first set of rows (1-10), I get the pagination error "Invalid set of rows requested, the source data of the report has been modified. Reset Pagination".
The fact that there are different numbers of rows returned on different pages implies that the reports have some local page dependencies, so why try to use a global component? What's the actual requirement? How many pages does the report have to appear on? (Please say it is a report and not a tabular form...)
How can I decouple the pagination for a global region? I want it to operarate just as it would if it were not sharing a common region.
The point is that a global region is just that: a single region that happens to be displayed on multiple pages. It does not create multiple instances of a region on different pages. (Specifically, a region has a single region ID, and this is used to reference it whether it appears on one page or all of them. The region ID is used by the report for the purposes of AJAX refresh, pagination etc.)
A similar situation was discussed a long time ago. I'm rather surprised that Scott regarded it as a bug: the fact that it doesn't seem to have been "fixed" or have a bug number attached may indicate that the others on the APEX team disagreed with him? I haven't tried the workaround he suggested, however I don't think it's likely to be prove a useful line of attack for your issue, as (1) it resets pagination rather than preserving it; and (2) it doesn't appear to be compatible with the AJAX PPR pagination used in more recent versions of APEX.
I can't see any straightforward "solution" (largely because I don't think there's really a problem: the exhibited behaviour is exactly how I expect/want global regions to behave). Pagination processing is undocumented. The current 4.2 apex.widget.report.paginate JS method is specifically annotated as "for internal use only". Search the forum for custom pagination techniques. Messy looking hacks for IRs have previously been suggested.
So if I'm looking at rows (11-20) on page 1, I can go to any other page beginning with rows 1-10 there. Then return to page 1 where I left off with rows 11-20 displayed. One solution is NOT to paginate but that's not my preferred solution.
Assuming that there aren't too many pages involved, the other obvious option is to create unique regions on the required pages. You can achieve some level of reusability by creating SQL Query (PL/SQL function body returning SQL query) reports based on an external function so that there's only a single SQL source to be maintained.
Explain the requirement in more detail. Pagination is not the only option for reducing the quantity of displayed information. Often it's better to display some of all of the data, rather than all of some of it... -
Condition records- setting printer for multiple vendors at the same time
Hi all,
I have maintained condition record for POs for Key combination of Doc type,Purch Org and vendors.Now for a particular doc type and P.Org , I have around 50 vendors. I need to change the printer for all these 50 vendors to 'printerx'.Is it possible? I tried selecting multiple vendors at a time and changed the printer but its not working.Hi Saurav ,
You can achieve this through SCAT transaction.
For running SCAT take the help of ABAP team.
I hope u might be having the list in the form of text file.
If not , download the same from NACH table.
Regards
Ramesh Ch -
How to conditionally hide/show form item for multiple requests?
Ver 4.1.0
Hi There,
I have a database form where in one of the fields I need to hide /show based on if the user selects a copy row option or create a new row.
To explain in details,
1. I have a report and form application created. When the user edits a record, in that page I have added a copy button also, so when the user hits the copy button, the page is reloaded where the user can create a new record with the save button disable and the create button visible. when the user submits the form using Copy the request is set to "COPY' and in the form, one of the fields has conditional display "REQUEST =Expression1" with value "COPY" This works fine.
2. However, on the reports page, there is a "CREATE" button also, where the user can directly create a new record and the request value is "CREATE"
I wanted to add both COPY and CREATE to the conditional display something like
"REQUEST=Expression1" with value "COPY, CREATE" (without quotes)
however, the item does not display. I guess it only accepts one value since its =.
Any suggestions on how the conditional display for an item can be done based on multiple request types?
Thanks!
Sun
Edited by: ryansun on Oct 18, 2012 3:08 AMHi Sun,
Try changing your condition to a PL/SQL Expression and in expression 1 field add something similar to below and see if it works:
:REQUEST like 'CREATE' or :REQUEST like 'COPY'This is straight off the top of my head and untested.
Hope this helps
Paul -
Calculation formula userexit not working for multiple condition types
Hi,
we have a problem in the CRM ISA-B2B scenario where the custom user exit is only working for single condition type.
but we need it for multiple condition types .
the value of the subtotal is not being retrieved for multiple conditions. at a time only one condition value is being retrieved and shown in the webshop - shopping basket.
for ex:
we have scenario 1 where Y001 -Freight condition type is applicable for one customer.and Y002 is applicable for another customer.
when we are trying to show the subtotal condition value in the webshop by using a single custom user exit in the pricing procedure it is only working for either of the above 2 customers depending on the VMC cache status.
is there any problem if use the single user exit for both condition types?
and if it needs to be differentiated how exactly we can do that with the same logic in the java class.
Thanks in advance,
PSR.Hi Arshi,
below is the code:
public class ZValFormula_ZZWI1 extends ValueFormulaAdapter {
private static String zzwi = "ZZWI1";
private static char zzwiC = '@';
private static UserexitLogger userexitlogger = new UserexitLogger(
ZValFormula_ZZWI1.class);
public BigDecimal overwriteConditionValue(IPricingItemUserExit item,
IPricingConditionUserExit condition) {
ICurrencyValue val = condition.getConditionValue();
userexitlogger.writeLogDebug( "value saved for " + zzwi + " (" + zzwiC + ") = "
+ val.getValueAsString());
item.setSubtotal( zzwiC, val.getValue());
return val.getValue();
hope this would give more idea to look at the problem.
Thanks,
PSR -
How to trigger Condition Access sequence multiple times for one line item?
Hi,
We have a situation that, User will enter a Promo code (custom Field) in Sales order Header Additional data B tab to apply discount for line items.
Logic goes like this:
1. For each Promo code .. there may be multiple sale deals (Max 3 at this point).
2. For each line item (refering to tkomp table) we have to apply the sale deals (found above) the Condition access sequence will pick the right sale deal to apply the line item.
3.we have enhanced the tkomp structure to hold the sale deal.
Challenge:
As we have the standard logic to trigger the condition access sequence once for each line item, how we can apply 3 sale deals for single line item. Is there any logic or way to trigger the condition access sequence multiple times for single line item with diffrent sale deals. ~ There may be one valid sale deal for one line.
Functional team maintained diffrent access tables in the access sequence!!!
Fnds, please help me to get some clue
Thanks,
Sunil YHi Eduardo , Thanks for the response.
I am trying to explain again, this is the requirment given by the functional guys.
we have Promo code in Hearder Addtional data B tab --> Have to retrieve Sale Deals -->
At this point of time we may have at max 3 Sale Deals. we don't know which sale deal is vallied for which item we have in TKOMP. We have enhanced the TKOMP structure to hold one sale deal only (ZZPROMO).
We have enhanced USEREXIT_PRICING_PREPARE_TKOMP in RV60AFZZ to populate the value in TKOMP. Then it will go for diffrent access sequence to find the proper condition.
Our challenge is that, for each line item we have 3 sale deals, we don't know which one is valid for which line. but we have to apply the vallied sale Deal to the line items. Line item 10 may have Sale Deal 2 , item 20 may have Sale Deal3 and 30 may have sale deal 1.
We may have solution, by fixing some thing in the code or through config. But i am confused that is it a valid requirment?
Please help me ...
Thanks,
Sunil Y -
Problem with multiple condition type for VAT &CST
Hi,Gurus,
pl. suggest the procedure for the following problem.we configured seperate pricing procedures for our product material and scrap material.We have configured same condition types for VAT(ie.condition type:ZVAT) and CST(cond type:ZCST), in both pricing procedures. Now We want to maintain seperate condition types for VAT and CST for pricing procedure for Product material and Scrap material. I have created two new condition types for scrap sales ZSCT- cst for scrap and ZSVT-vat for scrap by copying the same from existing conditions ZCST & ZVAT, and the same is included in the scrap pricing procedure. And also maintained OB40,OBCN,OVK1,OVK3,OVK4, FTXP,FV11 and VK11.
now I am facing the following problems.
1. while creating the Material master & customer master, in tax category sub screen all conditions i.e. conditions defined for product material( ZCST,ZVAT) and defined for scrap material (ZSCT, ZSVT) displaying and these are compulsory fields.
2. While creating the sale order for scrap material, system is considering the TAX classes from ZVAT/ ZCST (defined for product material) and taking the condition value from the condition type ZSVT/ ZSCT with the TAX class values of ZVAT/ZCST.
Now I would like to know is there any procedure to assign the Material type and Customer Account group to Tax category.
Thanks & Regards
samHello Sam,
The Access Sequence Assigned to your New Condition types ie, ZSCT and ZSVT are same as the Previous Condition type ZVAT and ZCST.
After Adding new condition type in the Tax category in the Masters you have to take care of the Sequence of the Condition type.
If ZSCT and ZSVT is on the 3rd and 4th number in the masters the Condition table you are using in the access sequence should have fields Taxclassification3-Customer and taxclassification3- material. For ZSCT
Likewise Taxclassification4-Customer and taxclassification4- material. For ZSVT
Please add New Condition table in the access sequence with the required Field
And next when you are maintaining the condition record for say ZSCT you will have to maintain condition record for the condition table which has Taxclassification3-Customer and taxclassification3.
In Document the values will be flown correctly after changing this.
Hope I have Solved your Query.
If any Doubt please revert.
Regards,
Rohit Dongre -
Shipment cost for multiple condition type is not working
Dear Experts
I am doing inbound transportation,I have a freight condition, FRB1, and two fixed cost condition type ( ZX01 and ZX02).
I maintained 3 condition type under T_06, and created condition record.
Now when I am doing shipment costing system is taking the last assigned condition type relevant condition record value, however it is pulling the other two condition type in the pricing procedure and with information message.
Could some body suggest how to bring all 3 condition type value effective for shipment cost.
Thanks & Regards
SudhansuHi Durga,
Most importantly whenever we create a condition type with statistical check box it means that value will not be included in Net price calculation this is the only purpose of statistical check box.(Like any freight charges it will go to your stock a/c even though statistical check box is there in your Pricing procedure)
When you create condition type for any charges with Cond.category B Delivery costs and Accrual check box in M/06 by default it will go to stock account, but you can restrict that by using a functionality
Check this link for complete process
http://wiki.sdn.sap.com/wiki/display/ERPLO/PostingplanneddeliverycosttoNon-inventoryaccount -
Can we Exceucte campaign for multiple countries and Regions?
Hi Experts,
can we execute the campaign for multiple countries and Regiong at time? or
Aany standard functinality for this type of requirement?
thanks in advance,
Regards,
PrameelaWe don't support merging of multiple responses at this time. You could export your data and use an application like Excel to do this type of merging for you.
-
Non scrollable headers for multiple report regions on a page. Please help!!
Hi everyone,
I am having two report regions on my page and am trying to have the static/non scrollable headers for both the report regions. I followed on of the threads in the forum and was able get the static headers for one region, but am not able to for second region. I put my app on apex :
http://apex.oracle.com/pls/otn/f?p=38724:1:1083512384327081:::::
workspace:sk
username : guestdev
password :guestdev
Can anyone please help me? Appreciate your help.
regards,
Suma.Hello Suma,
The first parameter of the MakeStaticHeader() function is your table id, and it defines the "playground" of the function. If you want to apply static headers to two reports, you need to define two unique IDs, one for each report.
Change your SKstandard… report template, and define the table ID to be "table_grab1". Duplicate this template, and change the ID to be "table_grab2". Applied the templates to your reports, and use the correlated IDs as parameters to the MakeStaticHeader() function.
Regards,
Arie. -
Shipping cost not getting calculated in CRM IC webclient for a region
HI all,
I have an issue where when we create an order, the shipping cost is not getting calculated automatically.. and so we are having to manually enter the shipping cost..this is happening only for Apac regions. for all other regions it seems to be working. but the shipping cost is getting calculated in R/3. can anyone provide input for this?
Also, what factors determine the shipping cost?
Thank you,
Preethywhat price conditions determine your cost in R/3?
might be easier to use the CRM gui and create the order in crmd_order and look at the conditions. Unless you set it up there is no plant in CRM (just vendor) so if your cost is tied to your plant, I'm not sure how you would get this without a possible rfc call to R/3.
Maybe you are looking for
-
hi, I have this problem: I must install on a NT server , in 2 different volumes , 2 different oracle version. When i try to lunch the second listner service I got an error. How to solve this ?? Thanks for all.
-
I am looking to put together a HTPC and have a few questions about what i want to do. First this is the set up I am looking at buying. Mac Mini connected DVI to HDMI to a 46" Samsung TV. Mac Mini ethernet connection to TC. 2TB external HD connected t
-
So I have a question for this: I folowed this procedure, but when I'm trying to import the IOS from IMovies in my laptop I receive a message that states that the IMovie version installed doen't supports IOS files, although I have the last version ins
-
READER IX opening equipment PDF to perform an internal Word SEARCH. How is this done?
Using Reader IX to open a Service Manual and then a Word SEARCH. How is this done?
-
What is patches in oracle ?
Hai to all what is patches in Oracle ? suppose my siebel version is 8.1 something they mentioning in forums or somewhere else 8.1.1.1 or 8.2.1 what it means ... if sample version of siebel or any software can we install on top of base installation 8.