Hiding a column in smartform
Hi,
We have a requirement where we should be able to hide columns in smarforms based on input from webdynpro.
We can pass info as to which column is to be hidden. But we do not want blank columns in between.Columns are separated by lines.
Please help as to what is the best way to achieve this.
Thanks and Regards
NM
hi nithya
could you please refer
Hiding column in table in smartform
and
Hide table columns in smart form?
these are the only two ways of achieving what you have set out for
hope this helps ....
Regards
Manthan.
Similar Messages
-
Problem with dynamic columns in smartforms.
Dear SDN Experts,
I have a requirement in smartforms for dynamic columns.
i have used template with 10 columns, So from these 10 columns,Columns may vary monthly MIN 2 to MAX 10 depending on
readings with them for that month.
i cannot fix column headings also,Because headings also changes dynamically.
So Problem is if there is no data in columns,Columns is displayng empty.
For EX: In this month i have 2 columns data remaining all columns is displaying empty boxes.
Please suggest me a solution is this posible in smartforms if i use table also.
<removed by moderator>
Regrds,
MNR
Edited by: Thomas Zloch on Sep 11, 2011 3:50 PMHi friend,
See the link below it is having the solution of hiding the columns in smart forms
Hide table columns in smart form?
Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
I think this will solve your issue if you still have queries please revert back to me i will help you.
Thanks,
Sri Hari -
Hiding Table Columns with the Spry Element Selector
I am trying to set up a toggle button that will show/hide
rows >1 when clicked. I've used Adobe's
"Hiding
Table Columns with the Spry Element Selector" example and it
worked fine with an HTML list, until I linked to actual XML data.
Now it works in reverse. What gives?
Here's the example:
http://a44.awardspace.com/testing/toggleShowHideRows.htmThat's what I started with. Same result:
http://a44.awardspace.com/testing/toggleShowHideRows.htm -
Hiding a column in the ALV in a webdynpro component(standrad one)
Hi,
i have an requirement of hiding a column inside a ALV output of a web dynpro component which is a standrad one. please help me finding the way to do the same.
thanks,
selvakumar M.data: l_ref_usage type ref to if_wd_component_usage.
l_ref_usage = wd_this->wd_CpUse_Alv( ).
if l_ref_usage->has_active_component( ) = abap_false.
l_ref_usage->create_component( ).
endif.
DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
l_ref_INTERFACECONTROLLER = wd_This->wd_CpIfc_Alv( ).
data:
l_VALUE type ref to Cl_Salv_Wd_Config_Table.
l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model(
data: lr_column type ref to CL_SALV_WD_COLUMN.
lr_column =
l_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'CARRID' ).
lr_column->set_visible( CL_WD_UIELEMENT=>E_VISIBLE-NONE ).
Abhi -
Hiding the column data. What is the point of DBMS_CRYPTO package?
DB version:10g R2
A requirement has come where we need to hide some columns' data from end users.
Trasparent Data Encryption feature wouldn't do the trick as it encrypts the data only at the storage level not at user level.
I've seen PL/SQL codes using DBMS_CRYPTO which encrypts and decrypts input strings like the code mentioned in
Re: Need some hints on using dbms_crypto
What is point of these PL/SQL codes?
They can only be used to create functions which will be called in VIEWS. That is the only use of DBMS_CRYPTO package. Right?
Do you guys have any suggestion in hiding/obfuscating column data? Is creating a view my only option?One solution to "hide" data (columns or rows) from end users is simply to create a view.
The end user will be granted only access to the view and not to the base tables behind the view. The view will only expose those cloumns and rows that the end users is supposed to see.
Of cause this has nothing to do with encryption. But I don't see anything in your business requirements that needs to use encryption methods. -
Changing the Column Header and Hiding the Column dynamically???
Hi friends..
I'm new to OBIEE field. I'm working in a OBIEE project that requires to dynamically change the column header, and dynamically hide the column depending on the prompt value.
I know we can dynamically change the table header using the presentation variable but I couldn't do that same thing with column header.
I searched some forums that suggest to use java script for this purpose but I'm not able to do the same also. If anyone had same issue before please help.toony, I'm not sure it's possible to do all that you want exactly the way you want, but here are some ideas you can pursue.
To dynamically change column headers without javascript, check this blog out...
http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
As far as dynamically hiding a column, I don't think you can do this, but since you don't provide any details on how the PV is supposed to hide a column based on the value, are you talking about hiding a column for one PV value and another (different) column for a different PV value? Or are you talking about hiding one column when a PV has certain values and displaying it when the PV has a different set of values?
I have managed to create both scenarios via a work-around, but the procedures require some writing so I don't want to put both. Please detail how you want your PV to "hide" a column or columns.
P.S. I don't think column selectors will do the trick for you. Basically column selectors work like this: Say you have a report using Sales Region ID, Region Name, and Sales. Now let's say you want the user to choose if he/she wants to see annual sales, or quarter sales or weekly sales, etc. The column selector view would allow you to put the various columns (Year Sales, Quarter Sales, Weekly Sales) as an option the user can select. Once selected, the sales figure will change for the time period selected. For an example of how this is done, check out the section in this "Oracle by Example" link.
Waited too long to publish this... Madan beat me to it, so there is some overlap here...
http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
Edited by: LC143 on Oct 27, 2008 9:21 AM -
Hiding few columns before displaying alv grid output
Hi All,
I struck up at hiding few columns before displaying alv output. I have used used FM: REUSE_ALV_GRID_DISPLAY. By using this i am displaying 29 fields to the output. But before displaying the output i want to hide few columns among them, and also those fields have to be avialable for further selection by the user by using layout.
Kindly help me in this,
Regards
Srinivas KHi,
In field catalog set NO_OUT='X' for all the columns you want to hide. They will be available when changing layout for ALV, so you can show them at any time.
Regards
Marcin -
Updating a JTable by hiding/displaying columns
I have a customizable JTable where I display/hide columns according to a users' selection criteria. My code works fine for hiding/displaying columns if the Jtable is opened for the fist time, but doesnot work if I want to hide columns in already displayed table.How do I do it?? Any clue?? I tried
myTabModel.fireTableDataChanged();
but this only works for updating the table data...it does not hide columns for me... when I hide column I just remove desired column like this:
myTable.removeColumn(myTable.getColumn("Column 3"));Here is the sample code I tried. It worked without any invalidate or repaint or updateUI(). generated using NetBeans
check for <==== for the line of code doing this
* TableTest.java
* Created on October 9, 2002, 1:42 PM
* @author Anki Reddy Nelaturu
public class TableTest extends javax.swing.JFrame {
/** Creates new form TableTest */
public TableTest() {
initComponents();
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jButton1 = new javax.swing.JButton();
jTextField1 = new javax.swing.JTextField();
menuBar = new javax.swing.JMenuBar();
fileMenu = new javax.swing.JMenu();
openMenuItem = new javax.swing.JMenuItem();
saveMenuItem = new javax.swing.JMenuItem();
saveAsMenuItem = new javax.swing.JMenuItem();
exitMenuItem = new javax.swing.JMenuItem();
editMenu = new javax.swing.JMenu();
cutMenuItem = new javax.swing.JMenuItem();
copyMenuItem = new javax.swing.JMenuItem();
pasteMenuItem = new javax.swing.JMenuItem();
deleteMenuItem = new javax.swing.JMenuItem();
helpMenu = new javax.swing.JMenu();
contentsMenuItem = new javax.swing.JMenuItem();
aboutMenuItem = new javax.swing.JMenuItem();
getContentPane().setLayout(null);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
jScrollPane1.setViewportView(jTable1);
getContentPane().add(jScrollPane1);
jScrollPane1.setBounds(80, 30, 230, 120);
jButton1.setText("jButton1");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
getContentPane().add(jButton1);
jButton1.setBounds(170, 180, 81, 26);
jTextField1.setText("jTextField1");
getContentPane().add(jTextField1);
jTextField1.setBounds(60, 190, 63, 20);
fileMenu.setText("File");
openMenuItem.setText("Open");
fileMenu.add(openMenuItem);
saveMenuItem.setText("Save");
fileMenu.add(saveMenuItem);
saveAsMenuItem.setText("Save As ...");
fileMenu.add(saveAsMenuItem);
exitMenuItem.setText("Exit");
exitMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exitMenuItemActionPerformed(evt);
fileMenu.add(exitMenuItem);
menuBar.add(fileMenu);
editMenu.setText("Edit");
cutMenuItem.setText("Cut");
editMenu.add(cutMenuItem);
copyMenuItem.setText("Copy");
editMenu.add(copyMenuItem);
pasteMenuItem.setText("Paste");
editMenu.add(pasteMenuItem);
deleteMenuItem.setText("Delete");
editMenu.add(deleteMenuItem);
menuBar.add(editMenu);
helpMenu.setText("Help");
contentsMenuItem.setText("Contents");
helpMenu.add(contentsMenuItem);
aboutMenuItem.setText("About");
helpMenu.add(aboutMenuItem);
menuBar.add(helpMenu);
setJMenuBar(menuBar);
pack();
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
jTable1.removeColumn(jTable1.getColumnModel().getColumn(Integer.parseInt(jTextField1.getText()))); // <========
private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
System.exit(0);
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
* @param args the command line arguments
public static void main(String args[]) {
new TableTest().show();
// Variables declaration - do not modify
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JMenu fileMenu;
private javax.swing.JMenuItem exitMenuItem;
private javax.swing.JButton jButton1;
private javax.swing.JMenuItem saveAsMenuItem;
private javax.swing.JMenuItem saveMenuItem;
private javax.swing.JMenuItem copyMenuItem;
private javax.swing.JMenuItem pasteMenuItem;
private javax.swing.JMenuItem cutMenuItem;
private javax.swing.JMenuItem openMenuItem;
private javax.swing.JMenuBar menuBar;
private javax.swing.JMenu editMenu;
private javax.swing.JMenuItem aboutMenuItem;
private javax.swing.JMenuItem contentsMenuItem;
private javax.swing.JMenu helpMenu;
private javax.swing.JTextField jTextField1;
private javax.swing.JMenuItem deleteMenuItem;
private javax.swing.JTable jTable1;
// End of variables declaration
} -
How to print table items in column in smartform in 4.6c version.
Hi Experts,
I want to print the items i have in columns (like name invoice number) in smartforms but when i create table in main window there no options for header footer and main area, i have created the template for header and footer but how i print the items in columns. Pls reply ASAP.
Thanks in advance,
Abhishek Pandey.Hi
create a table under main window
Under the Header create a Row or Line
Under the Row create a Cell and Under that Cell create a text field
In that text you can write what ever field name u want to write
Reward if it is helpful to you
Thanks
Krushna -
Hi,
I want to hide a column when i select Hide option from a popup menu and
again bring it back when i select show option again from the popup menu.
How to get this done?Hi!
The simplest way to do that, is to set the column width to 0 for hiding and back to its normal size to show it again.
Cheers
K. -
Hi all,
Could any one provide me a solution to hide a cross tab column.
My cross tab has the Dimension in the rows and date values in the columns
Dec'06 Dec'07 Jan'08 Feb'08..........Dec 08
DIM1 20 10 35 28 26
DIM1 30 20 15 14 22
Some reason am bringing Dec'06 data and this data is coming from the universe.
So now I would like to hide this Dec'06 column in the cross tab how can I achieve this?
or is there any solution to hide first column in the cross tab?
Any help would be highly appreciated.
ThanksHi all,
For this I just created a variables as below first for Prior Prior year end as I always need to hide prior prior year Dec data so created a variable as below
Prior prior year end=ToDate("31/12/"+FormatNumber(Year([Date]);"0000");"dd/MM/yyyy")
after that created another variable like
If([date]=[Prior prior year end];"Y";"N")
Now created a filter saying filter cal date="N"
It is hiding all the years december data but I only want to filter only prior prior year end
any help pls
Edited by: VP S on Feb 10, 2011 5:21 PM -
Need help in hiding particular column of a table depending upon value
Hi experts,
I have developed a custom smartform and Print program.
My problem is ..depending upon the data i recieve,...i have to hide a particular column.
For example ... i have a table with 2 rows...one header and main row..This table has 3 column.
I have to hide one of the column depending upon the data i recieve. So my output should have 2 rows and 2 columns.
Please help.well vishwa u r right it wont work for multiple columns,
then i guess this shud work.
@thendral
U can try like this create the rows with single column
then print all ur text elements with spaces inserted manually between them with text editor then in conditions tab of the text elements specify ur condition according to what all u want to print.
кu03B1ятu03B9к -
Hiding Status column in MSS Status Overview for Personnel Change Requests
Hi,
We have MSS implemented in SAP Portal.
We are using Status Overview for Personnel Change Requests iview for which we have multiple columns displayed with data.
We need to hide Status column in Status Overview for Personnel Change Requests iview for all the users.
Can any body please let me know how it can be done.
Regards,
Pradeep B
Edited by: pradeep balam on May 17, 2011 4:01 PMHi Pradeep,
Preview the portal page which you want to edit, in this case status overview in PCR. In the preview press the CTRL-key and right-click on the column that you want to edit. Here, you will be able to perform your customizations like hiding columns, labels etc
Hope it helps,
Prathamesh -
Hideing a Column in ALV Table which is Displaying the POWL Query data
Hi SDNers,
I want to hide a column of ALV Table which is displaying my POWL Query data in it and hideing should be based on the Role as well. i.e few of the role the column shoudl be hidden and few of the roles should have the Column visible.
waiting for the Valueble Answers.
Thanks & Regards,
GovinduHai Kris,
I took help from ur link and i declared a global attribute request_number.
and i created an event handler ON_ALV_INSERT and did the follwing coding for giving default value wen ever am inserting new row.
FIELD-SYMBOLS: <wa_row> LIKE LINE OF r_param->t_inserted_rows.
DATA bill_details TYPE REF TO zdom_bill_detail.
LOOP AT r_param->t_inserted_rows ASSIGNING <wa_row>.
bill_details ?= <wa_row>-r_value.
IF bill_details->REQ_NUMBER IS INITIAL.
DATA lo_nd_bill_detail TYPE REF TO if_wd_context_node.
DATA lo_el_bill_detail TYPE REF TO if_wd_context_element.
DATA ls_bill_detail TYPE wd_this->Element_bill_detail.
navigate from <CONTEXT> to <BILL_DETAIL> via lead selection
lo_nd_bill_detail = wd_context->get_child_node( name = wd_this->wdctx_bill_detail ).
lo_el_bill_detail = lo_nd_bill_detail->get_element( index = <wa_row>-index ).
lo_el_bill_detail->set_attribute(
EXPORTING
name = 'REQ_NUMBER'
value = wd_comp_controller->request_number
Wen am setting the value of wd_comp_controller->request_number to my context attribute am getting NULL object ref error.
lo_el_bill_detail->set_attribute(
name = `REQ_NUMBER`
value = wd_comp_controller->request_number ).
Pls give some suggestions,
Thanks in Advance,
Nalla.B -
Hi,
how can I make rows & columns inside a variable window in smartforms.
How can I make boxes/table in a variable window in smartforms.
Regards
Hemanthi
good
when you r creating a smartform in the left hand side of the window you ll find a tree strusture,that is besically for designing the smartform screen as per your requirement.
If you r creating any table under the main window than you can get the object by using the right click over that main window.
if you r creataing a table and if you clink on that table node than you ll find out the types of object that you can create under a table.
thanks
mrutyun^
Maybe you are looking for
-
Mail Adapter - Attachment - orig msg + converted after mapping
Hello, can somebody give me a little bit adivce. I have to send an email where the original message will be in the attachment and the message that will be the output of the message mapping. => getting the converted one into the mail body is not a pro
-
Cannot export video: AME cannot read from source, Installation Error
Ok, I've seen a lot of people on here talk about this and I have tried using their solutions but nothing has worked. I cannot export anything from Premier Pro using Media Encoder. When I try, I get an yellow warning sign saying that it cannot read f
-
Inspection Result - Qualitative
Hi all, I have a inspection lot with plan containing 3 lines. The first two result lines are quantitative and the third one is qualitative. Using characteristics and Single records, i am able to update quantitative records but the same is not working
-
Cannot create PAL DV projects in iMovie HD6
I'm wondering if anyone else is having this issue - or if I've missed something obvious! After having worked with iMovie for several years, always with DV-PAL camcorders, I suddenly find that when I create a new project it defaults to DV-NTSC. In the
-
I am trying to create a formula using log10(X) in a formula node. I can enter log(X) with no errors, but when I enter log10(X) I get an error. How do I use log10 in a formula node? Is log(X) actually log10? Alan