Add system properties (like _version, _createdAt) to existing Database
Hello,
I have a SQL-Database with 1200 entries. I created this database 2 years ago for an Windows phone 8 application. Now I started to develop a new Application and wanted to use this database in it. Now I wanted to use the Feature of OfflineSync.
The Problem seems the table Needs to have the columns _Version, _createdAt and _updatedAt, but my table doesn't have it. Is there any possibility to add this?
Thank you and best regards
Thomas
Are you using the .NET backend? If so, you can set up automapper to map to default values. The version field is optional, and for createdAt and updatedAt, you can hardcode a value. See this blog post for more details:
http://blogs.msdn.com/b/azuremobile/archive/2014/05/19/mapping-between-database-types-and-client-type-in-the-net-backend-using-automapper.aspx
Similar Messages
-
Reading locale system properties like set-variables of a windows Client
Hello,
is there a possibility to read locale system properties like set-variables of a windows Client?
We want to read path-Info and user-info. Can I perhaps user javascript?
Best regards
Oliver ProdingerHi Oliver,
This code will work (assuming the client approves running of ActiveX)
<html>
<script>
var shell = new ActiveXObject("WScript.Shell");
var env = shell.Environment("process");
alert(env("COMPUTERNAME"));
alert(env("USERNAME"));
</script>
</html>
You can't really run it from WD, but what you can do is run this code from a portal component (DynPage/JspDynPage) that is running in the same page as your WD application and pass data by using portal eventing.
The portal component iview can have size of 1 pixel so it won't be seen...
Regards,
Omri -
Is it possible to add KM properties (like updated) to MS Office docs?
I have clients asking if it's possible to print KM metadata; updated by, updated date, and so on to MS office documents so this data is displayed in the document header or footer.
Any tips or ideas?
HenningHi Henning,
You could implement a content filter or a repository service (which then could alter the document when it is being saved / updated manually by some user).
The main task will be really to alter the document. In general, you have the possibility to use http://jakarta.apache.org/poi/hwpf/index.html - but that isn't too stable. An alternative would be to use an OpenOffice installation on the server and it's API, through which you can open even MS Word files and alter them, saving them afterwards again within MS format. But that API is really hard... (I have touched it several years ago, maybe it's more intuitive in the meantime, but I wouldn't expect that).
Hope it helps
Detlev -
In J2ME wireless toolkit, we can add system properties on the "User Defined" tab under settings. These properties can then be accessed by the Midlet. I am using JDeveloper with JWE. From within JDeveloper, I don't see any such option to set system properties. How can I achieve this?
Thanks for your help.You can manage midlet attributes from the property page of the midlet suite. This is in step 4 with ".MIDletInfo" settings.
Kalle -
How can I get system properties?
Hello,
How can I get the system properties like %JAVA_HOME% in my java codes, for example, I want to print it like this.
System.out.println("%JAVA_HOME%");
but it doesn't work!
Please give me a hand!To pass the Operating system environment variable to the Java "environment variables", you have to explicitely pass them on the command line eg.
java -Dmyjava.home=%JAVA_HOME% myClass
then, in your code use
String JAVA_HOME = System.getProperty ( "myjava.home" );regards,
Owen -
How to provide system properties to embedded oc4j
hi,
I want to provide some system properties like
-Dlog4j.configuration to the embedded oc4j server. How can I do that in Jdev 9.03
Thanks
AshwaniSelect the project you are running in the navigator then
set Java option in Project -> Properties -> Runner -> Java Options (-Dlog4j.configuration=your.value)
Cheers,
Kim -
Script to add not null columns to all tables in database
Hello,
I need to add 5 not null columns to my existing database (all tables).
The problem is that i do not want to loose the current data.
I need a script so that i need not do this manually for each table.
Can u suggest?
VishalHello,
I need to add 5 not null columns to my existing database (all tables).
The problem is that i do not want to loose the current data.
I need a script so that i need not do this manually for each table.
Can u suggest?
Vishal I always follow this step
1) Alter table <<tablename>> add(<<columnname>> <<datatype>>)
2) Update <<tablename>> set <<columnname>>=<<anyvalue>>
3) Alter table <<tablename>> modify(<<columnname>> <<datatype>> not null)
else
1) rename <<tablename>> to <<tablenamebk>>
2) drop table <<tablename>>
3) Alter table <<tablenamebk>> add(<<columnname>> <<datatype>>)
4) update <<tablenamebk>> set <<columnname>>=<<anyvalue>>
5) create table <<tablename>> (with additional columns with not null)
6) insert into <<tablename>> select * from <<tablenamebk>> -
How can I add an e-mail address to my existing icloud account? I curently only use one of the three.
Each iCloud account only has a single iCloud account. If you want, you can add up to 3 alias addresses that will receive email in the same iCloud inbox, as explained here: http://support.apple.com/kb/PH2622.
-
Add File Properties/Summary to render in After Effects?
Is there a way to add file description info to a render in after effects?
For instance:
I want to render out my sequence as an WMV - set up the render and output settings for that etc.
Once it's rendered I want to be able to right click on the file in Windows, click Properties, go to the Summary tab and see a specific title, let's say "Happy Bunnies" in the "Title" space in the description - Or if I open it in window media player, I want it to say "Happy Bunnies" as the title under "Now playing"
I don't want the file name to be Happy Bunnies.wmv - just the title of the video.
Is it possible to add properties like that to the output settings in After Effects? If I have 10 videos, I don't want to have to change that in all of them individually in windows - but rather add it to an output template in after effects.
thanksGood question, but for the most part I believe the answer is No. The real question here is, how this metadata gets added and AE does not support Title, Author and so on. when you do this in Media Player, it also only exists locally in your Library until you choose to update your media information. The only AE supports are chapters. When you add markers to a timeline and enter text in teh Chapter field, it will appear in the respective menu in WMP. short of that, you will have to use otehr tools, it seems. Windows Media Encoder is free, so that would be one option otehr tools, e.g. the one bundled with Nero Burning ROM also can as can of course several alternative commercial converters.
Mylenium -
Adding global system properties
Hello,
I know that there are some system properties that are available by default via the System.getProperty method. I also know that I can programatically add my own properties to that list.
My question is...Is there some way for an admin to add custom properties to that list through the Visual Administrator or Configuration Manager?
The reason I ask is because we want to have some properties that will have the same name on each runtime environment but different values. For example, let's say we have a property named NOTES_CONTENT_SERVER which will contain a different server name on DEV, QA and PROD.
Please ask if this question is not clear.
Thanks in advance for any help.
David.Start the config tool, then in the tree structure in the left hand pane navigate to: cluster-data > instance_XXXXX > server_IDXXXXX (highlight this node).
In the General tab that will appear in the right hand pane you will see a label titled "Java parameters:" with a corresponding text field where you can enter all your JVM parameters. Add your global parameter like so "-Dmy.global.prop=blah".
Save your settings, and restart the cluster, you can then lookup the property in your code: System.getProperty("my.global.prop");
Of cousre you could have learned how to set JVM properties with the config tool on the SAP help site here:
http://help.sap.com/saphelp_nw2004s/helpdata/en/4e/d1cf8d09a94ae79319893c2537d3a0/frameset.htm -
I would like to execute an existing BW report from Excel (using VBA).
I would like to execute an existing BW report from Excel (using VBA) and download the results into Excel. I understand that there is an Excel Add-In which (I believe) should allow me to do this. I am an experienced user of Excel / VBA but I have virtually no experience with SAP. If someone could point me to any source of information or specific instructions I would be extremely appreciative. I've done multiple searches on the internet but everything I find seems to assume more knowledge of SAP and SAP acronyms than I possess.
Paul,
If your company (or your client's company) has an SAP license (I assume this is the case, since there would be no other reason for you to want to access an SAP system using Excel), there is a person in your company who can request an ID for you. It is called a SAP Service Marketplace userid, more commonly called an 'S' number. This person in your company is usually a Basis Administrator. Go to your SAP Basis team and ask them for access to Service Marketplace.
The common solution for your Excel analysis problem is to install the Bex Analyzer on your PC. You will need these same guys (Basis Team) to help you with getting the required SAP access, and to install the associated SAP software onto your PC.
In the meantime, here is some bedtime reading for you.
Analysis &amp; Reporting: BEx Analyzer - Business Intelligence - SAP Library
Best Regards,
DB49 -
Customize System properties via GPO
Hi Everybody!!
I need to customize System Properties using a GPO. I mean apart from the system properties information y need to add company information as telephone number, web site, etc.
The Operative System of the computer client is Windows 7.
It will be very helpful if someone give me some tips or references for starting.
Thanks in advance.
AGfollow these steps:
1. Type regedit in RUN dialog box or Start Menu searchbox and press Enter. It'll open Registry Editor, now go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
Under this key, look for a key OEMInformation. If it doesn't exist, create it.
2. Now select OEMInformation key and in right-side pane, create following
String values and set their values as shown below:
Logo - path_of_OEMlogo.bmp_file
Manufacturer - Any_desired_name
Model - Any_desired_name
SupportHours - Any_desired_time_amount_like_24x7
SupportPhone - Any_desired_phone_number
SupportURL - Any_desired_URL
NOTE: OEMlogo.bmp file should be 96x96 in size and can be placed at any location
GPO
Use Group policy to create the Reg Key and aslo distribute the files to all PC local Drive -
Where do I read in the documentation the list of the system properties?
Yep. Sounds stupid. But it's true. I read in all these forums where and how to set the truststore and so on but it would be beautiful to understand it my own.
1. First I read setting the -Djavax.net.ssl.trustStore in the VM arguments.
2. Then I find out the the -D is just for setting something like a static property.
3. Next I want to read about the system properties. Who, what and where the Java tries to get this system property. I do not find it.
What I find is great help in these forums and solving this kind of problems seems easy... I googled and the only place I found info about this is in a boulder.ibm.com site:
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaha/sysprop2.htm
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaha/rzahajssesysprops.htm
I also found some info on a sun tutorial but not an official documentation. Do you know where to find it? It seems that my learning is always about finding the right place to find information and not guessing and trying.
Thanks!!Thanks for your soon reply. Yeah, I found that but I really was expecting a more serious documentation.
I have to admit that it is documented. Yes. But I didn't expect to find that in middle of a guide. But more in a reference or in a specification document. It's inside the "Customization" and in a table, yes... But it's a guide!!
I like Java but something to worry about is the "too many - too less" documentation. Documentation is not clear enough and all the hundreds of options you have can make the programming with Java no good. It would sound like a good thing have a lot of choices and hundreds of places to look info for but I am a bit disappointed with that. It's not clear enough to find the right info.
Anyway, thanks a lot for your help!! I will have to live with that.
Guide: http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html -
System Properties user.timzone different between dev. and prod. system
Hi all,
I am facing the following issue:
In our development system I get in http://<server:port>/sap/monitoring/SystemProperties -> dispatcher -> system properties a Europe/Berlin for user.timezone.
In our productive system I get in http://<server:port>/sap/monitoring/SystemProperties -> dispatcher -> system properties a GMT for user.timezone.
Can anybody explain which system property is requested by the J2EE-engine when calling this property?
I ask, because I wrote a small programm requesting the user.property via java (expecting j2ee-engine would do that too) an got back an empty string (on both systems).
So, how/where can I change the parameter, so that the development system uses GMT, too?
I already checked the spro settings in sap, they are identical. System -> status showes the same for both systems, too.
I hope for your help.
Thanks and regards
ChristianHello Chris,
I checked the system variables with TA SM51 ->goto -> server -> information -> environment.
There is nothing like the TZ variable on both systems (we use Linux).
Do you have an other idea?
How can I change the user.timezone shown in Java system properties?
Regards
Christian -
Cannot add a new SHIP_TO address to a exist customer by using Interface
Hi,
I am encountered an error when i am using Customer Import Interface to add a new SHIP_TO address to a exist customer,
the template format of the Excel i used like below: <will insert to table: ra_customers_interface_all>
Customer Num. | Customer Name | Site Name | Address | Site Use Code | ... ...
1 | oracle | AA | address1 | BILL_TO |... ...
1 | oracle | AA | address1 | SHIP_TO |... ...
1 | oracle | AB | address2 | SHIP_TO |... ...
I am able to import top 2 rows correctly, as those 2 sites with same Site Name AA;one is BILL_TO site and another one is SHIP_TO address; I tested for few customers, it can run correncty if the BILL_TO address and SHIP_TO address are same.
But when running import for the third row to add another SHIP_TO address<AB&address2> to the exist customer<1&oracle>,the error raised, it gave error message like below:
The Customer Number has been used by another customer,import failed !
I am not too clear about this error,i just want to add a SHIP_TO address to the exist customer<1&oracle> and don't want to create a new customer.
what should i pay attention to? please give me some tips,,,,,,
Thanks a lot...
Rock LeiDid you ever get a response or resolution? I have the same issue. Did you get a fix for this? If so, could you share?
Thanks
Maybe you are looking for
-
2330 noise when talking but not when connecting th...
I have bought the 2330 three days ago Its the second phone because the first one had a screen problem. With this one the problem is that when i call someone i hear a noise from the earphone especially when iam at home or indoor places. Also the pers
-
On sites like NicoNicoDouga and Youtube, the colors for things are completely off. http://boonce.org/up/Example.png
-
Lumia local search results does not sort by distan...
Since the Amber update, if I try to search for anything the results are no longer sorted by distance. For example - while trying to find my nearest hardware store the first result was not even in the same country! I had to scroll down several screen
-
Still no update for me!!! Please help
I still cannot update ?? Ive tried upgrading iTunes, restarting iPhone, but it still says I have the current software? What's the deal? Any suggestions?
-
JMS Unit-Of-Work in OSB Proxy Service
I'm trying to create a JMS Unit-of-Work OSB Service by populating the JMS transport user properties: JMS_BEA_UnitOfWork JMS_BEA_UnitOfWorkSequenceNumber JMS_BEA_IsUnitOfWorkEnd However, after publishing all of the messages to the Queue, JMS is not re