Text Field String to Object problem
Hi,
i am trying to search a vector called mainStaffDataBase for a staff members name, found by getName();
Now thats all good an well, but here is the tricky part (for me)
i have another vector called mainUnitDataBase, in which unit names are stored. To create a new unit, the constructor needs to be used liked this Unit(String unitName, Staff staffName);
What i am trying to do is by searching the mainStaffDataBase for a staff member, to reference that staff member's object in creating the new unit.
In the code: staff_field is the name of a text field which the user inputs the name which they wish to associate the unit with.
This is the code i currently have.
1. for (int i = 0; i < Uni.mainStaffDataBase.size(); i++){
2. Staff staffMem = (Staff)Uni.mainStaffDataBase.elementAt(i);
3. if (staff_field.equals(staffMem.getName())){
4. staffMem = staff_field;
5. }
6. }
7. Unit newUnit = new Unit(unit_field.getText(), staffMem);
8. Uni.mainUnitDataBase.add(newUnit);
The error i am getting is "incompatible types" on line 4.
Im not too sure how to go about changing the name of the staff member because the constructor requires a Staff object be passed, and not a string.
Any help would be much appreciated.
cheers
AnniHilatE
Edited by: AnniHilatE on Oct 18, 2007 7:04 PM
1) staffMem is a Staff object. staff_field is a String. You can't try to set one equal to the other.
2) If staff_field.equals(staffMem.getName( )) you don't have to set staffMem = to anything. It already references the correct Staff object. You may want to set something else = to staffMem though, another Staff variable that is declared outside of the for loop. This is what you should use in your Unit initialization code.
something like so:
Staff staffFound = null;
for (int i = 0; i < Uni.mainStaffDataBase.size(); i++)
Staff staffMem = (Staff)Uni.mainStaffDataBase.elementAt(i);
if (staff_field.equals(staffMem.getName()))
// staffMem already == the correct object.
// now just have to be able to use it.
staffFound = staffMem;
if (staffFound != null)
Uni.mainUnitDataBase.add(new Unit(unit_field.getText(), staffFound));
Also, when posting your code, please use code tags so that your code will be well-formatted and readable. To do this, either use the "code" button at the top of the forum Message editor or place the tag [code] at the top of your block of code and the tag [/code] at the bottom, like so:
[code]
// your code block goes here.
[/code]
Similar Messages
-
Xcode storyboard: no resize handles on text field
Hi,
I'm going through the "Start Developing iOS Apps Today" tutorial (https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapi OS/index.html#//apple_ref/doc/uid/TP4001…. My first time through I didn't have this problem but now I do and can't find any info on why or how to resolve.
When I drag a text field from the object library tot he storyboard, there are no resize handles on it. I created a Jing screencast and uploaded it here: http://screencast.com/t/tmZYug3yx
I have uninstalled/reinstalled xcode and rebooted my machine. I've tried control-click, option-click and cmd-click but I can't get resize handles to appear and can't find any other way to resize the object. Nor can I find any option that might control whether or not resize handles should display.
I would greatly appreciate any suggestions.
Thanks,
Ty HallstedI don't know why you can't resize the text field when you select it, but you can resize the text field from the size inspector. In your screencast if you look at the right side of the window, you'll see a series of buttons at the top. Click the button that looks like a ruler to open the size inspector or choose View > Utilities > Show Size Inspector in Xcode.
-
In PO -Me21N Material PO text field non editable
Dear All ,
We have specific requirment in PO (ME21N). In Item level ther is free text field "Item Texts". In Item texts we have 4 text fields
(1) Item Text
(2) Info Record PO text
(3) Material Po text
(4) Deivery Text
As per our configuration in "Material PO text" Material long description picking from Material master .We want to make this text field Non Editable.
In SAP there is facility to configure non editable Texts , But it will non editable all text fields.
How we can non editable only Material Po text .
Thanks in Advance.
Regards
Abhishek TiwariDear Chetan,
I think you have not understood my complete question. First thing i dont want to non editable Short text field.
In my problem i In Item level ther is free text field "Item Texts". In Item texts we have 4 text fields
(1) Item Text
(2) Info Record PO text
(3) Material Po text
(4) Deivery Text
In above text fields ,I want to non editable only "Material PO Text" only....
Regards
Abhishek Tiwari -
Please help. Text fields launch email for XML data
Let me start by saying I have only been using LiveCycle for two days. I did buy a book and have exhaustuvley searched for a solution....with that said....
After completing almost the entire form, somehow or other I managed to make all the text fields but one initiate email of xml data as soon as you try to type in them in PDF preview or reader or pro.
I added a new text field for test and it does NOT do the same thing. I can't for the life of me figure out how to turn this off.
Issue:
When checking pdf preview, if I click inside a text field to type, it stops the preview and launches an email window with a blank XML file. It does the same thing if I open the file in Reader or Pro.
Solution I am looking for:
My form is nearly complete and i would hate to have to start all over. Basically, I do NOT want the text fields to initiate an email of the form data. I just want the user to be able to type in them as required. In my opinion this should only happen with the "email form" button.
Thanks,
Joe
[email protected]funny, i found a workaround. after nearly 3 hours and finally posting here, in 15 minutes i found something. I still would like to know
what caused this if anyone knows.....
Fix:
By selecting the text field and changing object type to "Text" then changing it back to "TextField" then save, it now works fine. Of course I had to do it on all 25 fields but way better than redoing all the custom fields i created. -
Creating an expandable text field without a scrollbar
Hi All! Hope someone can help.
I need to create a flowable subform that will allow text fields to expand without a scrollbar. I have been researching the forums and have found this thread:
http://forums.adobe.com/message/2372965
When modifying the template above for practice, The fields expand correctly but when i make one from scratch it doesnt work at all!
Here are the steps I have followed in creating a expandable text field from scratch:
1. Open Adobe Lifecycle Designer and open a plain blank form
2. Take a "text field" from the object library and place it on the form
3. I noticed there is already a blue border (subform) for this document by default for the new form so I changed the content from "position" to "flowed", flow direction from "top to bottom" and checked "allow page breaks". Also changed the layout for y: autofit
4. I then right clicked on the text fields orange border and clicked "wrap in subform". I changed the content from "position" to "flowed", flow direction from "top to bottom" and checked "allow page breaks". Also changed the layout for y: autofit
5. Finally for the text field itself I made sure that "allow multiple linkes" and "allow page breaks within content" was checked. Also changed the layout for y: expand to fit
I still cant get it work am I missing something? Ive been twirking around with this for hours and this forum wont let me upload my example. Any help would be great!Hi,
You need to save the form as dynamic pdf form i.e xdp and on exit of the text field only text field will be expanded.
But make sure the main form should be flowed and page breaks should be allowed.Textfield should have the allow multiple lines option ,allow page breaks,and auto expand height(Y axis) should be checked.
Regards,
ManjuVardhan -
Printing - With Dynamic Text Fields
Hello,
i wonder if anyone can help me........i know there are a lot
of posts already on how to print out dynamic text but all of them
seem to be using scrolling text fields.
However my problem isn't even as complex as this but i still
can't work it out.
At the moment i have a form of text boxes which the user
inputs text.............from here there is a print
button.........in order to compile all of the answers together i
have created a movie clip.........with the layout of the printed
page on it, and placed this on the main timeline. Inside this movie
clip to be printed i have dynamic text fields...which link to the
text fields which the users inputted data in, therefore both sets
of text fields contain the same data, when you change one the other
should change.
I have set up a very simple printJob command to print out the
movie clip named print_mc and it prints the page even the outline
of the text boxes but it doesn't print out the content which
appears on the screen. my code is attached below.......please if
anyone could help i would be very grateful :)
print_btn.onRelease = function() {
_global.aOneVar =oneAPone.text;
_global.aTwoVar =oneAPtwo.text;
print_mc.gotoAndStop("2");
var myPrintJob:PrintJob = new PrintJob();
var result:Boolean = myPrintJob.start();
if (result) {
myPrintJob.addPage("print_mc", null, {printAsBitmap:false},
2);
myPrintJob.send();
delete myPrintJob;
} else {
thankserictomlinson,
> So, if I turn off the xml/css and use htmlText to create
> content for the text field, the text uses the embedded
> font and is anti-aliased.
I'm with ya. Presumably, then there's a font symbol in your
Library,
right? And its Linkage identifier is "arial_font"?
> If I keep the xml/css but comment out embedFonts, then
> the content works but is not anti-aliased.
That's because your CSS calls for Franklin Gothic Book,
which hasn't
been imported into your Library as a font symbol (at least,
you haven't said
it has).
> I need both of these to work at the same time.
Give Franklin Gothic Book a Linkage identifier, and use that
name in
your CSS.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design." -
I have made two single-choice fields side by side (Yes and No) on one single line. The question for the choices is long, so I wrote it in a separate text field placed above the Yes and No fields. If I use the Yes field for the question, the No field would end up too far to the right.
Question ....
[Single-choice text fields space]
[ ] Yes
[ ] No
Problem now is there's too much space under the question, since the automatic text fields in the Yes and No fields are still there, though "invisible"/not used. How can I have a long question on a single line and have the Yes and No fields on the next line without a big gap between the two lines? Is it possible to delete the automatic text field in the Yes and No fields?
Just realised that if one makes a single Yes field, and a single No field to the right, you are ("of course") able to mark both the fields, since they are not linked anymore as with two choices in one field. The point with the single choice fields is then lost; to be able to choose only either one. Yes or No.
[X] Yes [X] NoThe Single Choice is designed such that you have a single label and multiple choices, but the user can only select a single choice (in your case Yes or No). If you like the choices to appear side by side you can deselect Stack Choices Vertically in the Field Properties widget. You should also set the Label to Above. See the attached image.
Jeff Canepa
Software Quality Engineer
Adobe Systems, Inc.
[email protected] -
Problem with a text field check
When there is nothing placed inside the text field it will return a message dialog box saying that there is nothing located inside the text field. However if there is something inside the text field it will perform a
doSpellingSuggestion and write the results to a .txt file.
This works as the search term can be found within the .txt file.
However when I try to display a message dialog box to display the contents of the .txt file that contains the spelling suggestion it will come out with an error from the catch statement
catch(Exception spelling_error)
JOptionPane.showMessageDialog(null , "Spelling error = " +
spelling_error.getMessage());
It keeps showing an error message box saying "Spelling error = null"
It wont go past this line and thats the problem that i have. I tryed putting
I tried substituting this in place of the error message above but it wouldnt go down to it
//Display a message with a spelling suggestion
JOptionPane.showMessageDialog(null , "Did you mean to spell " +
search_term + " like this " + buffer.toString());
but this didnt work
class spellcheck_button_listener implements ActionListener
public void actionPerformed(ActionEvent spelling_check)
try
String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
String wsdl = "http://api.google.com/GoogleSearch.wsdl";
String url = "http://api.google.com/search/beta2";
String ns1 = "urn:GoogleSearch";
String ns2 = "urn:GoogleSearch";
if((search_field.getText() == null) || (search_field.getText().equals("")))
JOptionPane.showMessageDialog(null , "No search term entered in text field"
+ " please enter another search term");
else
search_term = search_field.getText();
//Create the connection
SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
SOAPConnection connection = soapConnFactory.createConnection();
//Create the actual message
MessageFactory messageFactory = MessageFactory.newInstance();
SOAPMessage message = messageFactory.createMessage();
//Create objects for the message parts
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPBody bodyName = envelope.getBody();
SOAPElement bodyElement;
//Populate the message by adding SOAP body elements to form a semantically meaning
//SOAP request
bodyElement = bodyName.addBodyElement(envelope.createName("doSpellingSuggestion" , "ns1" , ns1));
//Adding content to the message
//addTextNode used when entering strings , addAttribute used for integers
bodyElement.addChildElement(envelope.createName("key")).addTextNode(myKey);
bodyElement.addChildElement(envelope.createName("q")).addTextNode(search_term);
//Send the message and get a reply
URLEndpoint endpoint = new URLEndpoint(url);
//Send the message
SOAPMessage reply = connection.call(message , endpoint);
//Getting the content of a Message
SOAPPart sp = reply.getSOAPPart();
SOAPEnvelope env = sp.getEnvelope();
SOAPBody replyBody = reply.getSOAPPart().getEnvelope().getBody();
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Source styleSheet = new StreamSource(translate_file);
Transformer transformer = transformerFactory.newTransformer(styleSheet);
Source sourceContent = reply.getSOAPPart().getContent();
StreamResult result = new StreamResult(spell_check_file);
transformer.transform(sourceContent, result);
java.util.Iterator iterator = replyBody.getChildElements();
while (iterator.hasNext())
bodyElement = (SOAPBodyElement)iterator.next();
String url_results = bodyElement.getValue();
//Close the connection
connection.close();
FileReader inputFile = new FileReader(spell_check_file);
buffer = new StringBuffer();
// write new list to standard out
BufferedReader in = new BufferedReader(inputFile);
String input;
while ((input = in.readLine()) != null)
if(!input.startsWith("<?xml version"))
// Skip XML header
buffer.append(input + "\n");
in.close();
//Display a message with a spelling suggestion
JOptionPane.showMessageDialog(null , "Did you mean to spell " + search_term +
" like this " + buffer.toString());
} //End of else statement
} //End of try method for search action performed
catch(Exception spelling_error)
JOptionPane.showMessageDialog(null , "Spelling error = " +
spelling_error.getMessage());
} //End of method actionPerformed for search button
} //End of class spellcheck_button_listener implements ActionListenerI don't use SOAP, so I can't test your code.
If you really want people to read your code then it should be [url http://forum.java.sun.com/features.jsp#Formatting]formatted so it is readable with correct indentation of lines and highlighting of the source code. -
Acrobat javascipt problem with text field
Hello.
I work in hospital and I create a PDF with some javascript, to help us working with our patients. This PDF now need some upgrade and I m stuck. Im not a programmer, so its even more difficult to me.
Let me describe my problem. I have three buttons in my PDF with this code: on mouse up run javascript (I replace actual names in menu with options)
var cChoice = app.popUpMenuEx
{cName: "Option1", oSubMenu:
[ { cName: "A", cReturn: "A" },
{ cName: "B", cReturn: "B"},
{ cName: "C", cReturn: "C" }
{cName: "Option2", oSubMenu:
[ { cName: "D", cReturn: "D" },
{ cName: "E", cReturn: "E" },
{ cName: "F", cReturn: "F" }
if(cChoice != "" && cChoice != null)
this.SetFieldValues(cChoice);
else if(cChoice != null)
this.print({bUI:true,bSilent:false});
I also have four text fields in PDF, fields "d1", "d2", "d3" and field "kat".
Inside document javascript I have setFieldValues script:
// Place all pre-population data into a single data structure
var DeptData = { "":{ diagnoza: "", kat: "" },
"A":{ diagnoza: "A", kat: "KAT III" },
"B":{ diagnoza: "B", kat: "KAT II" },
"C":{ diagnoza: "C", kat: "KAT I" },
"D":{ diagnoza: "D", kat: "KAT III" },
"E":{ diagnoza: "E", kat: "KAT II" },
"F":{ diagnoza: "F", kat: "KAT I"}};
function SetFieldValues(cDeptName) {
// Populate fields with values from the Department Data Object
this.getField("d1").value = DeptData[cDeptName].diagnoza;
this.getField("kat").value = DeptData[cDeptName].kat;
function SetField1Values(cDeptName) {
// Populate fields with values from the Department Data Object
this.getField("d2").value = DeptData[cDeptName].diagnoza;
this.getField("kat").value = DeptData[cDeptName].kat;
function SetField2Values(cDeptName) {
// Populate fields with values from the Department Data Object
this.getField("d3").value = DeptData[cDeptName].diagnoza;
this.getField("kat").value = DeptData[cDeptName].kat;
Now my problem. This code work perfect for my d1, d2, and d3 fields. When nurse click first button and open menu, then select options, the value that she select print in field d1, value from second button print in d2 and value from last button in d3. But each selection has also second value, named "kat". This value must be printed in text field named "kat", but...here is some catch. If all three selected options have different "kat" values - all three values must be in text field "kat". If one or two values are equal, I need that just one of them is printed.
Something like that:
If
"d1" field has "A" value
"d2" field has "B" value
and "d3" has "C" value
then field "kat" has all three kat values.
but if
"d1" field has "A" value
"d2" field has "D" value
and "d3" field has "E" value
then field "kat" print only one of two equal (A and B) kat values and E kat value, that is different.
Anyone understand my bad english and my problem and has a solution for this?Use hidden text fields for the various "kat" values ("kat1", "kat2", etc.) and then a separate custom calculation script for the real "kat" field that looks at the values of those fields and decides what value it should have.
-
How to open a new window by clicking the string in the text field ?
Hi
is it possible to do this ?
Some string value is retrieved from database and it is placed in the text field. [ done with this part ]
i have to provide link to that string to open a new window. [ yet to do ]
Please help me in this.
Note : if this is not possible , give me some other idea to do this.
-Arunwhether this is useful ?
I am using string field here.
public StringField(java.lang.String name,
java.lang.Object listener,
java.lang.String callback,
java.lang.String value)Constructs a StringField
Parameters:
name - Name of field
listener - Listener to update
callback - Callback of listener
value - Value of field
-Arun -
Problem with Refreshing the data bound text fields
Folks,
First of all, this a GREAT product and I am moving my apps from Eclipse to Studio Creator. I am very impessed with it so far.
I am gone through most tutorials, but can't help resolve the problem that I am having. I have a page, that lists all the users in a table. When you click on any user, it opens up another page that lists the detail of the specific user you have clicked on. This a typical use in most web applications, right?
In the user detail page, I open it in "Read" only mode, by setting the "setReadOnly" to true for all text field components. Then users can edit it by clicking "Edit" button. Edit button just changes the "setReadOnly" to false, to allow editing. After editing, they can hit the "Save" button to save the changes. In the save button, I call this code:
public void prerender() {
try {
userID=getSessionBean1().getUserID();
getSessionBean1().getWeb_userRowSetUserDetail().setObject(1,userID);
getWeb_userDataProviderUserDetail().refresh();
info("prerender: Refresh called");
} catch (Exception ex) {
error("Error in userForm.prerender():"+ex.getMessage()+ex.getStackTrace());
log("Error in userForm.prerender():", ex);
setReadWrite();
public String btnSave_action() {
try {
getWeb_userDataProviderUserDetail().commitChanges();
getWeb_userDataProviderUserDetail().refresh();
info("Data Provider Refreshed in SAVE");
_readOnly=true;
form1.discardSubmittedValues("saveVForm");
info("User Updated New:"+userID);
} catch (Exception ex) {
log("Error Description", ex);
return null;
public String btnEdit_action() {
try {
_readOnly=false;
//info("User ID Edt="+getSessionBean1().getUserID());
} catch (Exception ex) {
error("Error in userForm.btnEdit_action:"+ex.getMessage()+ex.getStackTrace());
log("Error in userForm.btnEdit_action():", ex);
return null;
private void setReadWrite(){
// Set read-only to true or false for all text fiels
this.btnEdit.setVisible(_readOnly);
this.btnSave.setVisible(!_readOnly);
this.user_id.setReadOnly(_readOnly);
this.user_email_client.setReadOnly(_readOnly);
this.user_email_office.setReadOnly(_readOnly);
this.user_fname.setReadOnly(_readOnly);
this.user_lname.setReadOnly(_readOnly);
this.user_id.setReadOnly(_readOnly);
this.user_password.setReadOnly(_readOnly);
this.user_password_conf.setReadOnly(_readOnly);
this.user_phone_cell.setReadOnly(_readOnly);
this.user_phone_cell_aac.setReadOnly(_readOnly);
this.user_phone_client.setReadOnly(_readOnly);
this.user_phone_home.setReadOnly(_readOnly);
this.user_phone_office.setReadOnly(_readOnly);
}When the save button is clicked, the database is updated (as I can verify by looking directly into the database), but the data-bound text fields do not display the new value. YES, I am calling refresh() on data provider? I tried to call refresh in both "preRender()" and "Save" button action event, but that did not help either.
Please note that the save button also changes the "setReadOnly" back to TRUE for all text fields. That means, users view the page in Read-Only mode after saving. (They have to click on "Edit" button again to edit it). I discovered that if I do not set the text field components in "ReadOnly" mode, then they display the updated value of the fields. But if I change setReadOnly to TRUE, then they display the old values (before the save).
Any idea what I am doing wrong here?
ThanksHere is my experience with it. I have three text
boxes to be filled out. They are part of a virtual
form with an add button as the submit. You can fill
out the 3 and add them and a node is added to a tree
component. When you click on a node in the tree
component (the submit to another virtual form that
the 3 buttons participate in) the text fields should
be loaded with the values that they where added with.Hard to tell from this explanation, but if the text fields do not participate in a virtual form, then they are not going to get updated when an action in the virtual form happens. Not sure this is your problem. Like I say, hard to tell from this explanation.
They will not display the values though...having
nothing to do with read only. If I disable them
before hand...they display the updated values. If I
set their value at the top or bottom of prerender,
they display the change...if I set the value in an if
conditional that is hit (I have checked many times)
in prerender, they will not display the values. If I
set them in the tree handler anywhere, they will not
display the values. This is very frustrating and is
wasting tons of my time...I simply want to load the
text fields based on the tree node that was
clicked...I have messed with this for hours and it
certainly does not work.Well, setting them in the tree handler won't work because the tree handler gets called in the page instance that handles the submit and not the page instance that renders the response.
Posting your prerender code might help. Also, your action handler.
>
>
- Mark -
Hi,
I want to load a string of characters to a text field of a table. I'm using SQL Loader.
I've tried to declare the field in several types: varchar2(4000), clob, raw, etc, but when I run sql loader to load the text I get the same error: The data file exceeds maximum lenght. I've tried with a shorter text and it works.
My question is, why I can't load long characters in that field?
Thanks in advance.
Regards.Although you have made your table column up to size 4000, SQLLoader have not got a clue about that. You still need to tell SQLLoader that the text coming in is more than the default 255 in your control file. Strange isn't it?
Here is my table named testlog. Note that I changed the column names LOG, DAY, TIME and TYPE because they are reserved Words
SQL> CREATE TABLE TESTLOG
2 (LOG_1 CHAR(3) NOT NULL,
3 DAY_1 DATE,
4 TIME_1 CHAR(8),
5 SOURCE VARCHAR2(100),
6 EVENTID NUMBER(22),
7 TYPE_1 VARCHAR2(64),
8 CATEGORY VARCHAR2(64),
9 USER0 VARCHAR2(64),
10 COMPUTER VARCHAR2(64),
11 MESSAGE VARCHAR2(4000) NOT NULL)
12 /
Table created.
SQL> desc testlog
Name Null? Type
LOG_1 NOT NULL CHAR(3)
DAY_1 DATE
TIME_1 CHAR(8)
SOURCE VARCHAR2(100)
EVENTID NUMBER(22)
TYPE_1 VARCHAR2(64)
CATEGORY VARCHAR2(64)
USER0 VARCHAR2(64)
COMPUTER VARCHAR2(64)
MESSAGE NOT NULL VARCHAR2(4000)
SQL> select * from testlog;
no rows selected
SQL>
I saved the same data you have abvoe in a file named testlog.txt Here is my test controlfile named testlog.ctl
LOAD DATA
INFILE 'testlog.txt'
INTO TABLE testlog
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
LOG_1 CHAR NULLIF (LOG_1=BLANKS)
, DAY_1 DATE "DD/MM/YYYY" NULLIF (DAY_1=BLANKS)
, TIME_1 CHAR NULLIF (TIME_1=BLANKS)
, SOURCE CHAR NULLIF (SOURCE=BLANKS)
, EVENTID INTEGER EXTERNAL NULLIF (EVENTID=BLANKS)
, TYPE_1 CHAR NULLIF (TYPE_1=BLANKS)
, CATEGORY CHAR NULLIF (CATEGORY=BLANKS)
, USER0 CHAR NULLIF (USER0=BLANKS)
, COMPUTER CHAR NULLIF (COMPUTER=BLANKS)
, MESSAGE CHAR(4000) NULLIF (MESSAGE=BLANKS)
Here is the Result of my test run
D:\DBMSDIRECT\DBA\Test>sqlldr userid=test control=testlog.ctl
Password:
SQL*Loader: Release 11.1.0.6.0 - Production on Fri Nov 5 15:36:05 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Commit point reached - logical record count 1
D:\DBMSDIRECT\DBA\Test>
Here is the Result in the table
SQL> col message format a50
SQL> col source format a50
SQL> col category format a10
SQL> col source format a10
SQL> col user0 format a10
SQL> col type_1 format a10
SQL> col computer format a10
SQL> set pasge 20
SQL> select * from testlog;
LOG DAY_1 TIME_1 SOURCE EVENTID TYPE_1 CATEGORY USER0 COMPUTER MESSAGE
SEC 04-NOV-10 12:26:02 Microsoft- 4656 Success 12800 server1.it A handle to an object was requested.^`^`Subject:^`
Windows-Se acasa-sa.c Security ID: S-1-5-21-3830471607-3036766313-42914
curity-Aud om 15205-2156^` Account Name: mbelles^` Account Domai
iting n: ITACASA-SA^` Logon ID: 0x38988bbc^`^`Object:^`
Object Server: Security^` Object Type: File^` Obje
ct Name: K:\AMBIENTE^` Handle ID: 0x1e18^`^`Proces
s Information:^` Process ID: 0x4^` Process Name: ^
`^`Access Request Information:^` Transaction ID: {
00000000-0000-0000-0000-000000000000}^` Accesses:
%%4416^` ^` Access Mask: 0x1^` Privileges Used for
Access Check: -^` Restricted SID Count: 0
1 row selected.
SQL> -
Problem with append += text in Text Field
Hi guys
i have a problem with append text.
I have one array which contain some city names, like CityArea=["NAME 1", "NAME2" ...etc];
Then i have one String and one Text Field.
Using for loop im getting right results. But when im running script again then im getting same text again.
F.ex.
First time:
City name: Name 1
City name: Name 2
Second time:
City name: Name 1
City name: Name 2
City name: Name 1
City name: Name 2
I have tried to make TextField to and String to Null and delete it, but it's appearing again.. :/
How to avoid this?
Here is script:
for (var i1:int = 0; i1 < CityArea.length; i1++)
_CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'> "+CityArea[i1]+"</FONT></P>";
_CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
_CityAreaTF1 = new TextField();
_CityAreaTF1.border = true;
_CityAreaTF1.wordWrap = true;
_CityAreaTF1.multiline = true;
_CityAreaTF1.selectable = false;
_CityAreaTF1.antiAliasType = AntiAliasType.ADVANCED;
_CityAreaTF1.name = "CityAreaTF1";
_CityAreaTF1.embedFonts = true;
_CityAreaTF1.htmlText = _CityAreaString1.toUpperCase();I think i found why.
There was no problem with TextField.
There was a problem with Array. "CityArea"
So each time I executed script it added new string in Array. And that is because i got like:
TextField
City 1
City 2
City 1
City 2
Running this script is Ok:
for (var i1:int = 0; i1 < CityArea.length; i1++)
_CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'> "+CityArea[i1]+"</FONT></P>";
_CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
But outside of this for loop there is another for loop for adding Cities in CityArray.
I fixed it by adding empty array at the start of function
function myFunc():void
CityArea = [ ]; // Empty array fixed this issue
// LOOP FOR ADDING SHOPS IN CITY AREA
for (var j:int = 0; j < _Shops; j++)
CityArea.push(_Shop);
// FOR LOOP TO ADDING SHOPS IN STRING
for (var i1:int = 0; i1 < CityArea.length; i1++)
_CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'> "+CityArea[i1]+"</FONT></P>";
_CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
Thank you for your help kglad -
How can I embed a text field inside a text object in a fillable form?
I am a new user of LiveCycle and am slowly figuring things out. I don't really understand any of the scripts-- thatlevel is way beyod me. I am hoping that someone can tell me an easy way to insert a fillable text field into a text object. I have been assigned a huge project of converting some very old Word forms into fillable PDF forms. I have done okay with many of them, but ran into a snag with some of the form letters that our employees need to fill out. Basically, there is a block of text (the body of the letter) in which employees will need to be able to type in a date that the recipient of the letter must respond by. I have read up on floating fields and thought that was the solution to my problem, but it seems that floating fields are really just meant to be filled from a data source rather than having info typed into them.
Can anyone help-- I am desperate at this point. There has to be an easy way to insert a fillable text field object or a Date/Time object into a block of text so that the surrounding text will expand and contract around the length of the date entered (this is important, as many of these letters pertain to legal matters and cannot have blank spaces in them).Hi,
You can split your text object into different parts and place text fields inbetween the parts. With a little manuvering, you can make it look good.
An alternative is to place text field(s) outside the letter body (and set the visibilaty to screen only). Use these to populate the floating field.
or
script the external text fields (or the subform containing them) to be "hidden" using the "Preprint" event, then revealing them ("visible") again using the "Postprint" event.
Hope this helps, good luck!
Stephen -
URGENT help please. Problem creating Chinese language text field in Adobe LiveCycle.
A client requested to create an employee details form in which few text fields has to be in Chinese language. I selected "Arial Unicode MS" for that fields. In final PDF I am able to insert text in Chinese text fields in Acrobat. But I cant insert text when i opened the final PDF in Adobe Reader. (only these Arial Unicode MS fields are disabled). All other fields (English) are in Arial font., they are working in both (Acrobat and Reader). As these forms will be distributed to people who may don't have Acrobat and only the Free Adobe Reader. Can someone please advice me how to solve this problem.
Thank you
- AmalMake sure the format of the date strings provided by the calendar is what you are expecting. Or use the "formattedValue" for the input strings.
Maybe you are looking for
-
Hi Everyone, I have to query a table that stores daily information and I only need to get the current month's data out of there. There is A LOT of data in there (4 years X 15 stores X 65 depts). I was wondering if there was a way to get the current m
-
Date Profile with Actions and Deadline Monitoring
Hi Folks , I have met an requirement of Actions with Deadline Monitoring of Date Profile . I could able to see Date profile with Day Rules in the standard , But i have met an requirement for very high imp - 2 hrs , High - 4 hrs .... etc. Where in Sta
-
Deliv. date outside period covered by factory calendar TR
Dear Sap Experts I am creating Po with delivery date 31/03/2010 System is saying lollowing problem, Deliv. date outside period covered by factory calendar TR Please Give me the solution how to overcome this problem Thanks
-
Hello, I am trying to publish a survey in Oracle Portal (Version 10.1.4). After a bit of Research I added the Survery Creator Portlet to a Portlets Region of a Page, and designed the Survey. This wasn't a problem. Afterwards, I added Survey form port
-
Why can't I open RAW files from my Canon 70D? Message was edited by: Brett N