How to get a varchar type out of a hdbdd-model?
Hello,
I'd like to define the tree model input table type for the PAL function PREDICTWITHDT within CDS via an hdbdd-file. The tree model input data type needs varchar(5000), but string(5000) in hdbdd generates nvarchar(5000). When trying to use this tree model table with type nvarchar(5000) as input table in the AFM for the "Predict with Decision Tree" algorithm, one gets an error telling that the table column setting does not match the function specification.
Is there any possibility to get varchar from hdbdd?
Thanks,
Ingo
Hi There,
As per the SAP HANA Developer guide page no: 193
VARCHAR is not supported from CDS types.
Regards,
Krishna Tangudu
Similar Messages
-
How to get this report format out ?
Hello all experts,
Sample table creations like the following. Note checkno under xcheck table is not unique. Have tried pivotting the xcheck table then link pivoted xcechk with xcert using certno and invno but this willl end up getting duplicate records. Can u please help ? Basically I am stuck at how to get that vendor name out on the report
create table xcert(
certseq number primary key,
certno varchar2(5) not null,
vendor varchar2(25));
create table xcheck(
checkseq number primary key,
checkno varchar2(8) not null,
invno varchar2(100);
Xcert Data
certseq certno vendor
1 C1001 BP GAS
2 C1002 BUG PEST CONTROL
3 C1003 BP GAS
4 C1004 BP GAS
5 C1005 WILLIES BESTxcheck Data
checkseq checkno invno
1 EF500001 C1001,C1003,C1004
2 EF500002 C1002
3 EF500002 C1005Looking for a following report format
checkno invno vendor
EF500001 C1001,C1003,C1004 BP GAS
EF500002 C1002 BUG PEST CONTROL
EF500002 C1005 WILLIES BEST Thank you
MunsharHi, Munshar,
MunSharmi wrote:
Frank,
"I don't see why you would need another column. What would you need to store, or retrieve, that a table like this wouldn't allow?
Notice my orignal xcheck table data plus a check date column
{code}
checkseq checkno invno checkdate
1 EF500001 C1001,C1003,C1004 11/01/2010
2 EF500002 C1002 12/10/2010
3 EF500002 C1005 01/01/2011
{code}Sure, if you have other data that you haven't mentioned yet, then you need other columns, and maybe even other tables, to store that data.
Talking about this would be a lot easier if you described what you were trying to model in these tables, and what the different entities are.
after nomalization
{code}
seq(PK) checkseq checkno invno checkdate
1 1 EF500001 C1001 11/01/2010
2 1 EF500001 C1003 11/01/2010
3 1 EF500001 C1004 11/01/2010
4 2 EF500002 C1002 12/10/2010
5 3 EF500002 C1005 01/01/2011
{code}What do checkseq and checkdate represent? What is the realtionship between them? If there is another row with checkseq=3, will it necessarily have checkdate=01/01/2011? If there is another row with checkdate=01/01/2011, will it necessarily have checkseq=3?
Shouldn't I need to have the extra seq(PK), then use check seq to group the data report to meet users' target format ? Please adviseIt depends on what your entities are. If you explain that, then perhaps I can give some advice about how to model them.
In general, every type of entity requires a separate table. It looks like xcert represents one kind of entity, uniquely identified by certno. I assume there is some other kind of entity, uniquely identified by checkno, and that you have a table for that which you haven't needed to show in this thread.
Are you saying that there's some other entity, that is uniquely identified by checkseq? If so, it probably needs a table of it's own.
Every table should have a primary key. I had assumed that checkseq only served as the primary key of the xcheck table. If it serves some other purpose, then yes, you would need another column.
Many-to-many relationships usually require a separate table. I was guessing that xcheck was intended to record a many-to-many realtionship between xcert and some other table. Guessing is not always the best way to solve problems. I think it would be better if you explained what you want to do, rather than have me guess at it.
So far, what you've shown is analagous to an order entry system. One kind of entity is customer, another is supplier. Say you're running a company that sells products from many suppliers to many customers. There is a many-to-many relationship between customers and suppliers. Any customer may buy from many suppliers; any supllier may sell to many cutomers. You may have an orders table that keeps track of that many-to-many relationship. You may also have another entity, salesman, that also has many-to-many relationships with customers and suppliers. Depending on what exactly you consider an "order", there are lots of different ways to model this. Can a single order involve many customers? Can a single order involve many suppliers? Can a single order involve many salesmen? If an order always involves one customer buying from one supplier using one salesman, then you may only need four tables. If the situation is more complicated, then you may need more tables. -
How to get the Database type from weblogic Db connection
I want to use database version control in my application . that means different database type use different Sql Statement. Such as in weblogic7.0 if I create SqlServer JDBC pool then I will use some special Sqlserver sql Statement . such as some join statement. If I create Oralce JDBC pool then I have to use different Sql statement . because these two database support different Sql statement.
What my question is how to get the database type from the connection.For a normal jdbc driver you can use
Connection.getMetaData()
To get the meta data, in particular the getDatabase...() methods.
That might or might not work.
However, at the very least in the server you have access to the weblogic properties so you can parse the pool property to figure it out. -
[CS3][JS] How to get the file type of current document
Hi,
How to get the file type of current opening document (e.g., tif, jpeg, png) using JavaScript with Photoshop CS3.
I am using file object the open the files one by one in the folder (the files sometimes don't have the extensions).
If the current document is in tiff format then I need to convert to 8-bit, if its an Jpg image then needs to ignore the file.
Regards,
KarthikDo you really need to know the file type? What about just checking the bit depth?
var doc = activeDocument;
if (doc.bitsPerChannel != BitsPerChannelType.EIGHT) {//Not 8 bit
doc.bitsPerChannel = BitsPerChannelType.EIGHT;
//do your save etc
}else{
//Ignore -
How to get a pdf document out of a Document form
Hi all,
I have a question of how to get the actual PDF out of a Document Form, when I take the @document value I only get some xml representation of the form, but I need to get the actual PDF.
Thanks in advance
Sincerely
KimThe @document is the way to get the PDF out from the DocumentForm varibale. If you get just the data, it's because the DocumentForm was populated with just the data in the first place.
Make sure you submit PDF from your form and not just the data.
Jasmin -
How to get the attribute values out?
Hi everyone,
<root>
<category name="Mens Clothing" id="0">
<subcategory>Active/Baselayer Tops</subcategory>
<subcategory>Active/Baselayer
Bottoms</subcategory>
</category>
<category name="Womens Clothing" id="1">
<subcategory>aaa</subcategory>
<subcategory>bbb</subcategory>
</category>
</root>
How to get the attribute values out? For example "Mens
Clothing" and "Womens Clothing".
// the line below returns "Active/Baselayer Tops" and
"Active/Baselayer Bottoms"
var myXml:XML = new XML(event.result);
Thanks,
MayHere is attribute identifier operator from FB Help:
@ attribute identifier Operator
Usage myXML.@attributeName
Identifies attributes of an XML or XMLList object. For
example, myXML.@id identifies attributes named id for the myXML XML
object. You can also use the following syntax to access attributes:
myXML.attribute("id"), myXML["@id"], and myXML.@["id"]. The syntax
myXML.@id is recommended. To return an XMLList object of all
attribute names, use @*. To return an attribute with a name that
matches an ActionScript reserved word, use the attribute() method
instead of the @ operator.
Operands attributeName:* — The name of the attribute.
Example
How to use examples
The first example shows how to use the @ (at sign) operator
to identify an attribute of an element:
var myXML:XML =
<item id = "42">
<catalogName>Presta tube</catalogName>
<price>3.99</price>
</item>;
trace(myXML.@id); // 42The next example returns all attribute
names:
var xml:XML =<example id='123' color='blue'/>
var xml2:XMLList = xml.@*;
trace(xml2 is XMLList); // true
trace(xml2.length()); // 2
for (var i:int = 0; i < xml2.length(); i++)
trace(typeof(xml2
)); // xml
trace(xml2.nodeKind()); // attribute
trace(xml2
.name()); // id and color
} The next example returns an attribute with a name that
matches a reserved word in ActionScript. You cannot use the syntax
xml.@class (since class is a reserved word in ActionScript). You
need to use the syntax xml.attribute("class"):
var xml:XML = <example class='123'/>
trace(xml.attribute("class")); -
Could anyone please tell me how to get my cd/disc out. thanks
could anyone please tell me how to get my disc/cd out of my desk top? thanks
CD/DVD - Eject Stuck
CD/DVD - Eject Stuck (2)
CD/DVD - Eject Stuck (3)
CD/DVD - Eject Stuck (4)
CD/DVD - Eject Stuck (5) -
How to get one of specfic out parameters in groovy
hi groups,
jdev 11.1.1.5.0 - adfbc
here i learned from Jabr how to get the two out - parameter values which used in procedure.
How to get two out param which is used in Procedure
ok fine. that part is well enough.
by normally,
if the function/ procedure which is defined in AM. which i want to call in groovy ,means i used the following
adf.object.applicationModule.FuncFindEmployeeDescription(params)above groovy is for
if the function or procedure which will return one parameters means ok.
here my scenario i want call the procedure which is defined in AM. the procedure will return two out params values. i need only first value.
how can i do this.?
reference: in this thread you can the procedure with two out params
How to get two out param which is used in Procedurethis is to subu123.
oh ho. :(
this is to santos
thanks santosh as you said i tried.
public HashMap ProcFindProdQueryDesc( String p_bu,
String p_prod_id,
Number p_prod_rev
CallableStatement st = null;
try{
String sql = "begin proc_find_prod_query_desc" +
"(:p_bu," +
":p_prod_id," +
":p_prod_rev," +
":p_desc1," +
":p_desc2," +
":var_lang)" +
";" +
"end;";
st=getDBTransaction().createCallableStatement(sql,this.getDBTransaction().DEFAULT);
st.setObject("p_bu",p_bu);
st.setObject("p_prod_id",p_prod_id);
st.setObject("p_prod_rev",p_prod_rev);
st.registerOutParameter("p_desc1",Types.VARCHAR);
st.registerOutParameter("p_desc2",Types.VARCHAR);
st.setInt("var_lang",1);
st.execute();
System.out.println("p_desc1" +(String)st.getObject("p_desc1"));
System.out.println("p_desc2" +(String)st.getObject("p_desc2"));
HashMap map = new HashMap();
map.put("p_desc1", (String)st.getObject("p_desc1"));
map.put("p_desc2", (String)st.getObject("p_desc2"));
return map;
catch(SQLException e)
throw new JboException(e);
finally
if(st!=null)
try{
st.close();
catch(SQLException e){
e.printStackTrace();
throw new JboException (e);}
if(PscdProdId != null)
adf.object.applicationModule.ProcFindProdQueryDesc(PscdBu,PscdProdId,PscdProdRev).p_desc1;
[1823] DCBindingContainer.reportException :oracle.jbo.JboException
[1824] oracle.jbo.JboException: JBO-29000: Unexpected exception caught: groovy.lang.MissingMethodException, msg=No signature of method: com.rits.suplr.model.servicesAM.xImpl.ProcFindProdQueryDesc() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.Long) values: [MEL, BU01, 0]
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1226)
at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1261)
at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:1083)
at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2141)
at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1835)
at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1897)
at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:840)
at com.rits.suplr.model.views.ProdScoreCardDetlVORowImpl.getItemDesc(ProdScoreCardDetlVORowImpl.java:519)
at com.rits.suplr.model.views.ProdScoreCardDetlVORowImpl$AttributesEnum$16.get(ProdScoreCardDetlVORowImpl.java:181)
at com.rits.suplr.model.views.ProdScoreCardDetlVORowImpl.getAttrInvokeAccessor(ProdScoreCardDetlVORowImpl.java:555)
at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:870)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1157)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:751)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:779)
at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.updateValuesFromRow(JUCtrlAttrsBinding.java:145)
at oracle.jbo.uicli.jui.JULabelBinding.updateValuesFromRow(JULabelBinding.java:114)
at oracle.jbo.uicli.binding.JUIteratorBinding.updateValuesFromRows(JUIteratorBinding.java:338)
at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:838)
at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:679)
at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:474)
at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4437)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3507)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3340)
at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:2906)
at oracle.jbo.jbotester.panel.BindingPanel.setBindingContext(BindingPanel.java:120)
at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:88)
at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:71)
at oracle.jbo.jbotester.form.BindingForm.createMasterPanel(BindingForm.java:63)
at oracle.jbo.jbotester.form.BindingForm.init(BindingForm.java:98)
at oracle.jbo.jbotester.form.JTForm.<init>(JTForm.java:72)
at oracle.jbo.jbotester.form.BindingForm.<init>(BindingForm.java:50)
at oracle.jbo.jbotester.form.FormType$1.createForm(FormType.java:63)
at oracle.jbo.jbotester.form.FormType.createForm(FormType.java:199)
at oracle.jbo.jbotester.form.FormType.createTab(FormType.java:270)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:248)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:207)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:203)
at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:140)
at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:123)
at oracle.jbo.jbotester.tree.Tree.processTreeMouseClicked(Tree.java:728)
at oracle.jbo.jbotester.tree.Tree.access$100(Tree.java:96)
at oracle.jbo.jbotester.tree.Tree$TreeMouseListener.mouseClicked(Tree.java:141)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
at java.awt.Component.processMouseEvent(Component.java:6292)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:617)
at java.awt.EventQueue$2.run(EventQueue.java:615)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: groovy.lang.MissingMethodException: No signature of method: com.rits.suplr.model.servicesAM.SupplierAMImpl.ProcFindProdQueryDesc() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.Long) values: [MEL, BU01, 0]
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
at bc4j.com_rits_suplr_model_views_ProdScoreCardDetlVO_ItemDesc_null.gs.run(bc4j.com_rits_suplr_model_views_ProdScoreCardDetlVO_ItemDesc_null.gs.groovy:3)
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1208)
... 73 more
## Detail 0 ##i didnot know why it's expecting signature of that method defined in AM .
it's already there. Anything special with groovy while accessing. -
How to get the Data type of the Internal Table.
How can i get the data types used to create an internal table
TYPES : BEGIN OF t_makt,
matnr TYPE matnr,
maktx TYPE maktx,
END OF t_makt.
Like this some function will give me which data types i have used for the internal table at run time.Use the FM ..
data : int_fcat type SLIS_T_FIELDCAT_ALV.
REUSE_ALV_FIELDCATALOG_MERGE ..
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = sy-repid
I_INTERNAL_TABNAME = 'IMAT' <-- this is your internal table
I_INCLNAME = sy-repid
CHANGING
CT_FIELDCAT = int_fcat <--- this contains all the fields along with their characteristics ...
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3. -
How to get the current type of a generic Field Symbol
Hi Experts,
I have a Field Symbol:
FIELD-SYMBOLS: <lf_any> TYPE ANY.
I loop around an internal table with a generic structure and assign their fields to my fieldsymbol:
LOOP AT it_data ASSIGNING <lf_any>.
After executing this statement I am able to see the current Absolute Type of the field Symbol in debugger.
For example this could be TYPE ZX_1 in first loop, TYPE ZX_2 in second loop and so on...
Question: How can I get this current type within my Loop?
The Reason is I have to CREATE DATA xxx TYPE "current type of the field symbol".
Thanks,
DanielHello Daniel
Do you have the RTTI classes available on your system? If so then try the following:
*& Report ZUS_SDN_RTTI_GET_TYPE
REPORT zus_sdn_rtti_get_type.
DATA: gt_knb1 TYPE STANDARD TABLE OF knb1,
gd_type TYPE string.
DATA: go_typedescr TYPE REF TO cl_abap_typedescr,
go_strucdescr TYPE REF TO cl_abap_structdescr.
FIELD-SYMBOLS: <gs_struc> TYPE ANY.
START-OF-SELECTION.
APPEND INITIAL LINE TO gt_knb1.
LOOP AT gt_knb1 ASSIGNING <gs_struc>.
go_typedescr = cl_abap_typedescr=>describe_by_data( <gs_struc> ).
go_strucdescr ?= go_typedescr.
gd_type = go_typedescr->get_relative_name( ).
WRITE: / 'Type=', gd_type.
gd_type = go_strucdescr->get_relative_name( ).
WRITE: / 'Type=', gd_type.
ENDLOOP.
END-OF-SELECTION.
Regards
Uwe -
How to get the Mime Type of the file?
Hi Everyone!,
I want to upload a random file into my table as a BLOB and simultaneously want to fill the respective another column with its MimeType. Earlier I used Oracle Apex for this, but due to my new requirement I need to make this happen with the help of PL SQL and Forms. Could you help me in getting how we can upload the file and most importantly, how we can get its Mime-Type.
My chosen file can be of any type; it can be doc ,pdf,txt,xls ,gif or any other format.
If you could provide the example with your reply then it would be great.
Thanks
Harbinderhi
for that u have to use webutil.
declare
f varchar2(100);
begin
f := webutil_file.file_open_dialog();
if f is not null then
:doc.doc_name := f;
end if;
end;and
DECLARE
filename VARCHAR2(256);
BEGIN
filename := CLIENT_GET_FILE_NAME (File_Filter => 'jpg (*.jpg)|*.*|');
READ_IMAGE_FILE(filename, 'jpg', 'image');
END; sarah -
How do i get my iphone 4s out of being stuck in headphones mode. When i dont even have headphones plugged in, it says headphones ringer. I've tried blowing and sucking in the jack, didnt work. I tried using a blowdrier in the jack, didn't work. I also tried putting it in the freezer while in a plastic bag, trying to clean it with a qu tip, and plugging and unplugging the headphones more than 100 times, still nothing and i also restored, reset, and put my iphone in DFU mode, and still nothing seems to work. DOES ANYONE KNOW ANY OTHER WAY I NEED HELP PLEASEEEEEEEE!!!!!!!!!!! ANYONE ANY OTHER WAYS TO FIX IT?!?!??!? That would be very helpful
I had the same problem. I squirted a drop of WD40 in the headphone hole and then used a plastic dental toothpick and twisted it around in the hole. It amazingly worked.
Good luck -
How to get the field type from the database dictionary in screen painter
hi,
I wanted to create a new input field that input field should have the data element from the structure that i have created. How to get the data field type from the database dictionary in the screen painterhi
good
there is two kinds of evernt
PROCESS ON HELP-REQUEST
PROCESS ON VALUE-REQUEST.
which ll help you to give two types of help one is f1 help and another one is f4 help
go through this link
http://help.sap.com/saphelp_nw2004s/helpdata/en/47/e07f622b9911d2954f0000e8353423/content.htm
thanks
mrutyun -
How to get the document type, name and revision from the search page cv04n
Hello,
After performing cv04n and getting a list of documents satisfying the search criteria, how can I then get the document type, name and revision of the selected document using ABAP?
ThanksHI,
IN table DRAW... u have Document type, Version and document number.
In Table DRAT also u get Document Type, Version, Number and Description of Doucment.
Regards
SAB -
How do you make Robot type out a variable String?
I don't know why I'm having an issue with this. I want the Robot class to type out a string one character at a time as if I were sitting at the keyboard and doing it myself. There will be many, variable strings to type. Here is what I tried to do and it fails miserably:
private String myString = "example";
// Loop for each character in the string
for(int i=0; i<numChars; i++)
// Get the current character
myChar = myString.charAt(i);
// Convert the character to a keycode
myKC = (int)myChar;
// Press the key, release the key
myRobot.keyPress(myKC);
myRobot.delay(10);
myRobot.keyRelease(myKC);
}When I run it, I get some unexpected output in the Notepad window I have open. Instead of it spelling out "example", it gives me something entirely different:
e - instead of 'e', it gives me a '5'
x - instead of 'x', it gives me nothing at all
a - instead of 'a', it gives me a '1'
m - instead of 'm', it gives me a '-'
p - instead of 'p', 'F1' is triggered and the Notepad help window pops open
l - instead of 'l', it gives me nothing at all
e - instead of 'e', it gives me another '5'
What am I doing wrong here? This was supposed to be easy...
Edited by: ConQuesimo on Jan 19, 2010 12:06 AMConQuesimo wrote:
// Convert the character to a keycode
myKC = (int)myChar;
I don't see a keycode conversion here, keycodes for a to z are the same as ASCII, what I do see is an int conversion of what ever character set you have running on your computer. If I take your approach to conversion, then I get different codes on different keyboards/systems also. What I finally ended up doing is making a map for my keys and everything started working fine.
For me, the problem expressed itself when I went from my Windows with MS-Keyboad to my Ubuntu with an earlier style MS-Keyboad. Character values and single character strings come out fine, but when I would try converting char to KeyCode as you have done, the results were not always what was desired. I've not looked into it to see what was actually causing the problem, ti was faster and easier just to make the map.
Maybe you are looking for
-
My mac has OSX version 10.8.2 and I'm try to install an aiport express base station which requires 10.5.7 or later. Yet when I try to install the software it says the base station is not compatible with my mac version - how do I resolve?
-
This Applescript will correct links & programs for posting
Since I have been posting to these forms, I have been annoyed by the conversions that are done to my posts. A word surrounded by asterisks gets bolded. When I decide to make a link to a post, I can never remember the exact format. When I posted Apple
-
ICal with Outlook or Sunbird using calDAV?
Situation: I want to view & edit several calendar files from one Leopard user on an XP PC. Sunbird: I can view ONE calendar from this user using http://example.server.com+:8008/calendars/users/+username/calendar but I can't figure out how to get Sunb
-
Hi Guys, I was wonderng if you could help me. I have been a FIOS customer for many years and have a multi-room HD DVR and 2 HD set-top boxes. I have always had some problems during playback on some recordings where the picture and sound will skip
-
I am using Secure Global Desktop Enterprise Edition (4.0) on Fedora Core 3 Linux. Sometime, the system shows the following error message when I click the application. Starting... Locating session... Couldn't start application. Please inform an Admini