Set all checkboxes of the selected column by user at run time
Hi ,
I have a table control tab_500 with the 3 columns of checkboxes. When user selects particular column, and click on the buttone 'Select All', all the checkboxes of that column should get selected.
loop at tab_500-cols into cols_500.
if cols_500-SELECTED = 'X'.
endif.
endloop.
How to do this.
Thanks in advance,
Regards,
Madhuri
Hi,
In PAI write this code..
DATA wa_table TYPE cxtab_column.
IF SY-UCOMM EQ 'SELALL'.
LOOP AT <tablecontrol>-cols INTO wa_table.
IF wa_table-screen-name CS <checkbox colume name in upper case>
AND wa_table-selected = 'X'.
itab-check1 = 'X'. " Check box field set to X
MODIFY itab TRANSPORTING check1 WHERE check1 = space . " modify the internal table
ENDIF.
ENDLOOP.
ENDIF.
Similar Messages
-
Can I set all folders to the same column with in Finder list view?
I set Finder to display 4 columns in list view: Name, Date Modified, Size, Kind. Is there a way to apply the width of those columns to all folders? Column width is not affected by the option "use as defaults" in the view options.
I've just seen that somebody else asked the same question lately:
https://discussions.apple.com/message/22368987#22368987
There seems to be no way to do what I want to do. -
Capturing elements value in the selection screen for LDB during run time
Hi,
I have a program where LDB is used.
Could anyone please suggest how to capture the values of the elements present in the LDB's default selection screen.
Specially, the company code and the period values.
Please reply . Its too urgent.
Regards,
Binay.I got it
-
How to find out the selected column in Table Control
Hi all,
How to find out the selected column in Table Control?
Thanks & Regards,
YJRHi,
Let your table control name in Screen painter be TC1.
READ TABLE TC1-COLS INTO WA_COLS (some wok area)
WITH KEY SELECTED = 'X'.
IF SY-SUBRC = 0.
CLEAR: W_DUMMY, W_COL_NAME.
SPLIT WA_COLS-SCREEN-NAME AT '-' INTO W_DUMMY
W_COL_NAME.
endif.
W_COL_NAME gives you the column name.
Hope it helps.
cheers
sharmistha -
How to freeze the selection column in the table control of the module pool.
hi ,
in my module pool there is a row selection field <b>w/selcolumn</b> of the table control called as mark.
how to freeze the selection column where there is no record in the table control row.
or in other words where wa is initial.
thanks
ektaHi all,
in the PBO of the screen the following code is written.
say the selection column is MARK and is declared in the data as well.
thanks
ekta
*************************C O D E **************************************************
MODULE disp_tabctrl1 OUTPUT.
IF flag_c = 1.
READ TABLE it_create_data INTO wa_material_data
INDEX tab_ctrl1-current_line.
ELSE.
READ TABLE it_material_data INTO wa_material_data
INDEX tab_ctrl1-current_line.
IF sy-subrc = 0.
IF ok_code_0101 = '&SEL1'.
mark = 'X'.
ELSEIF ok_code_0101 = '&DSEL'.
mark = ' '.
ENDIF.
ELSE.
LOOP AT SCREEN.
IF screen-name = 'MARK'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
index_t = tab_ctrl1-top_line.
index_d = tab_ctrl1-top_line + n.
ENDMODULE. " DISP_TABCTRL1 OUTPUT -
Acrobat 9 HTML to PDF conversion sets all checkboxes to checked - Duplicate question
I am converting html files to pdf using Acrobat 9 pro. All of the check boxes and radio buttons come out checked.
This is exactly the same as the following thread:
Acrobat 9 HTML to PDF conversion sets all checkboxes to checked?
That thread is old, but not answered. Has there been any update to this?Hi Don,
Have you tried updating to v 9.5.5 and checked.
Which OS and browser are you using?
Have you checked the behavior with a new sample form on the browser?
Regards,
Rave -
Changing the source of mx:Style at run time
Is there a way to be able to change the stylesheet for an
application at run time? Or is the only way to handle it on the
server?For those who might be interested, here is a class that will
load a xml file (that describes styles) and applies the styles
found to your application.
The xml file is in the format:
<?xml version="1.0" encoding="utf-8"?>
<dynamicStyles>
<Application selectorType="type"
backgroundImage="images/background.jpg"/>
<ApplicationControlBar selectorType="type"
highlightAlphas="0.5, 0.25"/>
<ToggleButtonBar selectorType="type"
highlightAlphas="0.5, .25"/>
<viewPanel borderStyle="solid" borderThickness="1"
borderColor="#efefef" backgroundColor="#d0d0d0"
backgroundAlpha="0.5" color="#170505" cornerRadius="5"
dropShadowEnabled="true"/>
<infoPanel borderStyle="solid" borderThickness="1"
borderColor="#7f7e7e" backgroundColor="#ffffff"
backgroundAlpha="1.0" cornerRadius="5"
dropShadowEnabled="false"/>
<infoLabel fontSize="11" fontWeight="bold"/>
</dynamicStyles>
The AS class is the following (be sure to name the .as file
that same as the class name and modify the "package" section yo
include any path required by your setup.
package
import mx.styles.CSSStyleDeclaration;
import mx.styles.StyleManager;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.*;
import flash.xml.XMLNode;
import flash.errors.IOError;
public final class RuntimeStyle
private var _source:String;
public function get source():String {
return _source;
public function set source(value:String):void {
if (value != _source){
getStylesheet(value);
_source = value;
private function getStylesheet(value:String):void {
var urlRequest:URLRequest = new URLRequest(value);
var urlLoader:URLLoader = new URLLoader();
urlLoader.addEventListener(Event.COMPLETE, completeHandler);
urlLoader.addEventListener(IOErrorEvent.IO_ERROR,
ioErrorHandler);
urlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
securityErrorHandler);
urlLoader.load(urlRequest);
private function completeHandler(event:Event):void {
var loader:URLLoader = URLLoader(event.target);
var xmlDoc:XML = new XML(loader.data);
applyStyles(xmlDoc);
private function ioErrorHandler(event:IOErrorEvent):void {
throw new IOError("Error Attempting to load
RuntimeStylesheet:" + source + " Original Error: " + event.text);
private function
securityErrorHandler(event:SecurityErrorEvent):void {
throw new SecurityError("Error Attempting to load
RuntimeStylesheet:" + source + " Original Error: " + event.text);
private function applyStyles(xmlDoc:XML):void {
var xmlList:XMLList = xmlDoc.children();
for each(var node:XML in xmlList) {
if (node.@selectorType == "type") {
var cssStyle:CSSStyleDeclaration =
StyleManager.getStyleDeclaration(node.name());
if (cssStyle != null)
setStyle(cssStyle, node);
else {
var cssStyleDeclaration:CSSStyleDeclaration = new
CSSStyleDeclaration();
setStyle(cssStyleDeclaration, node);
StyleManager.setStyleDeclaration("." +
node.name().toString(), cssStyleDeclaration, true);
private function
setStyle(cssStyleDeclaration:CSSStyleDeclaration, node:XML):void {
var attributes:XMLList = node.attributes();
for each(var attributeNode:XML in attributes) {
var attributeName:String = attributeNode.name().toString();
if (attributeName != "selectorType") {
var attributeValue:String =
node.attribute(attributeName).toString();
if (attributeValue.indexOf(",") == -1)
cssStyleDeclaration.setStyle(attributeName, attributeValue);
else
cssStyleDeclaration.setStyle(attributeName,
attributeValue.split(","));
} -
After updating my iTunes per the update notice I received a run-time error R6034. Now I am unable to access iTunes at all.
Can someone tell me how to correct this problem?Uninstall your existing copy of iTunes. Delete any copies of the iTunesSetup.exe (or iTunes64Setup.exe) installer files from your downloads areas for your web browsers and download a fresh copy of the iTunes installer from the Apple website:
http://www.apple.com/itunes/download/
(The current build of the 11.1.4.62 installer was changed a few days ago, which fixed the bulk of the reports of MSVCR80.dll/R6034/APSDaemon.exe/Error-7/AMDS-could-not-start trouble ... but the build number on the installer was not changed. So we're trying to make sure you do the reinstall using a "new good" 11.1.4.62 installer instead of an "old bad".)
Does the install with the new copy of the installer go through properly? If so, does that clear up the error message?
If you still have the same error messages cropping up, then try the procedures from the following user tip:
Troubleshooting issues with iTunes for Windows updates -
Problem with checkbox in the selection screen
Hi guys,
I have a problem with the check box in the selection screen.When i select a check box then a field in the selection screen should be enabled for entering a value.Again if i unselect the checkbox then the field should be disabled for entering a value.I have written the code in at selection-screen output.
The problem is when i select the check box ,the field is not enabled.But when i press enter after selecting the checkbox then the field is enabled for input.It is the same when i unselect the checkbox,after i press enter only the field is getting disabled.What could be the problem.Any suggestions please?
Thanks.Hi d p
Please try this code . I think this code have some way that you would like.
REPORT zdownload_to_application_server.
TABLES : caufvd, jest.
I N C L U D E P R O G R A M *
*INCLUDE znrpstnd.
Selection Screen *
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t03.
PARAMETERS: p_outb RADIOBUTTON GROUP g1 USER-COMMAND outb DEFAULT 'X' ,
p_inb RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b3.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
PARAMETERS : p_werks LIKE caufvd-werks MODIF ID a. " Plant "OBLIGATORY
SELECT-OPTIONS : s_auart FOR caufvd-auart MODIF ID a, " Order Type
s_aufnr FOR caufvd-aufnr MODIF ID a. " Order number
PARAMETERS: p_path TYPE string DEFAULT 'C:\SchedulerInterface-OutboundTextFile\' MODIF ID a,
p_actual AS CHECKBOX MODIF ID a. " Transfer Actual
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.
PARAMETERS : p_werks2 LIKE caufvd-werks MODIF ID b, " Plant "OBLIGATORY
p_path2 TYPE string DEFAULT 'C:\SchedulerInterface-InboundTextFile\' MODIF ID b,
p_path3 TYPE string DEFAULT 'C:\SchedulerInterface-InboundTextFile\' MODIF ID b,
p_sessio TYPE apqi-groupid MODIF ID b. " BDC Session
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
IF p_outb EQ 'X'. " Outbound --> Hide inbound
LOOP AT SCREEN.
"IF screen-name = '%BT02011_BLOCK_1000'.
IF screen-group2 = 'BLK'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
IF screen-group1 = 'A'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
IF screen-group1 = 'B'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
"IF screen-name = '%BT01004_BLOCK_1000'.
IF screen-group3 = 'BLK'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
IF screen-group1 = 'A'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
IF screen-group1 = 'B'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path2.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_path = 'C:\SchedulerInterface-InboundTextFile\'
mask = ',Text Files,.txt,All files,.*.'
IMPORTING
filename = p_path2
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path3.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_path = 'C:\SchedulerInterface-InboundTextFile\'
mask = ',Text Files,.txt,All files,.*.'
IMPORTING
filename = p_path3
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
TOP-OF-PAGE.
START-OF-SELECTION.
Regards
Wiboon -
The conversion of a PDF file into excell put all items into the first column, it did not work
The product produced an excel , but put all the different column information into column A .
Try this process:
In the PDF file that you would like to copy information from:
1. Go to Tools>Content Editing panel
2. Click the "Edit Text & Images" button
3. Select the information that you would like to copy and draw a selection square. It should group the information into a selection outlined in blue.
4. Go to Edit>Copy
In the PDF file that you would like to paste information into:
1. Go to Tools>Content Editing panel
2. Click the "Edit Text & Images" button
3. Go to the page that you want to paste your information
4. Select the page
5. Go to Edit>Paste
6. You should now have a selection square that contains the raster information and that you can adjust size by Shift + Click + Dragging the object handle on the corner of the selection square.
Does this work for you? -
[ADF Faces] set cursor position to the first column input text in ADF table
How do i set the cursor position to the first column input text when i Insert a blank row?
My idea is to implement using javascript. document.setfocus() but how do i do it from the backing bean code? or how do i install custom js to call document.setfocus()?
any ideas?
Message was edited by:
user450391Did you try by iterating the selected row?
Bind the table with the managed bean and then try with below code:
RichTable empTable;
RowKeySet selectedEmps = getEmpTable().getSelectedRowKeys();
Iterator selectedEmpIter = selectedEmps.iterator();
DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding empIter = bindings.findIteratorBinding("EmpView1Iterator");
RowSetIterator empRSIter = empIter.getRowSetIterator();
while(selectedEmpIter.hasNext()){
Key key = (Key)((List)selectedEmpIter.next()).get(0);
Row currentRow = empRSIter.getRow(key);
System.out.println(currentRow.getAttribute("Ename")); -
Xml is not generating the selected column
Hi experts,
I have selected the 3 column in my slect statement with 3 bind variable . But when I save my datamodel and generate the xml , My xml is not showing the selected three column...please find the blow query.
Select BAL_ATT.TRANSACTIONAL_AMOUNT_WD0,
BAL_ATT.FUNCTIONAL_AMOUNT_WD0 ,
SIGNOFF.CODE_COMBINATION_ID,
RT.ROLE_NAME
from
MLC_BAL_ATTRIBUTE_T BAL_ATT /* A_MLC_BAL_ATTRIBUTE */ ,
MLC_USER_T US/* A_MLC_USERS */ ,
MLC_BAL_SEGMENT_T BAL_SEG/* A_MLC_BAL_SEGMENT */ ,
MLC_SIGNOFF_T SIGNOFF /* A_MLC_SIGNOFF */ ,
MLC_LEDGER_ROLE_HIERARCHY_T RHT,
MLC_ROLE_T RT , MLC_LEDGER_T Leg,
MLC_LEDGER_COMPONENT_T LC
where ( SIGNOFF.CODE_COMBINATION_ID = BAL_ATT.CODE_COMBINATION_ID
and SIGNOFF.CODE_COMBINATION_ID = BAL_SEG.CODE_COMBINATION_ID
and SIGNOFF.MONTH_END_DATE = BAL_ATT.MONTH_END_DATE
and RHT.LEDGER_ID= SIGNOFF.LEDGER_ID
and RHT.LEDGER_COMPONENT_ID=SIGNOFF.LEDGER_COMPONENT_ID
and RT.ROLE_ID=RHT.ROLE_ID
and LC.LEDGER_ID=SIGNOFF.LEDGER_ID
and LC.LEDGER_ID=LEG.LEDGER_ID
and (US.USER_ID =SIGNOFF .ROLE4_USER_ID or
US.USER_ID =SIGNOFF .ROLE3_USER_ID
or US.USER_ID =SIGNOFF .ROLE1_USER_ID
or US.USER_ID =SIGNOFF .ROLE2_USER_ID
or US.USER_ID =SIGNOFF .ROLE5_USER_ID)
and LEG.LEDGER_NAME IN (:LEG)
and RT.ROLE_NAME IN(:ROLE)
and LC.LEDGER_COMPONENT_NAME IN(:LEG_COMP)
and (SIGNOFF.ROLE1_STATUS is null or SIGNOFF.ROLE2_STATUS is null or SIGNOFF.ROLE3_STATUS is null or SIGNOFF.ROLE4_STATUS is null or SIGNOFF.ROLE5_STATUS is null))
Let me know If I need to do some configuration.
I need to generate the xml and then need to import it my rtf template...Hi RavindraKshirsagar,
We have a problem like you faced. Our requirement is that, we need to generate dynamically the PERSON element in our javabean.
<xs:element name='SERVICE_REQUESTER'>
<xs:complexType>
<xs:sequence>
<xs:element ref='ORGANIZATION' />
<xs:element ref='PERSON' maxOccurs='unbounded' />
</xs:sequence>
</xs:complexType>
</xs:element>For this maxOccurs, as JAXB is not generating any Setter Method. As we need to get data dynamically from external application. If you could help us in handling this case dynamically, it will be well and good.
Please send us the script / code asap. -
Select Lists - Setting and Referencing (Using) the Select List variable
I have (a login page and) 3 application pages (call them Day, Week, Month), each with similar selection lists and a chart. I have three requirements.
1) When a new selection is made, the value of the selection list variable is updated --that is, it does what select lists do.
2) I need to set the value of the Month selection list variable before the Month page is rendered for the first time -- I need to give it an initial value.
3) When navigating from page to page, say from Month to Week or Day back to Month, I need to have the value of the selection list variable carried to the new page from the value on the previous page.
It sounds simple to me -- something that one could do with an (global) application item. The logic would be like
IF :Page_Name_Flag = 'Week' THEN -- staying on the Week page
SELECT :WK_SelectList_Name INTO :GLOBAL_SelectList_Name FROM DUAL
ELSE -- new pass on this page
SELECT :GLOBAL_SelectList_Name INTO :WK_SelectList_Name FROM DUAL
SELECT 'Week' INTO :Page_Name_Flag
END IF;But that doesn't work for me. The page's select list variable seems to be NULL sometimes causing the value of :GLOBAL_SelectList_Name to be set to null. Other times, the copy from the global variable to page select list varable doesn't seem to change the page select list variable.
At http://apex.oracle.com/pls/apex/f?p=43250:101 (guest/Ima9Gue8t) is an example where I have each page's select list working (except on the initial visit to the page, where the select variable is null!!!). How can I get the select list value on the new page to sync with the value from the previous page?
Thanks,
Howard
Edited by: Howard (DBA in Training) on Sep 18, 2012 11:53 AMI'm closing this because I got it to work. In the end, it worked as I had described above. There was some setting of the Select List variable, that I now have correct, that was incorrect before. I wonder what it was?
-
How to get the column index of the selected column
Hi All,
I have a dynamically populated advanceddatagrid. Iam trying to edit any column of a particular row. In my as file im able to get the row index using selecteditem property. But I need to get the column Index and the updated value of the column to be passed from the as file to the java method.
So that I can update the DB with the updated value. Can somebody help with a sample code....then index 0 becomes index 1 and my program doesn't work properlyThe program works properly, just not as you expect it to.
As you've noticed the table gives you the flexibility to move columns around. So if you move column 0 to column 1, why would you expect to still use 0 as the index? The table manages the reordering of columns for you to make sure the data being displayed in each table column comes from the correct column in the data model.
You can manage this yourself using one of the following methods (I forget which one):
table.convertColumnIndexToModel(int viewColumnIndex)
table.convertColumnIndexToView(int modelColumnIndex)
Or, you can get data from the data model directly:
table.getModel().getValueAt(row, 0); -
Select column from user.table
Hi,
I have 100 users. Each one has same table let's say tableA. I want a query that return back the value of a given column in that table for all users with their names. I thought about a join between dba_users (username) and that table. Basically I generate a script by this :
select 'SELECT CULOMN FROM '||owner||'.'||TABLE_NAME||';' from all_tables where table_name='TABLEA';
I execute the result script as sysdba.
But when executed it does not show the name of each user. I mean we can not see which value belongs to whom.
How can I do that ?
many thanks before.
Message was edited by:
user522961Or perhaps you just want some dynamic SQL like this:
SQL> ed
Wrote file afiedt.buf
1 DECLARE
2 CURSOR u IS
3 SELECT username
4 FROM all_users
5 ORDER BY username;
6 v_cnt1 NUMBER;
7 v_cnt2 NUMBER;
8 v_tbl VARCHAR2(30) := 'EMP';
9 BEGIN
10 FOR users IN u
11 LOOP
12 SELECT count(*)
13 INTO v_cnt1
14 FROM ALL_TABLES
15 WHERE owner = users.username
16 AND table_name = v_tbl;
17 IF v_cnt1 > 0 THEN
18 EXECUTE IMMEDIATE 'SELECT count(*) FROM '||users.username||'.'||v_tbl INTO v_cnt2;
19 DBMS_OUTPUT.PUT_LINE('User: '||users.username||' Count on '||v_tbl||':'||v_cnt2);
20 END IF;
21 END LOOP;
22* END;
SQL> /
User: FRED Count on EMP:27
User: BOB Count on EMP:34
PL/SQL procedure successfully completed.
SQL>
Maybe you are looking for
-
Webutil_file_transfer and webutil_db_local
Hello I'm trying to use WEBUTIL_FILE_TRANSFER.CLIENT_TO_DB to upload a file into a blob column in the database. While debugging, in the function WEBUTIL_FILE_TRANSFER.UploadInt the following line of code exists: if not WebUtil_DB_Local.openblob(spec1
-
HTML snippet does not show on my webpage?
the html snippet (from PayPal) shows up just fine in my iWeb page. But it disappears after uploading to my webpage. I use Fetch which is an independent uploader. I have iWeb version 3.0.4 and the iWeb page I am working on creates an "html" document b
-
hi all, i am using JLabel for rendering a JTable, but the problem is JTable is not refreshing properly. import java.awt.Component; import java.awt.Container; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JScrollPane; import
-
Error message when distributing forms
Hi: I am working in Adobe Acrobat Professional and Livecycle 8. Our client uses Acrobat Reader 9 to view forms, so I downloaded it for testing. I recently attempted to distribute a form from LiveCycle, but Reader 9 opens and Livecycle shows a Server
-
We are working on the BI Strategy for our Planning and Allocations. The business users download templates online or offline in excel, and upload bulk data, for e.g, mulitple records for a set of fixed columns. Can Smart view handle this kind of uploa