Hide subtotal based on the values not the field.
Hi,
i am developing an ALV(FM) report to display the status of the Sale order (cleared and not cleared). my need in this is
1. i need to show the subtotal of the cleared sales orders values only and hide the not cleared SO values.
2. while sorting by status, i want to show the status for each rows rather than displaying on the whole.
please provide me some hints for this.
thanks in advance.
Hi,
Have you appended the fields to sort table like this:
it_sort-fieldname = 'Item Field'.
IT_SORT-TABNAME = 'GI_FINAL'.
IT-SORT-SPOS = '2'.
IT_SORT-SUBTOT = 'X'.
IT-SORT-UP = 'X'.
APPEND IT-SORT.
it_sort-fieldname = "Header Field'.
IT_SORT-TABNAME = 'GI_FINAL'.
IT-SORT-SPOS = '1'.
IT_SORT-SUBTOT = 'X'.
IT-SORT-UP = 'X'.
APPEND IT-SORT.
HERE SPOS IS SORTING POSITION...
LIKE IN YOUR ITAB..
SORT ITAB BY Header-field and Item-field.
THE PREFERENCE OF SORTING....
Regards,
Kumar.
Similar Messages
-
Setting default value for a jcombobox based on the value not the index
I am trying to set the default value for my combobox to the current year. One way I thought of doing it was to get the index of the value representing the current year and then use setSelectedInex to make it the default. Any ideas?
The relevent section of code is below.
GregorianCalendar gregorianCalendar = new GregorianCalendar();
int year = gregorianCalendar.get(Calendar.YEAR);
String currentyear = year + "";
int startyears = 2000;
int numyears = 25;
JComboBox endyearcombobox = new JComboBox();
endyearcombobox.setBorder( BorderFactory.createLineBorder(Color.DARK_GRAY));
endyearcombobox.setFont(standardfont);
endyearcombobox.addActionListener( new ActionListener() {
public void actionPerformed( ActionEvent event ) {
endyearcombobox = ( JComboBox )event.getSource();
endyear = endyearcombobox.getSelectedItem();
boolean same = endyear.equals(oldItem);
oldItem = endyear;
String[] endyearlist = new String[numyears];
for(int i = startyears; i < startyears+numyears; i++){
String item = new Integer(i).toString();
endyearcombobox.addItem(item);
Thanks
GedThanks mate,
That was what I was looking for. I still had a little more manipulation to do, but sent me on the right track and have got it working now. I don't know why I didn't think of it in the first place.
Ged -
I am using a combo box as a select list for text serial commands. I have items like "engineering", "GUI", and "Scan" for the commands "MDE", "MDN", and MDS respectively which i have input as the corresponding value in the combo box. so for example the label "engineering" has the value "MDE" in the combo box items list. when the Vi starts it needs to read the current value MDE, MDN, or MDS and then i want it to display on the front panel the item text corresponding to that command value.
To do this i have tried to read the serial command, ie MDS and then wire that to a "value" property of a property node of the combo-box, but instead of displaying the corresponding item label, "Scan", it displays the value "MDS" on the front panel instead. i want the front panel to use the label text when choosing and displaying but the block diagram to use the serial commands. Can this be done with a combo box? I'm trying to use a combo box so i can keep it all text and avoid having to build a case statement to convert enums or rings from a numerical value to the text command.
The correct text value is wired to the value property and it does exist in the combo-box. I have unchecked "values match items" and selected to not allow undefined values.Don't use the value property node. Use the Text.Text property node. When creating the property node, select Text, then in the next pop-up box, select Text.
- tbob
Inventor of the WORM Global -
Have cell equal the value not the formula
Hi there, I have the below formula which calculates the check digit on a UPC from another cell. Is it possible to have a cell reference this formula, without showing the formula, and only show the answer? IE. I only want the result in the cell as though
it was keyed in there manually, as I want to be able to double click and copy the actual number. Thank you for any help.
=A41000&RIGHT(10-MOD(SUMPRODUCT(MID(A41000,{1,2,3,4,5,6,7,8,9,10,11},1)*{3,1,3,1,3,1,3,1,3,1,3}),10))Hi Jim,
Thank you for the reply.
Do I just put this number in VB on the corresponding tab and it should work? I'm not sure how to get it to work.
Also, in case I need to give more info, the column on the left is the number without the check digit, the number on the right is the cell with the check digit produced by the formula. As I go down the list, I go to the next row when needed
using the corner of the cell (fill). Hopefully I can get it so that the column on the right is not the formula, rather the actual value.
12345654329
123456543294
12345654330
123456543300
12345654331
123456543317
12345654332
123456543324
12345654333
123456543331
12345654334
123456543348
12345654335
123456543355
12345654336
12345654337
12345654338
12345654339
12345654340 -
I'm using Javascript to set the actions. I need to hide a text field if the value of a field in another sub-form is null.
- tried checking the value of the other field for null - doesn't work
- tried setting a variable str2 where I know the value of the other field is available then checking that variable when I initialize the text field - doesn't work
What am I missing?Hi.
Try this in the originating sub form referring to the text field (X).
if (this.rawValue = 1)
X.presence = "visible";
else if (this.rawValue = null)
X.presence = "hidden"; -
Setting the value of a field based on a dropdown list
I am using the latest production release of JHeadstart 10.1.3.0.91. I am trying to set the value of a field based on selecting the value of another field (drop down list). The drop down list field has the following attributes set autoSubmit="true" immediate="true" valueChangeListener="#{jhsPageLifecycle.updateModelValue}".
The other field has the partialtrigger set to the first field. ie "depends on" selection from JHeadStart file. The value of the second field is set in the setter of the VO RowImpl java file.
The value of that field is only populated on the screen if it is set to disabled="true". This seems a bit bizzare behaviour. Can you explain why it cannot set the value of the field when it is not disabled.Worked out that if i set the "Clear/Refresh value" attribute on the field that i want updated then it will work ok
Alan -
Not able to get the value in the next page
Hi,
I am newbee for JSF and this question may sound silly. I tried to search through this
forum, google....but did not find a solution....I hope some one here could please help
me :-(
I have Page1 and Page2. Page1 has a h:inputText field and a submit button.
On click of the "Submit" button in Page1, I have to pass this text value entered by
the user to Page2. In Page2, I have <h:inputText readonly="true" /> field,
which will display the value that the user entered in Page1. Also, Page2 has a "Submit"
button. On click of Page2.Submit button, the value displayed in the Page2.textfield
is not getting populated to the Page2 bean attribute.
Here are the code that I am using
1. Page1:
<f:view>
<h:form id="Page1">
<h:inputText id="primaryKey" required="true" value="#{Page1.primaryKey}" />
<h:commandButton id="command" value="Submit" action="Page1"/>
</h:form>
</f:view>
2. Page2:
<f:view>
<h:form id="Page2">
// Yes, Value attribute points to Page1.primaryKey to display user entered value in this page.
<h:inputText id="test" value="#{Page1.primaryKey}" readonly="true" />
<h:commandButton id="command" value="Submit" action="#{Page2.save()}"/>
</h:form>
</f:view>
3. faces-config.xml
<navigation-rule>
<from-view-id>/Page1.jsp</from-view-id>
<navigation-case>
<from-outcome>Page1</from-outcome>
<to-view-id>/Page2.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>Page1</managed-bean-name>
<managed-bean-class>com.Page1Bean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/Page2.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/success.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>Page2</managed-bean-name>
<managed-bean-class>com.Page2Bean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
4. com.Page1Bean.java
public class Page1Bean {
private String primaryKey;
//getter and setter method below
5. com.Page2Bean.java
public class Page2Bean {
private String test;
//getter and setter method below
public String save() {
Now let me explain my issue, I enter a value in Page1 -> click on submit -> I see this value in the text field of
Page2. But when I click on submit button of Page2, test attribute is still null. Could you please suggest me what
am I suppose to do inorder to get this value in Page2Bean when I click on save button?
Hope to listen from one of you,
Thank you,
VinodRamuGo here
http://jsffaq.com/
Many of your questions will be answered -
Not Updating the Values in the JComboBox and JTable
Hi Friends
In my program i hava Two JComboBox and One JTable. I Update the ComboBox with different field on A Table. and then Display a list of record in the JTable.
It is Displaying the Values in the Begining But when i try to Select the Next Item in the ComboBox it is not Updating the Records Eeither to JComboBox or JTable.
MY CODE is this
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.DefaultComboBoxModel.*;
import javax.swing.table.*;
import java.sql.*;
import java.util.*;
public class SearchBook extends JDialog implements ActionListener
private JComboBox comboCategory,comboAuthor;
private JSplitPane splitpane;
private JTable table;
private JToolBar toolBar;
private JButton btnclose, btncancel;
private JPanel panel1,panel2,panel3,panel4;
private JLabel lblCategory,lblAuthor;
private Container c;
//DefaultTableModel model;
Statement st;
ResultSet rs;
Vector v = new Vector();
public SearchBook (Connection con)
// Property for JDialog
setTitle("Search Books");
setLocation(40,110);
setModal(true);
setSize(750,450);
// Creating ToolBar Button
btnclose = new JButton(new ImageIcon("Images/export.gif"));
btnclose.addActionListener(this);
// Creating Tool Bar
toolBar = new JToolBar();
toolBar.add(btnclose);
try
st=con.createStatement();
rs =st.executeQuery("SELECT BCat from Books Group By Books.BCat");
while(rs.next())
v.add(rs.getString(1));
catch(SQLException ex)
System.out.println("Error");
panel1= new JPanel();
panel1.setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.fill = GridBagConstraints.HORIZONTAL;
lblCategory = new JLabel("Category:");
lblCategory.setHorizontalAlignment (JTextField.CENTER);
c.gridx=2;
c.gridy=2;
panel1.add(lblCategory,c);
comboCategory = new JComboBox(v);
comboCategory.addActionListener(this);
c.ipadx=20;
c.gridx=3;
c.gridwidth=1;
c.gridy=2;
panel1.add(comboCategory,c);
lblAuthor = new JLabel("Author/Publisher:");
c.gridwidth=2;
c.gridx=1;
c.gridy=4;
panel1.add(lblAuthor,c);
lblAuthor.setHorizontalAlignment (JTextField.LEFT);
comboAuthor = new JComboBox();
comboAuthor.addActionListener(this);
c.insets= new Insets(20,0,0,0);
c.ipadx=20;
c.gridx=3;
c.gridy=4;
panel1.add(comboAuthor,c);
comboAuthor.setBounds (125, 165, 175, 25);
table = new JTable();
JScrollPane scrollpane = new JScrollPane(table);
//panel2 = new JPanel();
//panel2.add(scrollpane);
splitpane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,panel1,scrollpane);
splitpane.setDividerSize(15);
splitpane.setDividerLocation(190);
getContentPane().add(toolBar,BorderLayout.NORTH);
getContentPane().add(splitpane);
public void actionPerformed(ActionEvent ae)
Object obj= ae.getSource();
if(obj==comboCategory)
String selecteditem = (String)comboCategory.getSelectedItem();
displayAuthor(selecteditem);
System.out.println("Selected Item"+selecteditem);
else if(obj==btnclose)
setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
else if(obj==comboAuthor)
String selecteditem1 = (String)comboAuthor.getSelectedItem();
displayavailablity(selecteditem1);
//System.out.println("Selected Item"+selecteditem1);
System.out.println("Selected Author"+selecteditem1);
private void displayAuthor(String selecteditem)
try
{ Vector data = new Vector();
rs= st.executeQuery("SELECT BAuthorandPublisher FROM Books where BCat='" + selecteditem + "' Group By Books.BAuthorandPublisher");
System.out.println("Executing");
while(rs.next())
data.add(rs.getString(1));
//((DefaultComboBoxModel)comboAuthor.getModel()).setVectorData(data);
comboAuthor.setModel(new DefaultComboBoxModel(data));
catch(SQLException ex)
System.out.println("ERROR");
private void displayavailablity(String selecteditem1)
try
Vector columnNames = new Vector();
Vector data1 = new Vector();
rs= st.executeQuery("SELECT * FROM Books where BAuthorandPublisher='" + selecteditem1 +"'");
ResultSetMetaData md= rs.getMetaData();
int columns =md.getColumnCount();
String booktblheading[]={"Book ID","Book NAME","BOOK AUTHOR/PUBLISHER","REFRENCE","CATEGORY"};
for(int i=1; i<= booktblheading.length;i++)
columnNames.addElement(booktblheading[i-1]);
while(rs.next())
Vector row = new Vector(columns);
for(int i=1;i<=columns;i++)
row.addElement(rs.getObject(i));
data1.addElement(row);
//System.out.println("data is:"+data);
((DefaultTableModel)table.getModel()).setDataVector(data1,columnNames);
//DefaultTableModel model = new DefaultTableModel(data1,columnNames);
//table.setModel(model);
rs.close();
st.close();
catch(SQLException ex)
}Please check my code and give me some Better Solution
Thank youYou already have a posting on this topic:
http://forum.java.sun.com/thread.jspa?threadID=5143235 -
Not able to view the values on the report viewed using Query Report Viewer
Hi all,
There seems to be some unknown problem with the Report Template I have prepared and uploaded on PIA XML Publisher. When I run it with some ID set, it doesn't seem to show the values from the Data I give. For example if I have a field called ChartField in my report Template, It doesn't seem to get populated when I do SetID.
Why is it so?Hi all,
select bdmng from resb into corresponding fields of table it_stpo2
for all entries in it_stpo
where matnr = it_stpo-idnrk
and xloek ne 'X'.
loop at it_stpo2.
move-corresponding it_stpo2 to it_stpo.
append it_stpo.
endloop.
In the above code, m able to fetch the records in the table it_stpo2. but the data is not gettin populated in the final internal table it_stpo. Both the internal tables it_stpo & it_stpo2 are same.
The data is gettin moved from it_stpo2 to it_stpo but only upto the header level. its not gettin appended in the table it_stpo even after using append stmt.
Plz help me to resolve this issue. its urgent.
Rgds,
Purva -
Filters 'OR' function not passing the values to the sql
Hi,
I am facing an issue with the 'OR' function on the filters that are used in the reports.
The report needs to fetch all the records on the three tables as the user enters the value in the dashboard prompts.
eg: [ update_dt_A1 is prompted
and user_name_A1 is prompted ]
or
[ update_dt_B1 is prompted
and user_name_B1 is prompted ]
or
[ update_dt_C1 is prompted
and user_name_C1 is prompted ]
The values entered in the dashboard prompt gets passed to the filter, but the vaules are not passed over to the SQL that runs on the database, hence the reports shows all values and does not reflect the values entered.
When the 'OR' function is replaced with 'AND' the values get passed to the SQL.
Can anyone help on what is the issue on the filters?
ThanksHere is how my Filters are set up
Vendor Name is Prompted
AND
Vendor Number is Prompted
AND
[ [Last_update_date_Vendor is prompted
AND
User_name_Vendor is prompted]
OR
[Last_update_date_Site is prompted
AND
User_name_Site is prompted]
OR
[Last_update_date_Bank is prompted
AND
User_name_Bank is prompted]
The values from the dashboard prompts gets passed to the filter, but the sql that runs does not take the values in the where clause. -
After download itunes installation began in windowx xp near the end of the installation the message says: it was not possible to write the value to the key Software / Classes / .mpg / OpenWithList / iTunes / .exe.
Already reinstalled 3 times and always says the same message.
thank youOnly two had virus on windows XP this week and wiped them with Avast. The itunes asked me to install the update, and so I did. but it always gives me that message.
-
Hi ,
We have enabled context sensitive DFF in Bank Branch Page for HZ_PARTIES DFF , We have created Flex Map so that only bank branch context fields are only displayed in the bank branch page and as we know party information DFF is shared by supplier and Customer Page so we dint want to see any Bank Branch fields or context information in those pages.
We have achieved the requirement but when open existing branches bank branch update is throwing below error message :
"The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assistance."
this error is thrown only when we open existing branches, if we save existing branch and open then it is not throwing any error message.
Please let us know reason behind this error message.
Thanks,
MrudualaYou are kidding? It took me about 3 minutes to scroll down on my tab to get to the triplex button!
Habe you read the error message?
Quote:
java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
Check the trigger and it should work again.
Timo -
Issue : In sharepoint 2013, I am experiening below error while using filter in the list view due to the number of items in this list exceeds the list view threshold, which is 10000 items. Tasks that cause excessive server load (such as those
involving all list items) are currently prohibited.
Error :cannot show the value of the filter.The Field may not be filterable or the number of items returned exceeds the list view threshold enforced by administrator
Could you please suggest a way to avoid this issue apart from incrementing the list view threshold limit .
PrashanthReorganizing content, or creating more specific views. sharepoint is warning you that the content is structured in such a way that it can cause performance issues, which should be addressed in some way.
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com -
Dropdown List binding from web-service storing the reference not the value
Hi,
In my human task form, I have a dropdown field who's value list has to be derived from a web-service exposing a table holding the list of values.
It works perfectly fine for the end-user, as in when a user selects a value, say 'XYZ' in step-1 the next user in step-2 is able to see the value as 'XYZ'.
However, when I check the payload of the the composite instance in enterprise manager after the instance has left step-1, I do not see the value 'XYZ' in the payload XML; instead I see a string oracle.jbo.Key[2 0 ]. It seems like BPM is storing some sort of a reference to that value that it resolves at run-time thus displaying 'XYZ'. As the user changes the value from the list, the array seem to be changing like [3 0],[1 0],etc.
Is this how it is expected to behave ? Doesn't seem to be right to me as for all other fields it promptly stores the actual value in the payload and not any sort of reference
Here's what I did:
1. Added a Data Control of type web-service and provided the wsdl link for the same. The wizard asks for the operations which in my case is a simple 'select'
2. From the data control corresponding to the human-task data model, I dragged the field and selected Single Choice>ADF Select One Choice control
3. Edit binding page opens where the data-control of the web-service is enabled and has the option for providing the input for the web-service
4. Click ok and the next screen displays 'edit list binding' for the field dragged from the human task payload. Here I add the data control's output object (iterator). Then I provide the data mapping where I define the ID field identifying the value user would select. The display attribute has description of the id.
Regards,
Sudripta
Edited by: Sudripta on Apr 2, 2013 8:44 PMTry this -
http://adfwithejb.blogspot.com/2012/03/how-to-programmatically-create-select.html -
Cascading LOV does not work when setting the value of the parent LOV with DA
Hello All,
Using APEX 4.2.2.
I have tow LOVs
Parent LOV item is: P50_TYPE
Child LOV item is : P50_PROJECT_ID
In other words in the attributes of the item P50_PROJECT_ID we have :
> Cascading LOV Parent Item(s): P50_TYPE
> Page Items to Submit: P50_TYPE
> List of values definition: something similar to:
Select * from mytable where type = :P50_TYPE
I use DA that execute JS code to set the value of the P50_TYPE item
something similar to:
> $('#P50_TYPE').val(2);
Having done this, the P50_PROJECT_ID item does not get refreshed, when the value of P50_TYPE is changed. Namely, P50_PROJECT_ID remains empty, unless end user manually changes the value of P50_TYPE.
Any help please ?
Regards,Thanks Scott,
By the way, I remember reading a thread posted by you about Sumneva Drag & Drop Report Region plugin that was answered by Tom . But, I cannot find this plugin anywhere. Does not it supported in APEX 4.2 ? Is there any alternative out there ?
If you use it, and it works find with you, can you please send it to me on [email protected] ?
Regards,
Fateh
Maybe you are looking for
-
On how many computers can I use Creative Cloud simultaneously?
I have for instance a computer downstairs, and one on the 1st floor. Is it possible to run Lightroom on both computers at the same time? (I use it upstairs, and my mother downstairs)
-
Iweb SEO tool not updating website
I've figured out how to use Rages iweb seo tool however, it's not showing up on the web. Why not? It still shows the old "welcome" as my page title or "about us" as my page title. I can see the information I put into the tool and I've clicked "apply.
-
Trouble with playing movie clips
PLEASE can someone help? I have just imported video footage from my old Sony Handycam and all that appears on the event library is single grey squares...clips? It takes forever for the beachball to stop whizzing - don't understand it. It tried to w
-
About:blank issue causing Flash update to crash my IE9
I don't understand your interface - I have asked this question three times now. Anyway, I need to know what to do ASAP. After updating Flash, as your window asked me to, it's now crashing IE9 and says something about the 'about:blank' causing some
-
External monitor for Retina Macbook Pro
Hello,i want to buy an external monitor for my late 2013 rMBP.I tried two models (Dell U2414H and LG 23MPQ65-P),none of them worked perfectly.On both monitors colors were washed, without contrast, the font was blurry.So i decided to return the monito