Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: Journal Entry Excel Macro via UI API. Error: Form - Bad Value

$
0
0

Hi John

You need to emulate the Ctrl+Tab keys after setting the BP Code.

Use it like

SBO_Application.SendKeys("KeysCombination")

 

Below is the documentation from UI help.

 

RegardsA
Edy

 

 

 

 

 

Visual Basic
Public Sub SendKeys( _    ByVal Text As String _ ) 

 

 

Parameters

 

Text
The key combination to send

 

 

Remarks

Each key is represented by one or more characters.

  • To specify a single keyboard character, use the character itself. For example, to send the letter A, use A for Text
  • To represent more than one character, append each additional character to the one preceding it. For example, to send the letters A, B, and C, use ABC for Text
  • The plus sign (+), caret (^), percent sign (%), tilde (~), and parentheses ( ) have special meanings in SendKeys. To send one of these characters, enclose it within braces ({}). For example, to send the plus sign, use {+}. Brackets ([ ]) have no special meaning in SendKeys, but you must enclose them in braces. In other applications, brackets do have a special meaning that may be significant when dynamic data exchange (DDE) occurs. To specify brace characters, use {{} and {}}.

To send characters that aren't displayed when you press a key, such as ENTER or TAB, and keys that represent actions rather than characters, use the codes shown below: 

KeyCode
Backspace{BACKSPACE}, {BS}, or {BKSP}
Break{BREAK}
Caps Lock{CAPSLOCK}
Delete{DELETE} or {DEL}
Down Arrow{DOWN}
End{END}
Enter{ENTER}
Esc{ESC}
Help{HELP}
Home{HOME}
Insert{INSERT} or {INS}
Left Arrow{LEFT}
Num Lock{NUMLOCk}
Page Down{PGDN}
Page Up{PGUP}
Right Arrow{RIGHT}
Scroll Lock{SCROLLLOCK}
Tab{TAB}
Up Arrow{UP}
F1, F2, F3... {F1}, {F2}, {F3}...

To specify key combinations with any of the SHIFT, CTRL, and ALT keys, precede the key code with one or more of the following codes:

KeyCode
Shift{+}
Ctrl{^}
Alt{%}

To specify that any combination of SHIFT, CTRL, and ALT should be held down while several other keys are pressed, enclose the code for those keys in parentheses. For example, to specify holding down SHIFT while E and C are pressed, use " +(EC)". To specify holding down SHIFT, while E is pressed, followed by C without SHIFT, use " +EC".

Warning

  • SendKeys does not support sending the same key repeatedly.

     

  • SendKeys does not support sending keyboard combinations that are not relevant to SAP Business One. For example, all the function keys currently do not have any functionality associated with them.

See


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>