Editing Cells - Simple Issue, but Confused
Simple issue, but I can't seem to figure this one out in Numbers. I'll do my best to explain in words here.
Let's say I store the following dollar amount in cell A1 = 1264. The number is formatted to dollars. Therefore A1 is presented as $1,264.00. All is well up to this point.
Okay, now let's assume I click out of the cell completely. Now let's say I wanted to add $250.50 to this amount in cell A1. When I go to the formula bar to add in the $250.50 it's requiring me to remove the dollar sign and comma out of my $1,264.00 number in order to complete the computation. Is this normal? I never had to do this in Excel. My thought was that I should only need to include an equal sign at the beginning of the formula (in other words, there shouldn't be a need to remove the dollar sign and comma every time, right?).
Just wanted to make sure that I'm not missing anything overly simple (which I'm sure I am).
Any help is greatly appreciated! I'm really enjoying my trial version of Numbers thus far.
Message was edited by: randy.humes
Randy,
There is another way to remove each comma and dollar sign, one that will work on multiple cell at once if needed. Select the cells that you want to clean-up and using the Cells Inspector, change the format from Currency to Number and then click the Thousands Separator checkbox to deselect it. Then all that remains is to add the equal sign when you go in to edit the content by changing your input to a formula. Then if you still want the value to be displayed as currency, change the format back.
I'm not saying that this method is better, but may be worth a try if your are backspace/delete averse.
Jerry
Similar Messages
-
Simple code, but confusing
class C{
static int f1(int i) {
System.out.print(i + ",");
return 0;
public static void main (String[] args) {
int i = 0;
i = i++ + f1(i);
System.out.print(i);
}}When the above code compile and run, it give 0,1 (I am confused how?)
when it pass the value its passing as 1 then the value should remain same when it returns zero.
and it should be like i = 1 + 0;
As per my idea it should give 1,1
Can any one explain clearly how it works here ?PrasannA@java wrote:
Hi all, thanks for the post
Finally I got it what actually happening.
If some one still not clear, can check the below link which explains in detail.
[http://www.coderanch.com/t/244938/Programmer-Certification-SCJP/post-increment-confusion]
That other thread doesn't explain much; the expression to be evaluated can be written as A+B where:
A: i++
B: f(i)
Java evaluates this expression from left to right so,
A: i++ has the value 0 while i has the value 1
B: f(i) method f will be called with the value 1 (see A)
B1: in method f the value of i is printed and 0 is returned
B2: so the value of sub-expression B is 0
Therefore the value of the entire expression is 0+0 == 0 which is printed next.
Therefore the entire output will be 1,0
kind regards,
Jos -
Sorry, I am new to the type of problem-solution process and I do not know how to edit my first statement. My true statement is below:
My pdf freezes when I click on COMMENT. I am trying to get at the tools to edit a pdf. If I use the tools from the toolbar, there is no issue, but once I click COMMENT, the document freezes and I have to open Task Manager to crash it. This started in the last seven days (3.31.15).I answered your questions below, BUT while I was searching for properties, I found the REPAIR ACROBAT INSTALLATION feature, did the repair and (Voila!) the issue was resolved!
Thanks for making me search for information.
Karen
I am using Acrobat XI Pro, version 11.0.10.32.
I did not create the file I was working in during the freezes, so I tried a PDF that I created with Adobe and it also freezes when I click on COMMENT. I did discover that the COMMENTS plug-in is loaded. (see image
I have used COMMENT for years without this issue occurring. It started in the last 2 weeks.
I could not find Properties under the file menu, but found a security setting in Preferences under the Edit menu. It did not have a way to allow/disallow COMMENT. -
Newbie question – frame and cells resizing issues
I am a newbie to ‘efficient web designing’. I
have done previously simpler works.
This is what I am trying to do this time. I am creating a
modular web site where I will be using only one design layout(800 x
600) and repeating that 3-4 times along the length of a single page
and also in all the other pages on the website ( using same layout
but different contents). The way I started is
1) Created a design layout in Photoshop
2) Created slices
3) Saved all sliced images in image folder
4) Created one large table 800x600 (size of a single layout
module) in dreamweaver
5) Created nested tables inside the main table, (based upon
different cell divisions)
6) Created cells in the tables corresponding to slice layout
in the photoshop
7) Inserted the sliced images in the corresponding cells to
recreate my photosop layout in dreamweaver.
8) The issue that I am having is that the cells are not
getting to be the size of the images.
SO HOW DO I MAKE MY CELLS FIT MY IMAGES. I tried putting the
size of my sliced images in the property box of the cells but the
cells just won’t become of that size. What is stopping them?
What could I be doing wrong? Is my working method appropriate for
what I want to achieve?
Any help would be appreciated.Not really sure what you are trying to achieve... but
creating an 800x600
web page with Photoshop sliced images is not "efficient we
designing"
Everyone sets the size of their web browsers to a differant
size depending
on taste, visual accuity and the task at hand. Table cells
are simply
elastic containers. Think of them like a baloon. Small when
you take it
out of the bag but potentially really big with enough hot
air.
A cell will expand to fit whatever you put into it, but it
starts out small.
If you put a 200x200 slice of image as a background, you need
to somehow set
the size of the cell to 200x200, but if you put too much text
in the cell,
it will grow larger than 200x200 and leave your background
either stranded
with gaps around it or tiled and repeating itself.
If you put the slices directly into the cells, make sure you
have all
padding, cell spacing, and margins set to 0. Now, you won't
be able you put
text over the image but you could use hot spots or just
direct links from
the image.
Photoshop is an image editing program originally created for
print
applications. What you need to
consider is creating you web site in a flexible format and
augmenting your
design with images editied in Photoshop.
Best idea is get some books on html and css and learn what
you can about web
design, then add your graphics.
"yamirb" <[email protected]> wrote in
message
news:[email protected]...
>I am a newbie to ?efficient web designing?. I have done
previously simpler
> works.
> This is what I am trying to do this time. I am creating
a modular web site
> where I will be using only one design layout(800 x 600)
and repeating that
> 3-4
> times along the length of a single page and also in all
the other pages on
> the
> website ( using same layout but different contents). The
way I started is
> 1) Created a design layout in Photoshop
> 2) Created slices
> 3) Saved all sliced images in image folder
> 4) Created one large table 800x600 (size of a single
layout module) in
> dreamweaver
> 5) Created nested tables inside the main table, (based
upon different cell
> divisions)
> 6) Created cells in the tables corresponding to slice
layout in the
> photoshop
> 7) Inserted the sliced images in the corresponding cells
to recreate my
> photosop layout in dreamweaver.
> 8) The issue that I am having is that the cells are not
getting to be the
> size
> of the images.
>
> SO HOW DO I MAKE MY CELLS FIT MY IMAGES. I tried putting
the size of my
> sliced
> images in the property box of the cells but the cells
just won?t become of
> that
> size. What is stopping them? What could I be doing
wrong? Is my working
> method
> appropriate for what I want to achieve?
>
> Any help would be appreciated.
>
> -
Listbox set to NOT editable cells; EditRow property seems to override
Hi All,
I have several listboxes that I programmatically set to Editable Cells or not, depending on the runtime status. When I have it turned OFF, I do not want the user to be able to edit the text values in the cells.
However, I have a RTM for the listbox with an "Edit" option. That menu item sets the EditRow property (after setting Key Focus) to the selected row. This makes the text editable, even if I have it turned OFF!!
This is not the behaviour I expected. Is this a bug?Could you provide the code that you are seeing this occur in? Its almost impossible to see if this is a bug without some example. The simpler the example the better.
It is possible that it is a bug, but it's also possible that you are setting the cell to edit mode after you set it to lock. I am wondering why you are doing that? Its most likely that you want to edit some cells but keep others locked from editing, and I do not think that is a bug, however, it might be a good product suggestion to keep certain cells permanently locked from the user, which is probably not the case with the lock function you are using (which most likely can be over ridden by other property nodes).
Regards,
Andrew
National Instruments
RIO Embedded Hardware PSE
CompactRIO Developers Guide -
ItemFocusOut not catching "TAB" key in Datagrid edited cell?
In DataGrid, "keyUp" can catch "TAB" key when it is pressed,
but the Keyboard event has less information needed. I tried
itemFocusOut, but it seems DataGridEvent would not catch it. Any
tips on how to make "TAB" key generate DataGridEvent or similar
event?
Platforms with this issue: WIN-XP/JDK-1.6/Air-1.5/FLEX
SDK-3.2
Thanks!
-HerbertLet me rephrase like this:
In our application, a DataGrid’s edited cell has
“itemEditEnd” and “itemEditBeginning”
handlers defined. However when a “TAB” key is pressed
to navigate from one editable cell to another editable cell, none
of the above handlers can catch this special key stroke event.
Our intention is to make “TAB” key to emit an
event that can be caught by above handlers. Or, in other words, we
would like make “TAB” key to be similar(in the sense of
generating events) to that of “Enter” key when pressed. -
LabVIEW 8.2 Multicolumn Listbox Edit Cell Event Bug
I've observed an odd behavior with the "Edit Cell?" event with multicolumn listboxes. If the "Edit Position" is set when clicking on the listbox and the "Edit Cell?" event is trapped with discard set to false, when clicking outside of the list box, previous edits are lost. I have attached a simple example of this bug.
Attachments:
Listbox Edit Cell Event Bug.vi 19 KBThank you for the update Fran.
I lost my bet and you earned your stars.
So it sounds like the issue was the multiple event structures alone.
I just like to keep track of what the final fixes are.
Ben
Message Edited by Ben on 12-06-2006 04:50 PM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
ALV editable Cells, fixed Columns, possible?
I've got 2 issues:
1) User should not be able to move Columns, how can I do this using CL_GUI_ALV_GRID?
2) I know how to make a whole column editable in an ALV (CL_GUI_ALV_GRID), but how can I make only some cells editable?
thanks for your help.
SamirHi,
for making certain cells editable check this code...
steps are ..
1.you need to add one extra field in the internal table.
HANDLE_STYLE TYPE LVC_T_STYL
2. before calling the metho set_table_display...
write your own conditions , in my case i am checking for flag is 'X' or not..
LOOP AT IT_FINAL INTO LS_OUTTAB WHERE FLAG = 'X'.
V_INDEX = SY-TABIX.
LS_EDIT-FIELDNAME = 'FIELD1'.
LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 8.
INSERT LS_EDIT INTO TABLE LT_EDIT.
LS_EDIT-FIELDNAME = 'FIELD2'.
LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 8.
INSERT LS_EDIT INTO TABLE LT_EDIT.
LS_EDIT-FIELDNAME = 'FIELD5'.
LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 8.
INSERT LS_EDIT INTO TABLE LT_EDIT.
INSERT LINES OF LT_EDIT INTO TABLE LS_OUTTAB-HANDLE_STYLE.
MODIFY IT_FINAL INDEX V_INDEX FROM LS_OUTTAB TRANSPORTING
HANDLE_STYLE.
ENDLOOP.
3. psss the style name to layout
GS_LAYOUT-STYLEFNAME = 'HANDLE_STYLE'.
REPORT ZTEST1234 MESSAGE-ID ZZ .
DATA: G_GRID TYPE REF TO CL_GUI_ALV_GRID, "First
G_GRID1 TYPE REF TO CL_GUI_ALV_GRID. "Second
DATA: L_VALID TYPE C,
V_FLAG,
V_DATA_CHANGE,
V_ROW TYPE LVC_S_ROW,
V_COLUMN TYPE LVC_S_COL,
V_ROW_NUM TYPE LVC_S_ROID.
DATA: OK_CODE LIKE SY-UCOMM,
SAVE_OK LIKE SY-UCOMM,
G_CONTAINER1 TYPE SCRFNAME VALUE 'TEST', "First Container
G_CONTAINER2 TYPE SCRFNAME VALUE 'TEST1',"Second container
GS_LAYOUT TYPE LVC_S_LAYO.
DATA:BEGIN OF ITAB OCCURS 0,
VBELN LIKE LIKP-VBELN,
POSNR LIKE LIPS-POSNR,
LFDAT like lips-vfdat,
BOX(1),
HANDLE_STYLE TYPE LVC_T_STYL,
END OF ITAB.
* CLASS lcl_event_handler DEFINITION
CLASS LCL_EVENT_HANDLER DEFINITION .
PUBLIC SECTION .
METHODS:
**Hot spot Handler
HANDLE_HOTSPOT_CLICK FOR EVENT HOTSPOT_CLICK OF CL_GUI_ALV_GRID
IMPORTING E_ROW_ID E_COLUMN_ID ES_ROW_NO,
**Handler to Check the Data Change
HANDLE_DATA_CHANGED FOR EVENT DATA_CHANGED
OF CL_GUI_ALV_GRID
IMPORTING ER_DATA_CHANGED
E_ONF4
E_ONF4_BEFORE
E_ONF4_AFTER,
**Double Click Handler
HANDLE_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
IMPORTING E_ROW E_COLUMN ES_ROW_NO.
ENDCLASS. "lcl_event_handler DEFINITION
* CLASS lcl_event_handler IMPLEMENTATION
CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
*Handle Hotspot Click
METHOD HANDLE_HOTSPOT_CLICK .
CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
V_ROW = E_ROW_ID.
V_COLUMN = E_COLUMN_ID.
V_ROW_NUM = ES_ROW_NO.
MESSAGE I000 WITH V_ROW 'clicked'.
ENDMETHOD. "lcl_event_handler
*Handle Double Click
METHOD HANDLE_DOUBLE_CLICK.
CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
V_ROW = E_ROW.
V_COLUMN = E_COLUMN.
V_ROW_NUM = ES_ROW_NO.
IF E_COLUMN = 'VBELN'.
SET PARAMETER ID 'VL' FIELD ITAB-VBELN.
CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
ENDIF.
IF E_COLUMN = 'POSNR'.
MESSAGE I000 WITH 'Click on POSNR row number ' E_ROW.
"with this row num you can get the data
ENDIF.
ENDMETHOD. "handle_double_click
**Handle Data Change
METHOD HANDLE_DATA_CHANGED.
CALL METHOD G_GRID->REFRESH_TABLE_DISPLAY
EXCEPTIONS
FINISHED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMETHOD. "HANDLE_DATA_CHANGED
ENDCLASS. "LCL_EVENT_HANDLER IMPLEMENTATION
*& Global Definitions
DATA: G_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,"Container1
G_HANDLER TYPE REF TO LCL_EVENT_HANDLER, "handler
G_CUSTOM_CONTAINER1 TYPE REF TO CL_GUI_CUSTOM_CONTAINER. "Container2
*- Fieldcatalog for First and second Report
DATA: IT_FIELDCAT TYPE LVC_T_FCAT,
X_FIELDCAT TYPE LVC_S_FCAT,
LS_VARI TYPE DISVARIANT.
* START-OF_SELECTION
START-OF-SELECTION.
SELECT VBELN
POSNR
FROM LIPS
UP TO 20 ROWS
INTO CORRESPONDING FIELDS OF TABLE ITAB.
END-OF-SELECTION.
IF NOT ITAB[] IS INITIAL.
CALL SCREEN 100.
ELSE.
MESSAGE I002 WITH 'NO DATA FOR THE SELECTION'(004).
ENDIF.
*& Form CREATE_AND_INIT_ALV
* text
FORM CREATE_AND_INIT_ALV .
DATA: LT_EXCLUDE TYPE UI_FUNCTIONS.
"First Grid
CREATE OBJECT G_CUSTOM_CONTAINER
EXPORTING CONTAINER_NAME = G_CONTAINER1.
CREATE OBJECT G_GRID
EXPORTING I_PARENT = G_CUSTOM_CONTAINER.
"Second Grid
CREATE OBJECT G_CUSTOM_CONTAINER1
EXPORTING CONTAINER_NAME = G_CONTAINER2.
CREATE OBJECT G_GRID1
EXPORTING I_PARENT = G_CUSTOM_CONTAINER1.
* Set a titlebar for the grid control
CLEAR GS_LAYOUT.
GS_LAYOUT-GRID_TITLE = TEXT-003.
GS_LAYOUT-ZEBRA = SPACE.
GS_LAYOUT-CWIDTH_OPT = 'X'.
GS_LAYOUT-NO_ROWMARK = 'X'.
GS_LAYOUT-BOX_FNAME = 'BOX'.
GS_LAYOUT-CTAB_FNAME = 'CELLCOLOR'.
GS_LAYOUT-STYLEFNAME = 'HANDLE_STYLE'.
CALL METHOD G_GRID->REGISTER_EDIT_EVENT
EXPORTING
I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.
CREATE OBJECT G_HANDLER.
SET HANDLER G_HANDLER->HANDLE_DOUBLE_CLICK FOR G_GRID.
* SET HANDLER G_HANDLER->HANDLE_HOTSPOT_CLICK FOR G_GRID.
SET HANDLER G_HANDLER->HANDLE_DATA_CHANGED FOR G_GRID.
data: ls_outatb like line of itab,
v_index type sy-tabix.
DATA: LS_EDIT TYPE LVC_S_STYL,
LT_EDIT TYPE LVC_T_STYL.
LOOP AT ITAB INTO ls_outatb WHERE POSNR = '000010'.
V_INDEX = SY-TABIX.
LS_EDIT-FIELDNAME = 'VBELN'.
LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 8.
INSERT LS_EDIT INTO TABLE LT_EDIT.
INSERT LINES OF LT_EDIT INTO TABLE ls_outatb-handle_style.
MODIFY ITAB INDEX V_INDEX FROM ls_outatb TRANSPORTING
HANDLE_STYLE.
ENDLOOP.
* setting focus for created grid control
CALL METHOD CL_GUI_CONTROL=>SET_FOCUS
EXPORTING
CONTROL = G_GRID.
* Build fieldcat and set editable for date and reason code
* edit enabled. Assign a handle for the dropdown listbox.
PERFORM BUILD_FIELDCAT.
* Optionally restrict generic functions to 'change only'.
* (The user shall not be able to add new lines).
PERFORM EXCLUDE_TB_FUNCTIONS CHANGING LT_EXCLUDE.
**Vaiant to save the layout
LS_VARI-REPORT = SY-REPID.
LS_VARI-HANDLE = SPACE.
LS_VARI-LOG_GROUP = SPACE.
LS_VARI-USERNAME = SPACE.
LS_VARI-VARIANT = SPACE.
LS_VARI-TEXT = SPACE.
LS_VARI-DEPENDVARS = SPACE.
CALL METHOD G_GRID->REGISTER_EDIT_EVENT
EXPORTING
I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.
**Calling the Method for ALV output for First Grid
CALL METHOD G_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
IS_VARIANT = LS_VARI
IS_LAYOUT = GS_LAYOUT
I_SAVE = 'A'
CHANGING
IT_FIELDCATALOG = IT_FIELDCAT
IT_OUTTAB = ITAB[].
**Calling the Method for ALV output for Second Grid
CALL METHOD G_GRID1->SET_TABLE_FOR_FIRST_DISPLAY
* EXPORTING
* IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
CHANGING
IT_FIELDCATALOG = IT_FIELDCAT
IT_OUTTAB = ITAB[].
* Set editable cells to ready for input initially
CALL METHOD G_GRID->SET_READY_FOR_INPUT
EXPORTING
I_READY_FOR_INPUT = 1.
ENDFORM. "CREATE_AND_INIT_ALV
*& Form EXCLUDE_TB_FUNCTIONS
* text
* -->PT_EXCLUDE text
FORM EXCLUDE_TB_FUNCTIONS CHANGING PT_EXCLUDE TYPE UI_FUNCTIONS.
* Only allow to change data not to create new entries (exclude
* generic functions).
DATA LS_EXCLUDE TYPE UI_FUNC.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_DELETE_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_INSERT_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_MOVE_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_CUT.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE_NEW_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_UNDO.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
ENDFORM. " EXCLUDE_TB_FUNCTIONS
*& Form build_fieldcat
* Fieldcatalog
FORM BUILD_FIELDCAT .
DATA: L_POS TYPE I.
L_POS = L_POS + 1.
X_FIELDCAT-SCRTEXT_M = 'Delivery'(024).
X_FIELDCAT-FIELDNAME = 'VBELN'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-NO_ZERO = 'X'.
X_FIELDCAT-EDIT = 'X'.
X_FIELDCAT-OUTPUTLEN = '10'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
X_FIELDCAT-SCRTEXT_M = 'Item'(025).
X_FIELDCAT-FIELDNAME = 'POSNR'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-OUTPUTLEN = '5'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
X_FIELDCAT-SCRTEXT_M = 'Del Date'(015).
X_FIELDCAT-FIELDNAME = 'LFDAT'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-OUTPUTLEN = '10'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
ENDFORM. " build_fieldcat
*& Module STATUS_0100 OUTPUT
* text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
IF G_CUSTOM_CONTAINER IS INITIAL.
**Initializing the grid and calling the fm to Display the O/P
PERFORM CREATE_AND_INIT_ALV.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
Regards
vijay -
Hello,
Im using LV2013 with office 2013 report tool kit. I am trying to use Word edit cell to input values in table previously created in template .doc.
Indeed, i trying the example Generate report from template and didnt works well. I search for solution and I see it was a problem with previous version but it seems not solve totally in this version for word office 2010.
http://digital.ni.com/public.nsf/allkb/4041ECB5D02BA57D862579A00002FE8D
I checked this thread but i didnt get it to works. http://forums.ni.com/t5/LabVIEW/Problem-with-append-table-and-Word-2010/m-p/2190960#M702610
Any way to solve it?.
Thanks for help.
Fred
Attachments:
error.png 32 KB
Untitled 1.vi 19 KB
exampleTemplate.doc 37 KBHello, I solve it adding this to Word_insert_Table.
http://forums.ni.com/t5/LabVIEW/Report-Generation-MS-Word-Table-Bug/td-p/1605170
Thanks.
Open [LabVIEW installation folder]\vi.lib\addons\_office\_wordsub.llb\Word_Insert_Table.vi
There is a nested for loop that interprets the provided string array data and reformats it into a long ASCII string for the copy buffer. It should look like this:
Change the nested loop to look like this:
The changes I've made are twofold:
1. Within the inner loop, replace the "\n" char with a Tab character
2. Just after the inner loop, add a new "concatenate strings" function that adds "\n". -
I Have a Mac 10.9.5 I have Photoshop CS 5.. Also have Photoshop CC. As of last month was able to edit any image with either program,as of today I can't edit images in either program. I can't see and editing I've done ,but when close the image both program ask (do you want to save changes) I look at the image I don't see any changes to save. Please help Thanks for time in advance
Please describe the steps involved in the issue exactly (with screenshots maybe).
What have you done for trouble-shooting so far?
http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html -
Unable to edit Cells in Hyperion Planning:
Hi,
Users are unable to edit cell values in particular webform.Even with Administartor access also unable to edit.
After Selecting Particular combination in that form am unable to select another combinations.When i used serch option in the menu.The Planning system is loging out.Please help on these Issue.Thanks for all replies. Now, i am able to edit the cell on single click.
-
Hi All,
I am using the REUSE_ALV_GRID_DISPLAY Function Module to display data in grid and make a column editable using EDIT = 'X' in the fieldcat.Depending on the value in the Column some other column value should change.But the grid values are not getting refreshed.Is there any way to catch the event when the user enters the value in the grid and presses the ENTER button.
I have an idea of how to handle this situation in case of objects but using Function how can I do this?
Thanx in advance.hi, Samson
At first, I must to say I'm very glad to hear that my suggestion is helpful to you.
About the problem on 'DATA_CHANGED'.
You mentioned that 'through a Function Call in which all the other events like TOP OF PAGE'.
I guess the FM is 'REUSE_ALV_EVENTS_GET', right?
hehe, if so, dono't worry, my friend.
you can do like following:
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = ITAB_EVENTS
EXCEPTIONS
LIST_TYPE_WRONG = 1
OTHERS = 2.
CLEAR STR_EVENTS.
STR_EVENTS-NAME = SLIS_EV_DATA_CHANGED.
STR_EVENTS-FORM = <b>'DATA_CHANGED'</b>.
APPEND STR_EVENTS TO ITAB_EVENTS.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = ITAB_EVENTS
EXCEPTIONS
LIST_TYPE_WRONG = 1
OTHERS = 2.
FORM <b>DATA_CHANGED</b> USING RR_DATA_CHANGED TYPE REF TO CL_ALV_CHANGED_DATA_PROTOCOL.
ENDFORM.
Through you can't find the entry about DATA_CHANGE in 'REUSE_ALV_EVENTS_GET' return, you can add a entry manually by yourself. SAP will care this event.
The FORM will be triggered when the edited cell lost focus.
You can have a try, hope it will be helpful.
thanks -
Need help in ALV grid editable cells
Hi,
I have created a ALV Grid program in which i made certain cells as editable cells.Now my question is if suppose i have 2 rows in my output then if i change the 2nd rows some cells, then some calculation has to perform till this it is fine but nw i want to modify the 3rd rows some cells as per the changes in 2nd row.
How to do it with ALV oops concepts.
I have refered BCALV_EDIT_02 and BCALV_EDIT_03 these std programs.
Thanks & Regards
MadhuriHello Madhuri
I recommend to do any post-processing of the changed data OUTSIDE your event handler method (HANDLE_DATA_CHANGED).
Within the event handler method do all required validations and the trigger PAI by calling method CL_GUI_CFW=>SET_NEW_OK_CODE (for an example refer to my sample report ZUS_SDN_TWO_ALV_GRIDS in alv)
Now at PAI of your screen you can do any kind of post-processing, calculation, etc. within the itab used for the ALV list.
Regards
Uwe -
My 6 month old Mac is using iPhoto. Please advise when I copy the photo from iPhoto to add to a word document while creating a pictorial artical as soon as it is pasted the picture it turns black, I have tried many different methods to over come the issue but unsuccessful. In the past the iPhoo was default for direct download from a card, This I have now changed but in the meantime there are photographs that I need to use. I understand window completly but still on the nursery steps with Mac.
Please advise HeatherAs I said before I am reluctanct to delete and reinstall the iPhoto as I only have the one copy of the file i am using stored in iphoto file and I caint loose them.
All storage hardware and all computers will fail. Volumes will get corrupted. Mistakes will happen.
Please learn from our past mistakes and from our past data losses: please have and keep regular backups.
Either via Time Machine (which is marvelously transparent, and very easy), or backups created via some other mechanisms and tools. Old Toad recommends an external disk, and that's very effective. If this is a portable Mac, then Time Capsule devices are also very handy, as you don't have to remember to connect the backup device; so long as the Mac is within wireless range of the Time Capsule, backups will happen.
Time Machine backups can also be used to replace your files or even to upgrade to a new Mac, should your computer be lost or stolen, or should your computer or your storage fail.
If you have not already seen these, Mac Basics and Find Out How could be interesting.
As for your photos... I wouldn't expect this to be iPhoto and wouldn't go for an iPhoto reinstall as the first step, I'd tend to wonder if this is a bug or feature in Microsoft Word, or possibly a format incompatibility with what Office supports. iPhoto organizes and edits the photos that are stored in your ~/Pictures media directory. Try using iWork (if you have that) or some other tool (Apple Mail) that accepts and processes photos, and see if you can localize the problem. Depending on the image formats used, also see if exporting the picture from iWork into a jpeg-format picture — something other than the image format you're currently using with the Microsoft Office imports — works. (FWIW, I use iWork for reading and writing Microsoft Office documents as well as Pages and Keynote files, and have been using iPhoto with those and other tools for many years, and haven't encountered these blacked-out images.) -
Hi all,
I create a vi that inserts in a word template table values .
This work's fine but the table have 4 columns and if i update less than 4 column (example 3) the other is filled with the last column inserted (the last column is replied in the remains column).
I attach the code created.
Another question is why, also if i add an 2d array in the table, if i don't repeat the insertion for each column (for loop) the only column recorded is the first?
I attach the part of code
Bytelabs.it
Attachments:
edit cell to insert data in a exist table on word template.jpg 24 KBThese are expected behaviors. I suggest you to implement an high level API that do what you are planning to do.
Best regards,
Enrico
Maybe you are looking for
-
Inserting a logo into the header and footer
Hey Team I have a workbook with 5 worksheets. On sheet1 I have a button programed to open a new Word document; pull information from fields on 3 other sheets and creates a letter from that data. I have two company logos pasted into sheet5, Pic1 and
-
Persistently scrolling video for video out
Maybe someone can help me here I just got a mac mini and want to use it for video I hoooked it up to an old RCA tube, using S video and the video adapter. I accidentally hit the frame rate to PAL while setting it up and it started scrolling & became
-
How to deal with mega passwords
I saw this Lexar JumpDrive (USB flashdrive) at Target, which included Lexar's Secure II software, allowing one to password protect a USB flashdrive. It seemed like a great place (about $20 for a 4 gig drive) to store all the passwords I can't seem to
-
XA Transaction Support In OC4J 10.1.2
Does OC4J support XA transactions using non emulated data sources? Or does 10.1.2 support XA transactions at all (across datasources-db or jms)?
-
Make produciton order long text mandatory...
Hi All.. We want to make produciton order long text mandatory. Tried with SHD0 where we unable to find the proper field. please confirm is it possible with any ways??? one more thing ... what ever the long text has been entered in the produciton orde