How can I limit Analog Output to positive only?
Hi everyone,
I'm using PXI 7350 and UMI 7774 for controlling a DC brushless motor,
the problem is that the drive for the motor only supports positive voltage input ( to adjust motor's velocity).
So how can I limit the output voltage to positive ?
I'm new to labview and I have been confused by this problem for a long time , so it will be geat if there's any example vi of that !
Thanks for any help !
What are you using for feedback? If you are only moving in one direction, then you don't have to worry about limiting the analog to positive, the controller will take care of that.
Similar Messages
-
how can i synchronize analog output and analog input timings to generate and measure voltage at the same time.
Read this Tutorial
http://zone.ni.com/devzone/cda/tut/p/id/3615#toc3
And also refer to this link where You have repeated this question.
PS: Please stick to one thread. That way, its easier to keep track of your query and answers -
How can i limit the user to enter only A to Z and space in JFormattedText
dear
i want to use JFormatedTextField in two manners
1.Limit the no of charecters.means in a text field only 20 charecters r allowed.
2.and also check the enterd charecter must be a to z and space not other chareters r allowed.
3.same for numbers means 0 to 9 and decimal.
how can i do by using the JFormated TextFilef.Probably lacks in some cases but what the hell.
* Filename: JSMaskedTextField.java
* Creation date: 22-mei-2004
* Author: Kevin Pors
package jsupport.swingext;
import java.awt.event.KeyEvent;
import java.util.Arrays;
import javax.swing.JTextField;
* A masked textfield is a textfield which allows only a specific mask of
* characters to be typed. If characters typed do not occur in the mask
* provided, the typed character will not be 'written' at all. The default mask
* for this <code>JSMaskedTextField</code> is <code>MASK_ALPHA_NUMERIC</code>
* @author Kevin Pors
* @version 1.32
public class JSMaskedTextField extends JTextField {
/** Masking for alphabetical lowercase characters only. */
public static final String MASK_ALPHA_LCASE = "abcdefghijklmnopqrstuvwxyz ";
/** Masking for alpha-numeric characters (lcase/ucase) only. */
public static final String MASK_ALPHA_NUMERIC = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ";
/** Masking for alphabetical uppercase characters only. */
public static final String MASK_ALPHA_UCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ ";
/** Masking for numbers only. */
public static final String MASK_NUMERIC = "0123456789";
/** Masking for hexadecimals. */
public static final String MASK_HEXADECIMAL = "0123456789ABCDEF";
* An array of keyevent constants defining which keys are always to be
* allowed, no matter what.
private final int[] ALWAYS_ALLOWED = new int[] { KeyEvent.VK_BACK_SPACE,
KeyEvent.VK_DELETE, KeyEvent.VK_UP, KeyEvent.VK_DOWN,
KeyEvent.VK_LEFT, KeyEvent.VK_RIGHT, KeyEvent.VK_SHIFT,
KeyEvent.VK_HOME, KeyEvent.VK_END};
/** Boolean specifying whether casing should be ignored. */
private boolean ignoringCase = true;
/** Specifying whether the maskin is enabled */
private boolean isMaskingEnabled = true;
/** The mask for the textfield. */
private String mask = MASK_ALPHA_NUMERIC;
* Creates a default number field.
public JSMaskedTextField() {
super(null, null, 0);
Arrays.sort(ALWAYS_ALLOWED);
* Creates a number field, with a specified number of columns.
* @param columns The columnnumber.
public JSMaskedTextField(int columns) {
super(null, null, columns);
Arrays.sort(ALWAYS_ALLOWED);
* Creates a JSMaskedTextField with a masking.
* @param mask The masking to be used.
public JSMaskedTextField(String mask) {
super(null, null, 0);
Arrays.sort(ALWAYS_ALLOWED);
setMask(mask);
* Gets the masking for this masked textfield.
* @return Returns the mask.
public String getMask() {
return this.mask;
* Gets whether this JSMaskedTextField should be ignoring casing.
* @return Returns if the component should be ignoring casing.
public boolean isIgnoringCase() {
return this.ignoringCase;
* Checks whether masking is enabled. Default should be true.
* @return Returns true if masking is enabled, false if not.
public boolean isMaskingEnabled() {
return this.isMaskingEnabled;
* Sets whether it should be ignoring casing when checking for alpha-chars.
* @param ignoringCase The ignoringCase to set.
public void setIgnoringCase(boolean ignoringCase) {
this.ignoringCase = ignoringCase;
* Sets the masking for this textfield. The masking will determine which
* characters can be typed. If the characters in de <code>mask</code> do
* not occur in the typed character, it won't be typed.
* @param mask The mask to set.
public void setMask(String mask) {
this.mask = mask;
* Sets the masking enabled. If <code>false</code> this component will
* behave just like a normal textfield.
* @param isMaskingEnabled true if masking should be enabled.
public void setMaskingEnabled(boolean isMaskingEnabled) {
this.isMaskingEnabled = isMaskingEnabled;
* Sets text of this textfield. If the blah blah.
* @see javax.swing.text.JTextComponent#setText(java.lang.String)
public void setText(String text) {
for (int i = 0; i < text.length(); i++) {
if (getMask().indexOf(text.charAt(i)) < 0) { // does not occur
return;
super.setText(text);
* @see javax.swing.JComponent#processKeyEvent(java.awt.event.KeyEvent)
protected void processKeyEvent(KeyEvent e) {
if (!isMaskingEnabled()) {
return;
char typed = e.getKeyChar();
int code = e.getKeyCode();
for (int i = 0; i < ALWAYS_ALLOWED.length; i++) {
if (ALWAYS_ALLOWED[i] == code) {
super.processKeyEvent(e);
return;
if (typed == KeyEvent.VK_BACK_SPACE) {
super.processKeyEvent(e);
if (isIgnoringCase()) {
String tString = new String(typed + "");
String ucase = tString.toUpperCase();
String lcase = tString.toLowerCase();
if (getMask().indexOf(ucase) < 0 || getMask().indexOf(lcase) < 0) {
e.consume();
} else {
super.processKeyEvent(e);
return;
} else { // not ignoring casing
if (getMask().indexOf(typed) < 0) {
e.consume();
} else {
super.processKeyEvent(e);
} -
When searching with Google how can I limit site to UK ones only
When using Google search, how can I by default limit reply to UK sites only?
Or use a link like this:
*http://www.google.co.uk/webhp?tbs=ctr:countryUK%7CcountryGB&cr=countryUK%7CcountryGB&q=
Keyword version:
*http://www.google.co.uk/webhp?tbs=ctr:countryUK%7CcountryGB&cr=countryUK%7CcountryGB&q=%s -
How can I limit a double value to two decimal place?
How can I limit a double value to two decimal place?
Java keeps on adding zero's to a simple double subtraction:
1497 - 179.64 = 1317.3600000000001The answer must have been simply: 1317.36If the trouble is with output ...
If the trouble is with value accuracy ...The trouble is with OPs understanding of and/or expectations of IEEE 754 floating point numbers. o_O
[And it's probably a view (output) issue.]
how can i actually use numberformat to cut those
unwanted decimal places?Read the API - Puce already provided the link. -
How can we modify alv output list
Hi
this is fazil.
Please tell me any body How can we modify alv output list.
Thanks & Regards
Fazil
[email protected]Fazil,
check the program,
You can find the code in this program 'BCALV_FIELDCAT_TEST'
*& Report BCALV_FIELDCAT_TEST *
This report allows to modify the fieldcatalog of a corresponding
output table and to view the effects of your changes directly.
Note that for some changes you need to newly display the whole
ALV Grid Control, e.g., DDIC-Fields are read only the first time
you call SET_READY_FOR_FIRST_DISPLAY.
Note also that not all scenarios can be tested since the output
table does not comprise all fields to test available features
of the fieldcatalog. Copy this program and extend the output
table accordingly if you want to test such a special feature.
(The field CARRNAME in 'gt_sflight' was added to test field REF_FIELD
and TXT_FIELD of the fieldcatalog - see what happens if you
calculate subtotals by carrier-id).
report bcalvt_fieldcatalog .
data: ok_code type sy-ucomm,
save_ok_code type sy-ucomm,
fieldcatalog for output table
gt_fieldcat type lvc_t_fcat,
fieldcatalog for fieldcatalog itself:
gt_fcatfcat type lvc_t_fcat,
gs_fcatlayo type lvc_s_layo.
Output table
data: begin of gt_sflight occurs 0.
data: carrname type s_carrname.
include structure sflight.
data: end of gt_sflight.
data: g_max type i value 100.
data: g_all type c value SPACE.
Controls to display gt_sflight and corresponding fieldcatalog
data: g_docking type ref to cl_gui_docking_container,
g_alv type ref to cl_gui_alv_grid.
data: g_custom_container type ref to cl_gui_custom_container,
g_editable_alv type ref to cl_gui_alv_grid.
LOCAL CLASS Definition
class lcl_event_receiver definition.
public section.
methods handle_data_changed
for event data_changed of cl_gui_alv_grid
importing er_data_changed.
endclass.
class lcl_event_receiver implementation.
method handle_data_changed.
at the time being, no checks are made...
endmethod.
endclass.
data: event_receiver type ref to lcl_event_receiver.
end-of-selection.
set screen 100.
*& Module STATUS_0100 OUTPUT
text
module status_0100 output.
set pf-status 'BASIC'.
set titlebar 'BASICTITLE'.
create ALV Grid Control in the first run
if g_docking is initial.
perform create_and_init_controls.
endif.
endmodule. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
module user_command_0100 input.
save_ok_code = ok_code.
clear ok_code.
case save_ok_code.
when 'SUBMIT'.
set the frontend fieldcatalog
ATTENTION: DDIC-Fields are not updated using this method!
(see 'RESTART')
call method g_alv->set_frontend_fieldcatalog
exporting
it_fieldcatalog = gt_fieldcat.
call method g_alv->refresh_table_display.
call method cl_gui_cfw=>flush.
when 'RESTART'.
Destroy the control currently visible and display it again
using the changed fieldcatalog.
perform restart_sflight.
when '&ALL'.
perform switch_visibility.
endcase.
endmodule. " USER_COMMAND_0100 INPUT
*& Form CREATE_AND_INIT_CONTROLS
text
--> p1 text
<-- p2 text
form create_and_init_controls.
create object g_docking
exporting
dynnr = '100'
extension = 150
side = cl_gui_docking_container=>dock_at_bottom.
create object g_alv
exporting
i_parent = g_docking.
create object g_custom_container
exporting
container_name = 'CC_0100_FIELDCAT'.
create object g_editable_alv
exporting
i_parent = g_custom_container.
register events
create object event_receiver.
set handler event_receiver->handle_data_changed for g_editable_alv.
call method g_editable_alv->register_edit_event
exporting
i_event_id = cl_gui_alv_grid=>mc_evt_modified.
perform build_fieldcatalogs changing gt_fieldcat gt_fcatfcat.
perform modify_fieldcatalog changing gt_fcatfcat.
perform select_data. "CHANGING gt_sflight
call method g_alv->set_table_for_first_display
changing
it_outtab = gt_sflight[]
it_fieldcatalog = gt_fieldcat[].
optimize column width of grid displaying fieldcatalog
gs_fcatlayo-cwidth_opt = 'X'.
Get fieldcatalog of table sflight - alv might have
modified it after passing.
call method g_alv->get_frontend_fieldcatalog
importing et_fieldcatalog = gt_fieldcat[].
call method cl_gui_cfw=>flush.
Display fieldcatalog of table sflight:
call method g_editable_alv->set_table_for_first_display
exporting
is_layout = gs_fcatlayo
changing
it_outtab = gt_fieldcat[]
it_fieldcatalog = gt_fcatfcat[].
register events
create object event_receiver.
set handler event_receiver->handle_data_changed for g_editable_alv.
endform. " CREATE_AND_INIT_CONTROLS
*& Form restart_sflight
text
--> p1 text
<-- p2 text
form restart_sflight.
data: ls_fieldcat type lvc_s_fcat.
free g_docking and thus g_alv
call method g_docking->free.
clear g_docking.
clear g_alv.
create new instances
create object g_docking
exporting
dynnr = '100'
extension = 150
side = cl_gui_docking_container=>dock_at_bottom.
create object g_alv
exporting
i_parent = g_docking.
This is an internal method to invalidate all fields in the fieldcat
loop at gt_fieldcat into ls_fieldcat.
clear ls_fieldcat-tech_comp.
modify gt_fieldcat from ls_fieldcat.
endloop.
Newly display the list with current fieldcatalog.
call method g_alv->set_table_for_first_display
changing
it_outtab = gt_sflight[]
it_fieldcatalog = gt_fieldcat.
Get fieldcatalog - it might be changed by ALV in the last call
call method g_alv->get_frontend_fieldcatalog
importing
et_fieldcatalog = gt_fieldcat[].
call method g_editable_alv->refresh_table_display.
call method cl_gui_cfw=>flush.
endform. " restart_sflight
*& Form select_data
text
--> p1 text
<-- p2 text
form select_data.
data: lt_sflight type table of sflight with header line,
ls_scarr type scarr.
select data of sflight
select * from sflight into table lt_sflight up to g_max rows.
copy data to gt_sflight and update CARRNAME
loop at lt_sflight.
move-corresponding lt_sflight to gt_sflight.
select single * from scarr into ls_scarr
where carrid = gt_sflight-carrid.
gt_sflight-carrname = ls_scarr-carrname.
append gt_sflight.
endloop.
endform. " select_data
*& Form BUILD_FIELDCATALOGS
text
<--P_GT_FIELDCAT text
<--P_GT_FCATFCAT text
form build_fieldcatalogs changing p_fieldcat type lvc_t_fcat
p_fcatfcat type lvc_t_fcat.
data: ls_fcat type lvc_s_fcat.
Fieldcatalog for table SFLIGHT: p_fieldcat
generate fieldcatalog automatically
call function 'LVC_FIELDCATALOG_MERGE'
exporting
i_structure_name = 'SFLIGHT'
I_CLIENT_NEVER_DISPLAY = 'X'
changing
ct_fieldcat = p_fieldcat[]
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
shift all column positions to the right except for MANDT
loop at p_fieldcat into ls_fcat.
if ls_fcat-fieldname ne 'MANDT'.
add 1 to ls_fcat-col_pos.
if ls_fcat-fieldname = 'CARRID'.
ls_fcat-txt_field = 'CARRNAME'."link CARRNAME to CARRID
endif.
modify p_fieldcat from ls_fcat.
endif.
endloop.
create a new line for CARRNAME in p_fieldcat
clear ls_fcat.
ls_fcat-fieldname = 'CARRNAME'.
ls_fcat-ref_table = 'SCARR'.
ls_fcat-col_pos = 1.
insert new line before CARRID (do not forget MANDT!).
insert ls_fcat into p_fieldcat index 1.
Fieldcatalog for table LVC_T_FCAT:p_fcatfcat
Generate fieldcatalog of fieldcatalog structure.
This fieldcatalog is used to display fieldcatalog 'p_fieldcat'
on the top of the screen.
call function 'LVC_FIELDCATALOG_MERGE'
exporting
i_structure_name = 'LVC_S_FCAT'
I_CLIENT_NEVER_DISPLAY = 'X'
changing
ct_fieldcat = p_fcatfcat[]
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Hide all fields that are not documented (valid for release 4.6A)
perform hide_fields changing p_fcatfcat.
endform. " BUILD_FIELDCATALOGS
*& Module EXIT_PROGRAM INPUT
text
module exit_program input.
leave program.
endmodule. " EXIT_PROGRAM INPUT
*& Form MODIFY_FIELDCATALOG
text
<--P_GT_FCATFCAT text
form modify_fieldcatalog changing p_fcatfcat type lvc_t_fcat.
data ls_fcat type lvc_s_fcat.
loop at p_fcatfcat into ls_fcat.
ls_fcat-coltext = ls_fcat-fieldname.
ls_fcat-edit = 'X'.
if ls_fcat-fieldname = 'COL_POS' or ls_fcat-fieldname = 'FIELDNAME'.
ls_fcat-key = 'X'.
endif.
modify p_fcatfcat from ls_fcat.
endloop.
endform. " MODIFY_FIELDCATALOG
form hide_fields changing p_fieldcat type lvc_t_fcat.
data: ls_fcat type lvc_s_fcat.
Only show documented fields of fieldcatalog.
For a documentation choose "Help->Application Help" in the menu.
loop at p_fieldcat into ls_fcat.
if not (
ls_fcat-fieldname eq 'CFIELDNAME'
or ls_fcat-fieldname eq 'COL_POS'
or ls_fcat-fieldname eq 'COLDDICTXT'
or ls_fcat-fieldname eq 'COLTEXT'
or ls_fcat-fieldname eq 'CURRENCY'
or ls_fcat-fieldname eq 'DD_OUTLEN'
or ls_fcat-fieldname eq 'DECIMALS_O'
or ls_fcat-fieldname eq 'DECMLFIELD'
or ls_fcat-fieldname eq 'DO_SUM'
or ls_fcat-fieldname eq 'DRAGDROPID'
or ls_fcat-fieldname eq 'EDIT_MASK'
or ls_fcat-fieldname eq 'EMPHASIZE'
or ls_fcat-fieldname eq 'EXPONENT'
or ls_fcat-fieldname eq 'FIELDNAME'
or ls_fcat-fieldname eq 'HOTSPOT'
or ls_fcat-fieldname eq 'ICON'
or ls_fcat-fieldname eq 'INTLEN'
or ls_fcat-fieldname eq 'INTTYPE'
or ls_fcat-fieldname eq 'JUST'
or ls_fcat-fieldname eq 'KEY'
or ls_fcat-fieldname eq 'LOWERCASE'
or ls_fcat-fieldname eq 'LZERO'
or ls_fcat-fieldname eq 'NO_OUT'
or ls_fcat-fieldname eq 'NO_SIGN'
or ls_fcat-fieldname eq 'NO_SUM'
or ls_fcat-fieldname eq 'NO_ZERO'
or ls_fcat-fieldname eq 'OUTPUTLEN'
or ls_fcat-fieldname eq 'QFIELDNAME'
or ls_fcat-fieldname eq 'QUANTITY'
or ls_fcat-fieldname eq 'REF_FIELD'
or ls_fcat-fieldname eq 'REF_TABLE'
or ls_fcat-fieldname eq 'REPREP'
or ls_fcat-fieldname eq 'REPTEXT'
or ls_fcat-fieldname eq 'ROLLNAME'
or ls_fcat-fieldname eq 'ROUND'
or ls_fcat-fieldname eq 'ROUNDFIELD'
or ls_fcat-fieldname eq 'SCRTEXT_L'
or ls_fcat-fieldname eq 'SCRTEXT_M'
or ls_fcat-fieldname eq 'SCRTEXT_S'
or ls_fcat-fieldname eq 'SELDDICTXT'
or ls_fcat-fieldname eq 'SELTEXT'
or ls_fcat-fieldname eq 'SP_GROUP'
or ls_fcat-fieldname eq 'SYMBOL'
or ls_fcat-fieldname eq 'TECH'
or ls_fcat-fieldname eq 'TIPDDICTXT'
or ls_fcat-fieldname eq 'TOOLTIP'
or ls_fcat-fieldname eq 'TXT_FIELD' ).
ls_fcat-tech = 'X'.
endif.
modify p_fieldcat from ls_fcat.
endloop.
endform.
form switch_visibility.
data: lt_fcatfcat type lvc_t_fcat,
ls_fcat type lvc_s_fcat.
call method g_editable_alv->get_frontend_fieldcatalog
importing ET_FIELDCATALOG = lt_fcatfcat.
if not g_all is initial.
perform hide_fields changing lt_fcatfcat.
g_all = SPACE.
else.
loop at lt_fcatfcat into ls_fcat.
if ls_fcat-tech eq 'X'.
ls_fcat-tech = SPACE.
ls_fcat-no_out = 'X'.
modify lt_fcatfcat from ls_fcat.
endif.
endloop.
g_all = 'X'.
endif.
call method g_editable_alv->set_frontend_fieldcatalog
exporting it_fieldcatalog = lt_fcatfcat.
call method g_editable_alv->refresh_table_display.
endform.
Don't forget to rewaard if useful.. -
How can I limit the number of emails retained on my ipad air?
How can I limit the number of emails that are retained on my iPad Air? Because of legal requirements of a long-term project, I cannot permanently delete emails relating to that project from my ISP's mail server. My gmail account contains over 17,000 emails and, upon setting up my new iPad, and updating to ios 7.1.1, I now have all 17,000+ emails taking up space. I would like to limit the emails by count as I was able to do on my old iPad running ios 5.1.1 OR to retain them based on date range. I have not found any instructions on the support discussions or general iPad blogs that allow me to do that. Any way around this problem?
I also miss the 5.1.1 mail search feature that allowed me to narrow the search by from/to/subject/all. Does anyone know if that feature is available using some little-known ios 7.1.1 feature?
Thanks for your help.jlfcba wrote:
IOS 7.1.1 doesn't show a "days to sync" parameter anywhere in SETTINGS/Mail,Contacts,Calendars/ACCOUNTS/GMAIL Account/ GMAIL Acccount Info. There is nothing in iTunes relating to such an option either. So, it seems I'm back to square one.
If you have a decent mail provider like Microsoft Hotmail or Outlook.com mail it does.
If you have Gmail it does not. Quite right. Gmail is rubbish. -
I have limited space on my new ipad. How can I limit the number of songs from my itunes on my imac from going to my ipad when I connect the two?
you can do this by keeping the external hard drive connected and doing the following
-hold shift key down on computer while opening iTunes and a prompt will appear to choose a library
-select choose library, iTunes should bring up your explorer windows where you can search for the external HD
-after you find the external HD find the iTunes folder you just copied to it
-after opening the iTunes folder look for the file that says iTunes library.itl or if you can't see that extenstion just look for a document looking thing in the iTunes folder that shows up as a database file
-double click the database file and boom iTunes should load your library without having to copy it to the computer
PS: do make sure that if you are going to do it this way, make sure that the external HD is connected at all times, because if you don't then you will get exclamation marks next to your iTunes songs
double PS: if you are unsure how to find out if the iTunes library file is a database file just right click it and choose properties and under the type it should say database file
hope this helps:) -
Hi, how can I limit the number of emails I can see on my iPhone 5. Every time in delete one and older email gets added from my live.co.uk account (where I want to keep my 2500 emails) I just don't want many on my phone. Thanks
You can't. Why on earth would you attempt to manage 2500 emails with setting up a folder structure or some means of doing so? Simply keeping them in an single inbox is not realistic, no matter what email client you use.
-
How can I return to the same position in the calling order details form
I am Calling a form for creating a new item from order details form, so after creating The new item I want to returned the item code to the calling form to same position in The order details form , how can I return to the same position in the order details form
Waiting for your valuable answer .
Best regards
Jamil AlshaibaniDear Friends
My actual problem description as the following
I have a form for production order screen , and this form contain header and details blocks , so the user in the details will select Type Code , and he will go the next field that is Item Code Field search for specific Item Code if it is not exist he has to call the Item Definition Form by using this script
CALL_FORM(ITEM_DEFINITION);
Then when he finished defining the Item , and I assign the item code as the following in the :
WHEN-BUTTON-PRESSED TRIGGER
:GLOBAL.ITEM_CODE_VAR := :ITEM_CODE;
DO_KEY('exit_form');
But I don't know where to keep this assignment
:ITEM_CODE := :GLOBAL.ITEM_CODE_VAR;
inside the caller form in which trigger do I have to use when it return from the caller form it should assign the :GLOBAL.ITEM_CODE_VAR to the :ITEM_CODE and the cursor it should show inside the ITEM_CODE , and as I mention it does not return to the same location of The ITEM_CODE when it return from the calling form
Waiting for your valuable answer .
With example please .
Best Regards
Jamil Alshaibani -
How can I limit numeric codes in a text field?
How can I limit numeric codes in a text field? For example I want to list Industry SIC codes and I want to block someone from inputting an exlcuded industry code.
We don't offer that type of input restriction for a text field.
Can you create a list of all allowed codes and use a Drop Down menu or Single/multiple Choice field?
Thanks,
Josh -
How can I get the cursor's position in a opened file and display a menu?
Hello,
I want to make a program by which I will be able to display a panel/pops up menu at the corsor's current position, (In any text/doc file or in the desktop, we can display a menu by right click of the mouse.) Now I want my program to do the same task.
More clearly-
1. First I would save some words or sentences in a file(aa.txt).
2. Then I would open another text file/ a word/ excel/ or any other editor( bb.txt / cc.doc / dd.xls / ee.html ).
3. While editing or writing something in the opened file, if I click the right mouse button/ press a key (ctrl+space), a menu will appear containing the sentences I saved in the file(aa.txt) previously.
My program will tell me the cursor's position in bb.txt / cc.doc / dd.xls / ee.html that i opened. And display a menu. my problem is not reading / writing in a file.
My problem is how can I get the cursor's position in a opened file display a menu at that position by a mouse/key action*.
Would you please help me on this regard.
ThanksDrClap wrote:
I think the OP wants to start up an application like MS Word and then operate it from a Java program.Doesn't The Monkey's Paw do that? What a second, according to Wikipedia:
[http://en.wikipedia.org/wiki/The_Monkey%27s_Paw]
<quote>
...the paw of a dead monkey is a talisman that grants its possessor three wishes, but the wishes come with an enormous price.
The moral of the story is contained in this description of the paw: "It had a spell put on it by an old fakir," said the sergeant-major, "a very holy man. He wanted to show that fate ruled people's lives, and that those who interfered with it did so to their sorrow."
</quote>
So I guess that a non-sequitor ... or is it? -
How can I limit the number of rows returned by a select stat
How can I limit the number of rows returned by a select
statement. I have a query where I return the number of stores
that are located in a given area.. I only want to return the
first twenty-five stores. In some instances there may be over
200 stores in a given location.
I know is SQL 7 that I can set the pagesize to be 25....
Anything similiar in Oracle 8i?
nullDebbie (guest) wrote:
: Chad Nale (guest) wrote:
: : How can I limit the number of rows returned by a select
: : statement. I have a query where I return the number of
: stores
: : that are located in a given area.. I only want to return the
: : first twenty-five stores. In some instances there may be
: over
: : 200 stores in a given location.
: : I know is SQL 7 that I can set the pagesize to be 25....
: : Anything similiar in Oracle 8i?
: If you are in Sql*Plus, you could add the statement
: WHERE rownum <= 25
: Used together with an appropriate ORDER BY you
: could get the first 25 stores.
Watch out. ROWNUM is run before ORDER BY so this would only
order the 25 selected
null -
How can i retrieve the output of procedure using a select statement ?
Hi every one.
this mite be dumm ?
how can i use the output of the a procedure containing multiple rows of data in a select statement ?This is not a SQL Developer question. You should ask it in the SQL and PL/SQL forum.
The short answer is you can't. Sounds is if you are trying to use MSSQL techniques in oracle. Learn oracle techniques -
How can I store an output, i.e C from the attatchment in an array?
Attachments:
Testing.vi 18 KBHi, Se
Take a look my example.
Attachments:
Testing.vi 23 KB
Maybe you are looking for
-
Structure of Dynamic Table in Function Module
Hi, I'm trying to find a way to get as OUTPUT a dynamic Table from a Function Module. I declared a table called T_DATA without a type. And this table should have a dynamic table back. The problem that I get the data back but, I only found a data with
-
SP Level required for NW 7.0 Ehp1
Hi, We are on SAPKB70017, KA -17 and system --> status showing ECC 6.0, I heard that, if we apply SP stack 19 (Basis -19, abap -19, bw - 21 and PI basis patches ) system --> system will change from ECC 6.0 to SAP EHP 1 Ple clarify this Regards, Yash
-
Hi all! I'm currently trying to finish up an assignment that is due in a few hours. Here's my delimma, according to the text book and the professor the following algorithm to convert an infix to postfix is as follows: 1. Two stacks will be used in th
-
How to define authorization by department for Query in BW
Hello: How to define the authorization by department for Query in BW. as follow: The Northern part manager can run any Query, and return the data of Northern part only. pls give me the method. Regards&Thanks!
-
I can not install a printer brother dcp-375CW after installing mavericks, what can I do
I can not install a printer brother dcp-375CW after installing mavericks, what can I do