How to validate when navigating on next page in a Train
Dear All,
Use Case:
I have pages arranged in a Train.
Supposed in 1 page, I have this code.
<af:selectBooleanRadio text="Enter new transaction details"
label="" id="sbr2"
autoSubmit="true"
value="#{pageFlowScope.myBean.option}"/>
<af:panelFormLayout id="option" labelAlignment="start"
rendered="#{pageFlowScope.myBean.option}">
<af:inputText label="Transaction Date" id="it2"/>
<af:inputText label="Transaction Option" id="it3"/>
<af:inputText label="Confirmation Message" id="it7"/>
<f:facet name="footer"/>
</af:panelFormLayout>If the user selected the boolean radio, I will display the panelformlayout thru PPR.
Now, if the panelformlayout is displayed, user should at least enter one data on at least one
of the inputText. If not, a message is displayed when user navigates to the next page on the
train.
How to do this?
I cannot put a required property on all the input text because not all are required and only at least one input text should be filled up.
I wanted to fire up when user navigates the train button Previous or Next button.
JDEV 11G PS3
Thanks
one solution is to build your own Next button in the train and check the condition before you navigate to the next train stop. to navigate to the next train stop in the train check check [url http://www.oracle.com/technetwork/developer-tools/adf/learnmore/82-programmatically-navigate-trains-396873.pdf] How-to programmatically navigate ADF train models
another solution is to set the required property for your input texts as
<af:inputText label="Transaction Date" id="it2"/>
<af:inputText label="Transaction Option" id="it1" required="boolean radio is selected and it2 eq null and it3 eq null ...... and it7 is null"/>
<af:inputText label="Transaction Option" id="it2" required="boolean radio is selected and it1 eq null and it3 eq null ...... and it7 is null"/>
<af:inputText label="Transaction Option" id="it3" required="boolean radio is selected and it1 eq null and it2 eq null ...... and it7 is null"/>
<af:inputText label="Confirmation Message" id="it7" required"boolean radio is selected and it1 eq null and ...... it6 eq null"/>
Similar Messages
-
NPE error when navigating to next page based on lov selection
hi there am having problem whn navigating to next page based on lov selection,when i select value and click the button to navigate am geting NPE ERROR
{code}
<DCUtil> <findSpelObject> [598] DCUtil, returning:oracle.jbo.uicli.binding.JUFormBinding, for uam_view_pageDefs_SelectOrgPageDef_WEB_INF_Updatetaskflow_definition_xml_Updatetaskflow_definition
<DCIteratorBinding> <releaseDataInternal> [599] Releasing iterator binding:variables
<DCIteratorBinding> <releaseDataInternal> [600] Releasing iterator binding:UpdUamOrganisationLovIterator
<DCIteratorBinding> <releaseDataInternal> [601] Releasing iterator binding:UpdUamOrganisation1Iterator
<DCIteratorBinding> <releaseDataInternal> [602] Releasing iterator binding:UamUserdetailsViewVo1Iterator
<XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
javax.servlet.ServletException: java.lang.NullPointerException
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
... 38 more
Caused by: java.lang.NullPointerException
at showSelectedOrg(OrgDetails.java:2455)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
... 45 more
THIS IS THE LINE AM GETING THE ERROR
method.getParamsMap().put("rowKey", newVal);
<af:selectOneChoice value="#{bindings.Orgid1.inputValue}"
required="true"
id="soc1" autoSubmit="true" valuePassThru="true"
contentStyle="width:145px">
<f:selectItems value="#{bindings.Organisationid.items}" id="si1"/>
</af:selectOneChoice>
<af:commandButton text="UpdateOrganisation"
id="cb1"
action="#{pageFlowScope.addMember.showSelectedOrg}"/>
public String showSelectedOrg() {
/* if(getorgids() == null ||getorgids().equals(null)){
JSFUtils.addFacesErrorMessage("Select Atleast One Organisation");
JSFUtils.showFacesErrorMessage("Select Atleast One Organisation");
BindingContext lBindingContext = BindingContext.getCurrent();
BindingContainer bindings = lBindingContext.getCurrentBindingsEntry();
// get the list binding for the Organisation lov
JUCtrlListBinding list = (JUCtrlListBinding)bindings.get("Organisationid");
// get the selected index from the list which is stored in the Orgidd1 attribute
AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("Orgid1");
Integer selid = (Integer)attr.getInputValue();
// load the listdata
Object row = list.getDisplayData();
// get the selected row from the list
Row lFromList = (Row)list.getValueFromList(selid);
// from the row we get the PK the orgnasationId
Object lAttribute = lFromList.getAttribute("Organisationid");
Object orgname = lFromList.getAttribute("Organisationname");
Number newVal = (Number)lAttribute;
String neworg = (String)orgname;
_logger.info("Information: selected Organisation = " + newVal);
System.out.println("neworg " + newVal);
System.out.println("testorg " + neworg);
selectedState = neworg;
// get the MethodAction for setCurrentRowWithKeyValue
OperationBinding method = bindings.getOperationBinding("setCurrentRowWithKeyValue");
// set hte needed parameter as the organisation id
method.getParamsMap().put("rowKey", newVal);
method.execute();
// after execution check for errors
List errors = method.getErrors();
Exception ex = (Exception)errors.get(0);
FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, ex.getMessage(), "Select Atleast One Organisationtest");
FacesContext.getCurrentInstance().addMessage(null, msg);
// keep on page in case of an error
// navigate to the next page
return "show";
{code}
am in jdeveloper 11.1.1.6.0adf009, please read the post I posted the link to in my previous replay. The old code format tag don't work in the new forum!
Still the same error. The stack trace still points to it, you only need to read it carefulle
javax.faces.el.EvaluationException: java.lang.NullPointerException
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
Caused by: java.lang.NullPointerException
OrgDetails.showSelectedOrg(OrgDetails.java:2456)
The origin is
method.execute();
and the real reason is
MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51);
What does it tell you?
Timo -
SelectedItem return null when hit the NEXT page or Submit
Hello All,
I try to add the paging to the open source Alfresco content management. We need to process a large dataset (e.g. > 50K files) so after we gather a list of data files we display them with the checkbox and each checkbox has default checked status.
If the value="#{FixItemList.selectedItems} is omitted in the <h:selectManyCheckbox> then the paging is fine when hitting the NEXT page or Submit button. If we set the value in the selectManyCheckbox then it returns null for selectedItems.
Would please point out what I have done wrong? Appreciate for all yours helps.
This is the managed bean object.
public class ToolsContext
private FixItemList fixItemList;
private ToolsContext()
this.fixItemList = new FixItemList();
public void addFix(Fix fix) {
if(fix != null) {
fixItemList.addFixItem(new SelectItem(fix, fix.getPath(), fix.getDetails(), false));
fixItemList.addFixSelectedItems("" + fix + "");
public class FixItemList implements Serializable
private static final long serialVersionUID = 123784764562L;
private List<SelectItem> items;
private List<String> selectedItems;
private int displayItemPerPage;
public FixItemList() {
displayItemPerPage = 100;
items = new ArrayList<SelectItem>();
selectedItems = new ArrayList<String>();
public void setItems(List<SelectItem> items) {
this.items = items;
public List<SelectItem> getItems() {
return this.items;
public int getItemsSize() {
return this.items.size();
public int getDisplayItemPerPage() {
return this.displayItemPerPage;
public void setDisplayItemPerPage(int displayItemPerPage) {
this.displayItemPerPage = displayItemPerPage;
public void addFixItem(SelectItem selectItem) {
items.add(selectItem);
public List<String> getSelectedItems() {
return selectedItems;
public void setSelectedItems(List<String> selectedItems) {
this.selectedItems = selectedItems;
public void addFixSelectedItems(String selectedItem) {
selectedItems.add(selectedItem);
}My faces-config.xml
<managed-bean>
<description>
This bean is to display in the Web Project tool as the pagination. HOPEFULLY SO
</description>
<managed-bean-name>FixItemList</managed-bean-name>
<managed-bean-class>org.alfresco.module.websitetools.util.FixItemList</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>The JSP page.
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<%@ taglib uri="/WEB-INF/wcm.tld" prefix="w" %>
<w:avmList id="files-list" viewMode="details" pageSize="#{FixItemList.displayItemPerPage}" styleClass="recordSet"
headerStyleClass="recordSetHeader" rowStyleClass="recordSetRow" altRowStyleClass="recordSetRowAlt" width="100%"
value="#{FixItemList.items}" var="row">
<%-- checkbox column --%>
<a:column id="col1" primary="true" width="5" style="padding:2px;text-align:left">
<h:selectManyCheckbox id="wpt" value="#{FixItemList.selectedItems}">
<f:selectItem itemLabel="#{row.label}" itemValue="#{row.value}" />
</h:selectManyCheckbox>
</a:column>
<%-- file name column --%>
<a:column id="col2" primary="true" width="50%" style="padding:2px;text-align:left">
<h:outputText value="#{row.description}" />
</a:column>
<a:dataPager id="pager1" styleClass="pager" />
</w:avmList>When I hit the NEXT page the #FixItemList.selectedItem return null. We use myface version 1.1.5. And below is the stack error
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at javax.faces.component._SelectItemsIterator.hasNext(_SelectItemsIterator.java:73)
at javax.faces.component.UISelectMany.validateValue(UISelectMany.java:268)
at javax.faces.component.UIInput.validate(UIInput.java:354)
at javax.faces.component.UISelectMany.validate(UISelectMany.java:297)
at javax.faces.component.UIInput.processValidators(UIInput.java:184)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
at javax.faces.component.UIForm.processValidators(UIForm.java:73)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:149)
at org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.java:32)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:104)Appreciate for all yours helps,
AnhI put the print out statement in the _SelectItemsIterator and found out that the selected item's value doesn't binding. How would I be able to select an item? Attached is the code with debug print out in the SelectItemsIterator.
Would some one please point me a direction? Appreciate.
public boolean hasNext()
if(_nextItem != null)
return true;
if(_nestedItems != null)
if(_nestedItems.hasNext())
return true;
_nestedItems = null;
if(_childs.hasNext())
UIComponent child = (UIComponent)_childs.next();
getLogger().debug("-----_SelectItemsIterator---child is UIComponent---" + child.getChildCount());
getLogger().debug("-----_SelectItemsIterator---child is UIComponent---" + child.getAttributes());
Map m = child.getAttributes();
Set s = m.keySet();
Iterator i= s.iterator();
while (i.hasNext()) {
getLogger().debug("value = " + m.get(i.next()));
if(child instanceof UISelectItem)
UISelectItem uiSelectItem = (UISelectItem)child;
Object item = uiSelectItem.getValue();
getLogger().debug("-----_SelectItemsIterator---child is UISelectItem---getValue()--" + item);
if(item == null)
Object itemValue = ((UISelectItem)child).getItemValue();
String label = ((UISelectItem)child).getItemLabel();
String description = ((UISelectItem)child).getItemDescription();
boolean disabled = ((UISelectItem)child).isItemDisabled();
if(label == null)
label = itemValue.toString(); //////////////////////IT THROWS THE EXCEPTION HERE, BECAUSE THE
///itemValue is null
item = new SelectItem(itemValue, label, description, disabled);
getLogger().debug("-----_SelectItemsIterator---create item - label---" + label);
getLogger().debug("-----_SelectItemsIterator---create item - descp---" + description);
getLogger().debug("-----_SelectItemsIterator---create item - disable---" + disabled);
getLogger().debug("-----_SelectItemsIterator---create item - itemValue--" + itemValue);
} -
HOW CAN I DIRECTLY WRITE ON NEXT PAGE OF SAPSCRIPT
HI,
HOW CAN I DIRECTLY WRITE ON NEXT PAGE OF SAPSCRIPT.
I want to call certain fields on next page only is it possible?
How?
Regards
maveHi
You can use -
IF &PAGE& = 2. ENDIF.
But this will work only when you sapscript triggers two pages. Multiple pages can be triggered by main window if the window is filled up. Otherwise you can define two pages statically in your script .
Cheers. -
How to get data on the next page in case of templates if data is more ?
please tell me how to get data on the next page while i m using template in my first page , if data is more howw it can be displayed on the next page ?
HI Asim,
template is fixed we it can't be expand . u can better to use table line it can automaticlly expending if data is more ... u can create one more page like page 2 and create a window for entire second page ..then assign it in first page (next page page2).
regards
kiran kumar. -
How to move floats to the next page?
Hi All,
Can anyone help me on this?
How to move floats to the next page the same position?
Thanks in advance@Learner – you can duplicate the object to the next page and remove the original.
If the original one is anchored you also have to account for its position, because duplicating an anchored object will move it.
Here an example for duplicating a selected object to the same page.
//DuplicateAnchoredObject_SELECTION_SNIPPET.jsx
//Uwe Laubender
* @@@BUILDINFO@@@ DuplicateAnchoredObject_SELECTION_SNIPPET.jsx !Version! Fri Apr 12 2013 07:53:31 GMT+0200
var sel = app.selection[0];
var x = sel.geometricBounds[1];
var y = sel.geometricBounds[0];
//The duplicate() method without an optional argument:
var dup = sel.duplicate();
//NOW: the duplicated objects is at the inner border of the page
//To move it to its original position we need the following:
var xd = dup.geometricBounds[1];
var yd = dup.geometricBounds[0];
dup.move(undefined,[x-xd,y-yd]);
That snippet can be enhanced for duplicating to a certain page, because the duplicate() methods can take arguments like "Page", "Layer", "Spread" etc. For details see the DOM documentation at:
http://www.jongware.com/idjshelp.html
One caution here: to make that work the way you want with facing pages, you have to take into account, that your coordinate system must be changed to "per page" by the property "RulerOrigin" of the ViewPreferences.
This said, here is a working example for duplicating a selected object to page 3 of the current document:
//DuplicateAnchoredObject_TO-DIFFERENT-PAGE_SELECTION_SNIPPET.jsx
//Uwe Laubender
* @@@BUILDINFO@@@ DuplicateAnchoredObject_TO-DIFFERENT-PAGE_SELECTION_SNIPPET.jsx !Version! Tue May 14 2013 10:11:29 GMT+0200
var d=app.documents[0];
var oldRulerOrigin = d.viewPreferences.rulerOrigin;
var sel = app.selection[0];
var x = sel.geometricBounds[1];
var y = sel.geometricBounds[0];
//In case of facing pages we change the ruler origin:
d.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;
//Duplication of selected object:
var dup = sel.duplicate(d.pages[2]);
//NOW: the duplicated objects is at the inner border of the page
//To move it to its original position we need the following:
var xd = dup.geometricBounds[1];
var yd = dup.geometricBounds[0];
dup.move(undefined,[x-xd,y-yd]);
//Restore the original ruler origin:
d.viewPreferences.rulerOrigin = oldRulerOrigin;
Of course, thiese snippets are working also with not anchored objects…
Uwe -
HT4400 how do you advance to the next page with focus 40 blue
how do you advance to the next page with focus 40 blue
Hello,
To place your own images for previous and next button you need to use the fill feature. Please check the steps below:
1. Go SlideShow options and Uncheck Edit Together.
2. Select the next button and click on Fill to open Fill panel.
3. Click On Add Image and select the image you want to use. Also select the fitting type as "Scale to Fill" or "scale to Fit "and Position as "Center".
4. Do the same for previous button.
Regards
Vivek -
How to get the page number when click the(Next page) Icon on Tableview
Hi all,
I had implemented a tableview in one of the Views that I had implemented for a BSP application. I am using MVC framework.
Let us assume when we execute the BSP and a table view got 11 pages.
How I can keep track of the page number when we click the (Next page, Previous page, Bottom , Top) Icons on my tableview . Is there any attribute willstore that corresponding page number of the tableview when we click the corresponding Icon's??
I had checked both CL_HTMLB_TABLEVIEW and CL_HTMLB_EVENT_TABLEVIEW Classes and i don't find any attribute.
Any help will be appreciated.
Thanks in advance.
Thanks,
GreetsonHi Greetson,
I was thinking to write a weblog about that.
But now I would like to have your opinion:
I coded a generic method in my main controller (but you could also insert it in the application class) that save the firstvisible row in the class me->firstvisiblerowlist (that is a table)
DATA: l_firstvisiblerowlist TYPE zmmsp_tableview_1st_visi_row.
DATA: ff TYPE ihttpnvp,
ffs TYPE tihttpnvp.
me->request->get_form_fields( CHANGING fields = ffs ).
LOOP AT ffs INTO ff.
IF ff-name CP 'f*visiblefirstrow'.
READ TABLE me->firstvisiblerowlist INTO l_firstvisiblerowlist WITH KEY name = ff-name.
CASE sy-subrc.
WHEN 0.
l_firstvisiblerowlist-name = ff-name.
l_firstvisiblerowlist-value = ff-value.
MODIFY me->firstvisiblerowlist FROM l_firstvisiblerowlist INDEX sy-tabix.
WHEN 4.
IF sy-tabix = 0.
l_firstvisiblerowlist-name = ff-name.
l_firstvisiblerowlist-value = ff-value.
APPEND l_firstvisiblerowlist TO me->firstvisiblerowlist.
ELSE.
l_firstvisiblerowlist-name = ff-name.
l_firstvisiblerowlist-value = ff-value.
INSERT l_firstvisiblerowlist INTO me->firstvisiblerowlist INDEX sy-tabix.
ENDIF.
WHEN 8.
l_firstvisiblerowlist-name = ff-name.
l_firstvisiblerowlist-value = ff-value.
APPEND l_firstvisiblerowlist TO me->firstvisiblerowlist.
ENDCASE.
ENDIF.
ENDLOOP.
Than you have to provide a generic method to read the firstvisiblerow for each tableview
GET_FIRSTVISIBLEROW
*IM_TABLENAME
*RE_VALUE
DATA: l_firstvisiblerow TYPE zmmsp_tableview_1st_visi_row.
READ TABLE me->firstvisiblerowlist INTO l_firstvisiblerow WITH KEY name = im_tablename.
IF sy-subrc = 0.
re_value = l_firstvisiblerow-value.
ELSE.
re_value = 1.
ENDIF.
And in the DO_REQUSET of each controller you could write something like:
* Paginator
DATA: l_tab1_visiblefirstrow TYPE sytabix.
l_tab1_visiblefirstrow = o_bsp_main->get_firstvisiblerow( 'f019id_tab1_visiblefirstrow' ).
As usual pass the value to the view via:
o_page->set_attribute( name = 'tab1visiblefirstrow' value = l_tab1_visiblefirstrow ).
Did you get it? -
How to show excessive values in next page in SAP SCRIPT
Hello,
Please any one can help to show excessive values in next page .
For example i want to show
567
5678
789
23456
I want to show values 23456 in next page only.
Can anyone please suggest me how to do so?
Thanks and regards
MaveHi Swetlin,
I have this format in the main window.
textaaaaaaaaaaaaaaaaa
textfffffffffffffff
123
1234
1234
5667
1234
textweeeeeeeeeeeeeeeeeeeeee
texttryrtyrtuyrturtur
now when i am doing as you suggested
the last texts are coming in the next page.
What i want is to show overflow of numeric data in next page and the remaining last text should remain as it is in the first page only.
i mean
textaaaaaaaaaaaaaaaaa
textfffffffffffffff
123
1234
1234
5667
1234
textweeeeeeeeeeeeeeeeeeeeee
texttryrtyrtuyrturtur
and in the next page
4567
4568
8790
Thanks and regards
Mave -
SAPSCRIPT how to place item header on next page
Hi Guys
The situation iam facing is this
outside the loop i have printed the item header then iam looping on an internal table which is printing all the items.
When the o/p is one page this works fine but when the o/p is more than one page the item header on the next page dosent get printed because its outside the loop.
somewhat like this
perform print_header.
loop at itab.
perform print_item.
endloop.
Question is how can i place the item header text element in my sapscript so that it prints automatically before the start of the items on every page?
ThanksUse the following in Text Editor on Script form.
:/ TOP
Print the Item header.
:/ENDTOP.
Or.
Use a variable window. To print the header
So it will come for every new Page.
Or.
Define &CURRENT PAGE&
IF &PAGE& NE &CURRENT PAGE&
PRINT HEADER
ENDIF
&CURRENT PAGE& = &PAGE&
Hope this resolves your issue.
Regards,
Gurpreet -
Scroll to bookmark when navigating back to page
Hello all,
I have page 100 that is long. I've scrolled down and clicked on a search button that takes be to page 200. When I navigate back to page 100 I'd like it to return to the same scroll position where I was before.
Does anyone know how to do this? I've got a few thoughts, but I'm hoping for an elegant approach that is easy to duplicate on other pages.
Thanks,
Michael Cunningham1. Create a named anchor where you want to return back.
clicked on a search button that takes be to page 200. 2. Have the button set a hidden item to this named anchor
When I navigate back to page 100 3. Depending on how you are navigating back to page 100, stick the named anchor at the end of the URL f?p=&APP_ID.:100.:&SESSION.::::::#&P100_ANCHOR. -
How to print contionus data in next page
Hi! All
I'm displaying data using classic list display.
my requirement is if my total no. of records is 10 need to display first 5 records in 1st page and the next 5 in next page along with these records i'm displaying other details which are like header details for the document. thus while printing next 5 records in next page need to print along with those hedar details .
how to print it.
Regards
Kvhiiii Kv
the complete information on printing ALVs has been given in the following ...link
go through it
http://help.sap.com/saphelp_sm32/helpdata/en/a6/6dee408a63732ae10000000a155106/content.htm -
Smartform : line type not working fine when used on Next page
Hi ,
Please help on below :
I have a smartform and have line type which is used in printing the items.
When I use this line type on very first page , it works fine.
But for the next page which is the exact copy of first page ,
the line type does not work fine with printing first line item on next page,
it refreshed the work area which i am printing. so on the next page very first element gets all the values 000
But on the next iteration it works fine and does not refresh work area.
Please see why is such abnormal behavior happening.
Regards,
Uma DaveHi Ameya
there might be syntax error. Try to get what exaclty is an error using following code.
CALL FUNCTION <smartform>
EXCEPTIONS
IF SY-SUBRC 0.
CALL FUNCTION 'SSF_READ_ERRORS'
IMPORTING
ERRORTAB = IT_ERRORLIST.
ENDIF.
In IT_ERRORLIST you will get error message.
Regards
Sachin G Patil -
AllinOne.js[dynamic] error while zooming and navigating to next page
hi..
i'm using crystal report 13 and vs2010 in 32 bit OS
reports are working fine but when i click to next page
or zoom or find a word then
the allinOne.js[dynamic] file opens
and shows the below error..
Microsoft JScript runtime error: 'children.length' is null or not an object
and the following is error in file
A=G.children.length; it is showing A is undefined.
what to do .. i dont know i'm confused..I think we have the same or a similar problem. We converted
our solution from Crystal Reports XI to Crystal Reports VS2010. To view the report
we use the CrystalReportViewer on a web form (aspx file with code behind).
Everything (except the known issue with the blank viewer on first use) is ok
with IE9 but with IE7 and IE8 export and zoom are not working. When I click on
zoom e.g. 125% the internet tools shows SCRIPT1032: Invalid Character, if I
click on export it is not possible to select an export file format other than
the selected one internet tools show errors SCRIPT13: Type Mismatch ‘return’
and SCRIPT1032: Invalid Character.
Problems with Zoom and Export
Error on zoom
Error on export
We need at least IE8 support for Windows XP, our software only supports Internet Explorer, so other browsers are no alternative.
Any help regarding these issues is really appreciated. -
BIP Template - How to display form field on next page?
I have a BIP word template with the below form-fields. How do I display the fk_job_title and p_grade on the next page if it continues on next page (same class title)?
** form fields **
CLASS TITLE: F fk_job_title PAY GRADE: p_grade
JOB CODE: job_code SALARY RANGE: s1 - s2
LOCATION OF WORK: work_location
GENERAL DESCRIPTION: general_descr
ESSENTIAL WORK TASKS: work_task
KNOWLEDGE, SKILLS, AND ABILITIES: knowledge_skill
EDUCATIONAL AND EXPERIENCE: education_exp
SUBSTITUTIONS: sub
CERTIFICATIONS/LICENSES: certification_license
OTHER JOB ASPECTS: job_aspect E
PB
Thank you so much,
MTHi ,
For the Header on each page...
http://blogs.oracle.com/xmlpublisher/2010/04/repeat_row_headers_after_page.html
Number of rows restriction
http://bipublisher.blogspot.com/2009/06/bi-publisher-conditionally-limiting.html
Hope this might helpful for you.
Thanks,
Ananth
http://bintelligencegroup.wordpress.com/
Maybe you are looking for
-
Can I access videos on my nas through Apple TV without a computer
I am a dj so I'm away from home a lot in the evenings with my Macbook Pro. However this is also our family computer. I have just purchased an Apple TV so that my kids can watch movies. Just starting renting/buying movies from itunes. We have a bu
-
I have a Mac book pro ( 7,1 version ) bought in the US and want to see some videos, pictures and movies on a Sony TV with HDMI connection (in Europe). When connecting both the pc and the tv, I get on the tv the opening screen of a mac book pro but a
-
Max number of viewers for different types of Flash Media instances
I'm looking here, under pricing: http://www.adobe.com/products/flashmediaserver/amazonwebservices/ For each type of instance, it lists the "Simultaneous connections". If the instance I want lists "1000 RTMFP", does that mean that I can only have a ma
-
How to use a nice format for email [From]
hi there, Does anyone know how to use a nice format for email? Currently my Auto-System sends an email to the client with the account name ([email protected]) and I want to change it to a nice format such as 'Auto-Response' anyone? Ppr
-
"Sync Services" try again later---what's that?
I've gotten this message a few times. I had purchased a 32g Touch for my daughter as a graduation from MS present. When I connect it to my laptop, it says it's syncing, then I get an error message saying that it couldn't relay data from "sync service