How to save the configuration upon exiting?
I want to save some results right before my application quit (exit). How?
Thanks a lot
I'm not a big fan of serialized data.Any specific reasons for this?Serialization has its good points -- it can be very
easy to do in Java, for example.
But my main beef with it is that the data is hard to
share -- as a specification,
it locks you into Java. Compare that to designing to
an XML Schema -- once the Schema is set, separate
developers can go off and design against that.That makes a lot of sense.
Can you enlighten me as to how to go about savingthe
data in XML.I am working on a GUI where the user
enters info and i thought of using serializationto
save the contents.But just now you mentioned thetwo
ways.Please can you enlighen me so that i can tryout
and see if it's feasible for me to use in myproject.
If you haven't played around with XML in Java,
there's a definite learning
curve, and an alphabet soup of options: SAX, DOM,
TrAX, StaX.
The last project I worked on that used a lot of XML
went with
XMLBeans: http://xmlbeans.apache.org/
Once you have a good schema definition, it's easy to
work with.
As for Java and XML, perhaps the best thing is to go
here:
http://forum.java.sun.com/forum.jspa?forumID=34
Yes i haven't worked with XML.I was planning to read an online tutorial on it.Thanks for enlightening me JAM.
Similar Messages
-
WS-C4006 How to save the configuration
Hi,
I have Cisco 4006 Switch model; normally we don't need to save the configuration on this device but somehow this device is not saving any configuration.
Can someone help me; how to save the configuration. Attached is the IOS version detail.
****************** show version ******************
WS-C4006 Software, Version NmpSW: 7.1(2)
Copyright (c) 1995-2002 by Cisco Systems, Inc.
NMP S/W compiled on Feb 7 2002, 16:53:43
GSP S/W compiled on Feb 07 2002, 15:24:55
System Bootstrap Version: 5.4(1)
Hardware Version: 3.2 Model: WS-C4006hi
can u verify whether this command is enabled in ur box or not ?
set config mode text auto-save enable
hope you are aware of this cli which does save the configs automatically after every 30mins.
regds -
I have a Dell laptop running Windows XP version 5.1 service pack 3. I downloaded Firefox version 4 and I no longer get an option to save and quit upon exit. How do I restore this feature?
One change in Firefox 4 is to by default stop Firefox displaying the warning message, but it can be turned back on by changing some preferences.
# Type '''about:config''' into the location bar and press enter
# Accept the warning message that appears, you will be taken to a list of preferences
# Locate the preference '''browser.tabs.warnOnClose''', if its value is set to '''false''', double-click on it to change its value to '''true'''
# Repeat this for these 3 preferences '''browser.warnOnQuit''', '''browser.warnOnRestart''' and '''browser.showQuitWarning''' -
How to find the ME29N 'USER EXIT' when our save the release PO after.
How to find the ME29N 'USER EXIT' when our save the release PO after.
which user exit will be used?
thanks.
alex.Hi,
process :
go to tranx code : ME29N ,
System---->Status , here copy the program name (SAPLMEGUI),
go to abap editor and specify the program name SAPLMEGUI and find the package "ME".
tranx code : CMOD , Utilites--->Sap Enanchement,
specify the package name : ME
and execute, displays a list of exits ,
and find out our suitable exit based on requirement.
check these : EXIT_SAPMM06E_021
reg
Siva -
How to save the print configuration
Hello, in my business, employees need to print multiple documents per day.
But for these specific documents, they need to print with a size of 105%.
My question is how to save the print configuration because they need to remplace the size by 105% every time ...
Please help me
(Sorry for my bad english, i'm french)it was here : http://www.hostingpics.net/viewer.php?id=684187301.jpg
this screen appear after i press File -> print
and i need to put 105% every time i want to print document, how to save this ?
edit : this is not in the printer configuration -
How to save the setting in MDM import manager?
How to save the setting in MDM import manager? After I configure all things in MDM import manager, I try to save the setting, let's say, saved map name is " Test002", and then I export this map into desktop. After that, I logon Import manager again, and import this map file, system show me the same thing that I have to configure it again, because nothing was changed, what I configured before, were all disappeared.
Hi Alfred ,
are You not saving this map in Import Manager ? Import Manager itslef saves the map and remember it . Exporting map is only for backup .
Pls make changes and save the map . Exit and relogin . then see the map . It should be there . Pls let us know the result .
- An -
How to find the exact user exit for our requirement?
Dear Mr. keerthi,
can you please explain me how to find the exact user exit for our requirement?Hi sandip
There is more than one method in which you can check for user-exits.The following method is used very often.
<b>How to find the exact user-exit for your requirement.</b>
1. You can check the user exists using transaction SE85.
2. Repository Information System -> Enhancements -> Customer exits
3. You can search the user-exits by package name.
4. Double click on each exit name to check the function module exits.
<b>The procedure to find the package name.</b>
Execute transaction SE93
Enter the tcode of the transaction for which you want to check the user exit.
Example: if you want to find the user-exit for purchase orders while changing, enter ME22n and press display.
You will get to see the package name
But you need to confirm that the user exit will get triggered at the appropriate event.
( example: you might want some validations to be done ON SAVE of a purchase order)
<b>Checking if the user-exit is getting triggered or not.</b>
1. Open the user exit function module (that you have got in step 4) in Tcode SE37.
2. Click on where used button. In the pop up that immediately appears choose only programs .
3. You will get a list of programs. Double click on the program name.
4. You will get the list of location where this function module user exit is used.
5. Place session break points at each of these location ( at each CALL FUNCTION statement)
6. Now go to your transaction ( say change purchase order tcode:Me22n) and check if the user exit is getting triggered on appropriate event.
regards,
Prasad -
Dynamically built query on execution How to save the data in Object Type
Hi,
In pl/sql I am building and executing a query dynamically. How can I stored the output of the query in object type. I have defined the following object type and need to store the
output of the query in it. Here is the Object Type I have
CREATE OR REPLACE TYPE DEMO.FIRST_RECORDTYPE AS OBJECT(
pkid NUMBER,
pkname VARCHAR2(100);
pkcity VARCHAR2(100);
pkcounty VARCHAR2(100)
CREATE OR REPLACE TYPE DEMO.FIRST_RECORDTYPETAB AS TABLE OF FIRST_RECORDTYPE;Here is the query generated at runtime and is inside a LOOP
--I initialize my Object Type*
data := new FIRST_RECORDTYPETAB();
FOR some_cursor IN c_get_ids (username)
LOOP
x_context_count := x_context_count + 1;
-- here I build the query dynamically and the same query generated is
sql_query := 'SELECT pkid as pid ,pkname as pname,pkcity as pcity, pkcounty as pcounty FROM cities WHERE passed = <this value changes on every iteration of the cursor>'
-- and now I need to execute the above query but need to store the output
EXECUTE IMMEDIATE sql_query
INTO *<I need to save the out put in the Type I defined>*
END LOOP;
How can I save the output of the dynamically built query in the Object Type. As I am looping so the type can have several records.
Any help is appreciated.
Thankshai ,
solution for Dynamically built query on execution How to save the data in Object Type.
Step 1:(Object creation)
SQL> ED
Wrote file afiedt.buf
1 Create Or Replace Type contract_details As Object(
2 contract_number Varchar2(15),
3 contrcat_branch Varchar2(15)
4* );
SQL> /
Type created.
Step 2:(table creation with object)
SQL> Create Table contract_dtls(Id Number,contract contract_details)
2 /
Table created.
Step 3:(execution Of procedure to insert the dynamic ouput into object types):
Declare
LV_V_SQL_QUERY Varchar2(4000);
LV_N_CURSOR Integer;
LV_N_EXECUTE_CURSOR Integer;
LV_V_CONTRACT_BR Varchar2(15) := 'TNW'; -- change the branch name by making this as input parameter for a procedure or function
OV_V_CONTRACT_NUMBER Varchar2(15);
LV_V_CONTRACT_BRANCH Varchar2(15);
Begin
LV_V_SQL_QUERY := 'SELECT CONTRACT_NUMBER,CONTRACT_BRANCH FROM CC_CONTRACT_MASTER WHERE CONTRACT_BRANCH = '''||LV_V_CONTRACT_BR||'''';
LV_N_CURSOR := Dbms_Sql.open_Cursor;
Dbms_Sql.parse(LV_N_CURSOR,LV_V_SQL_QUERY,2);
Dbms_Sql.define_Column(LV_N_CURSOR,1,OV_V_CONTRACT_NUMBER,15);
Dbms_Sql.define_Column(LV_N_CURSOR,2,LV_V_CONTRACT_BRANCH,15);
LV_N_EXECUTE_CURSOR := Dbms_Sql.Execute(LV_N_CURSOR);
Loop
Exit When Dbms_Sql.fetch_Rows (LV_N_CURSOR)= 0;
Dbms_Sql.column_Value(LV_N_CURSOR,1,OV_V_CONTRACT_NUMBER);
Dbms_Sql.column_Value(LV_N_CURSOR,2,LV_V_CONTRACT_BRANCH);
Dbms_Output.put_Line('CONTRACT_BRANCH--'||LV_V_CONTRACT_BRANCH);
Dbms_Output.put_Line('CONTRACT_NUMBER--'||OV_V_CONTRACT_NUMBER);
INSERT INTO contract_dtls VALUES(1,CONTRACT_DETAILS(OV_V_CONTRACT_NUMBER,LV_V_CONTRACT_BRANCH));
End Loop;
Dbms_Sql.close_Cursor (LV_N_CURSOR);
COMMIT;
Exception
When Others Then
Dbms_Output.put_Line('SQLERRM--'||Sqlerrm);
Dbms_Output.put_Line('SQLERRM--'||Sqlcode);
End;
step 4:check the values are inseted in the object included table
SELECT * FROM contract_dtls;
Regards
C.karukkuvel -
Cannot save the configuration after zone changing.
The customer is trying to save the configuration after a Zone changing. The error message is the following:
# copy running-config startup-config
2008 Oct 10 13:22:45 SW1SU %ZONE-2-ZS_INIT_FAILED: Failed to save persistent configuration
2008 Oct 10 13:22:45 SW1SU %ZONE-2-ZS_INIT_FAILED: pss_create failure, code = 0x8048001e, URL = sync:/mnt/pss/zone_zs_active_zset_cfg
2008 Oct 10 13:22:45 SW1SU %SYSMGR-2-CFGWRITE_ABORTED: Configuration copy aborted.
Configuration update aborted: request was abort
or
#copy running-config startup-config
2008 Oct 10 13:22:45 SW1SU %ZONE-2-ZS_INIT_FAILED: Failed to save persistent configuration
2008 Oct 10 13:22:45 SW1SU %ZONE-2-ZS_INIT_FAILED: pss_create failure, code = 0x8048001e, URL = sync:/mnt/pss/zone_zs_active_zset_cfg
Does someone has any idea how to solve this problem?The root cause is the compact flash card. There was a software fix attempted in 3.0.2 but is not 100%. If the problem shows up again, the reload will clear it, but the ultimate fix is to replace the compact flash card with a new one. In some instances, based on your service provider, this may be a complete chassis replacement. This requires license re-homing as licenses are tied to the chassis serial number. I believe it has to do with the number of writes to the CF card. At some point, the card goes into a read only state and reload is the only option to clear it.
-
How to save the text from text area back to a text file?
Hi all,
Now I am doing a small panel which containts a JTextArea, this TextArea will read the content from a text file, then display the content of the text file on the TextArea itself.
My idea is, allow the user to modify the content in the textarea (I set it Editable=true;), then save it. After the user press the save button, the content in the text file will be updated accordng to the user;s modification on TextArea.
I had done the displaying part by using JavaI/O (BufferReader), now any expert here know how to update the TextArea content back to the text file itself? PLease teach me, THANKS !!!NOw I had manage to clear out the error, but now the problem is when I click on the 'save' button, this function clear out the entire text file for me !!!
The code are as below:
if(e.getSource()== vButtons[0])
try{
String str;
String Ky = tArea.getText();
BufferedWriter buffWrite=null;
BufferedWriter in1 = new BufferedWriter(new FileWriter("Keyword.txt"));
buffWrite.write(Ky);
buffWrite.flush();
buffWrite.close();
in1.close();
catch (IOException ex) {
ex.printStackTrace();
if(e.getSource()== vButtons[1])
new panel();
dispose();
if(e.getSource()== vButtons[2])
System.exit(0);
} Please tell me how to save the TextArea to the text file, THANKS !!! -
'Cannot save the configuration. Another process already wrote version 11.
Hello:
I shutdown the directory server 6.3.1 on Solaris 10, then modified the file dse.ldif by hand, then restarted the DS.
Now whenever I try and make changes through startconsole it gives me an error. I have put back the *.startOK" file and even rebooted.
I cannot seem to figure out how to correct this problem. Any ideas?
WARNING 21 console hostname "The console caught exception: 'Cannot save the configuration. Another process already wrote version 11.' at 'SaveConfigurationTask:74'."
ThanksWell I finally figured out a way to correct this problem. Not sure what caused it or if this is a good fix of not.
But what i did was go into the DSCC
selected my directory server and then chose the server configuration tab
I then enabled a plugin, stopped/started and then disabled it, and then stopped/started.
then i could make changes in my startconsole (isw settings) -
How to find the appropriate user exit for invoic02 idoc in idoc_output_invo
Hi all,
I am new to this community p
i have issue regarding the How to find the appropriate user exit for invoic02 idoc in idoc_output_invoic function module.........
thanks,Hi ,
welcome to SDN.
You can select the appropriate Customer exit accrding to the available parameters .
The list of exits available are
EXIT_SAPLVEDF_001
EXIT_SAPLVEDF_002
EXIT_SAPLVEDF_003
EXIT_SAPLVEDF_004
For Example , if you want to modify the Idoc data(EDIDD) you have to use the EXIT_SAPLVEDF_002. accodingly you can select the user exit according to the avaialable parametres.Use Table MODSAP fto get the Enhancement name.
Hope this Helps
Rgds
Sree
Edited by: Sree on Jul 23, 2010 12:11 PM -
I am trying to generate an application that saves a copy of its front panel on completion. This is easy to do using an invoke node with Print VI to HTML but this does not work in an .exe format. I have seen elsewhere that you have to use the Get Panel Image method, but no details are supplied in LV 5.0.1 documentation of how to use the "image" data (1-D Unsigned Byte array) that is generated. I want to save this in a format that can then be read as a bitmap in any standard graphics package. Any assistance?
Hi,
If you'd upgrade to LV5.1 or 6 you could use the 'standard' vi's for this.
You need a VI called "Write BMP File.vi". It's not shipped with LV5.0.1.
This vi only uses 3 subVI's, so perhaps someone at NI can convert it and
send it to you (sorry, I won't, it's copywrited).
If you cannot get this VI anywhere, you'll need to figure out the BMP file
format yourself. It's not too complicated, but still could take some days.
Perhaps someone figured it out before LV5.1 was released.
Regards,
Wiebe.
"RDK" wrote in message
news:[email protected]..
> I want to use Get Panel Image in Labview 5.0.1 and need details on how
> to save the BMP data generated
>
> I am trying to generate an application that saves a copy
of its front
> panel on completion. This is easy to do using an invoke node with
> Print VI to HTML but this does not work in an .exe format. I have seen
> elsewhere that you have to use the Get Panel Image method, but no
> details are supplied in LV 5.0.1 documentation of how to use the
> "image" data (1-D Unsigned Byte array) that is generated. I want to
> save this in a format that can then be read as a bitmap in any
> standard graphics package. Any assistance? -
How to save the output of sap script to pdf document in sap
hi abapers
how to save the output of sap script in sap so that can retrieve the saved document later.
i have to save the rcia output from sap script in pdf document in sap so that it can be retrieved later
how to use dmsHi deepika,
This thread will solve ur problem OTF -> PDF
Regards,
Pravin -
How to save the edited datagrid using array collection?
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
title="demo2">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.events.FlexEvent;
import spark.components.gridClasses.IGridItemEditor;
import spark.components.gridClasses.IGridItemRenderer;
import spark.events.GridItemEditorEvent;
[Bindable]
private var myDP:ArrayCollection = new ArrayCollection([
{label1:"Day1 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
{label1:"Day2 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
{label1:"Day3 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
{label1:"Day4 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
{label1:"Day5 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
{label1:"Day6 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "}
protected function myDG_gridItemEditorSessionSaveHandler(event:GridItemEditorEvent):void
// TODO Auto-generated method stub
protected function button1_clickHandler(event:MouseEvent):void
// TODO Auto-generated method stub
navigator.popView();
protected function button2_clickHandler(event:MouseEvent):void
// TODO Auto-generated method stub
myDG.editable=false;
myDP
protected function myDG_exitStateHandler(event:FlexEvent):void
// TODO Auto-generated method stub
]]>
</fx:Script>
<s:DataGrid id="myDG" x="10" y="45" width="460" height="240" dataProvider="{myDP}"
editable="true" exitState="myDG_exitStateHandler(event)" fontSize="11"
gridItemEditorSessionSave="myDG_gridItemEditorSessionSaveHandler(even t)"
rowHeight="30" variableRowHeight="true" selectionMode="singleCell" >
<s:columns>
<s:ArrayList>
<s:GridColumn dataField="label1" headerText="day" editable="false" />
<s:GridColumn dataField="label2" headerText="9-10am"/>
<s:GridColumn dataField="label3" headerText="10-11am"/>
<s:GridColumn dataField="label4" headerText="11am-12noon"/>
<s:GridColumn dataField="label5" headerText="1-2pm"/>
<s:GridColumn dataField="label6" headerText="2-3pm"/>
<s:GridColumn dataField="label7" headerText="3-4pm"/>
</s:ArrayList>
</s:columns >
</s:DataGrid>
<s:Button x="404" y="10" width="53" height="27" label="Back" click="button1_clickHandler(event)"
fontSize="13"/>
<s:Button x="24" y="10" width="56" height="27" label="Save" click="button2_clickHandler(event)"
fontSize="14"/>
</s:View>
please help me with this code...i dontknow how to save the data edited in the datagrid back to my arrayollection!!!please help with this......
Maybe you are looking for
-
Hi, I have mapped one scenario of subcontracting as below and I want to get suggestion from the experts whether it is correct or could have been done better. Scenario: I procure a sheet of high quality stationary paper from a supplier.Then I cut this
-
FORMS: Reader Enabled forms are not saving for all users
I have created several fillable forms with both Acrobat Pro 8 & 9. All have been created with Extend Reader Rights In my testing i have success saving the forms in Reader (various versions as old as 7). After sending the forms out via email the savin
-
Hello, we are in the process of starting to implement WDS and have well over 100 access points. I've read 2 different docs from Cisco, 1 saying that the max # of APs in each WDS should be 30 and another document saying 100. Does anyone have any sugge
-
Iphone 4 switch off automatically
My iphone 4 switch off automatically & nowadays work only when its charging..and the power button is not working ..Is any one facing the same problem and whats the solution...its becoming waste for me. Regards Srinivas
-
Apply textRollOverColor in List Box
Hi, I have a list box which is rendered with Label. I need to set the textrollovercolor. But i was not able to do it.Is there any way to do it. Regards, Jayagopal.