Problem in repeating a subform with hidden text fields.
Hi,
Request advise on the scenario below:
The form consists of one master page and a corresponding page that is flowed. This contains two subforms : One with address fields that are hidden with the subsequent fields moving up, when the previous field is hidden. The layout being :
Name1
Name2
Addrs1
Addrs2
Addrs3
in the absence of anyone of these fields the one below gets moved up. The second subform in the page consists of a flowed suform which gets repeated multiple times and spans across pages as the data overflows. The data binding comes only from one set of data item hence the option for repetition based on each data item seems impractical.
Is there a way to display the address subform in the multipages created by the overflowing data, at the same position as in the first page? This couldn't be placed in the master page as then , the script for hidden fields doesn't work.
Thanks in advance..
Hi,
Contact me at [email protected] to share a sample PDF.
I just tried a sample for your requirements and it seems to be working.
Nith
Similar Messages
-
Strange behavior with hidden text field for drill down
Hi All,
I am pretty sure I know the cause, just not sure how to work around...
I am trying to create a drill down report just like in the App Dev guide, and I have done everything the same as the example (2 times, once to follow the guide, and now on my app). The only difference is that I am using a text field rather than a numeric field as the link. This shouldn't be a problem (I wouldn't think) except that the text I NEED to use has '<==' in the middle. So when I check my session state var's, this is what I see:
CHPAG0SC_MAILCDN_000000047_ CHPAG0SC_MAILCDN_000000047_ <==20060525101642
When what I should see is:
CHPAG0SC_MAILCDN_000000047_ <==20060525101642
So I think that I am gettting duplication because of the characters, but again I don't know how to solve it.
Any thoughts would be appreciated.
CoreyHi Scott,
I am trying to create a drill down report similar to the one in the app developers guide. I have a query on pg 1 that includes the required text field as the link. When I click the link, I get an error on pg 2 - which is trying to use the value from pg 1. I did check and saw that even though I set this value in session state (I thought that was what happened when I assigned the 'name' and 'value' in the column link), it is passed in the url, which is where I figured it was breaking. As stated, I need to use this text value as it is the only unique key for the data (currently - this is a data validation step (not an ApEx validation), where users are handling issues with data uploaded from a csv).
My current process is as follows:
1. User uploads 2 csv's
2. Proc moves (from wwv_flow_files) and parses csv back into records and inserts into temp (all varchar2) table(s).
3. User is displayed 3 'reports' - for each type of validation required - from the stage/temp table
4. User would click on the 'Edit' link (like the drill down sample) to see more details about the record.
5. Once the user is done with these reports, they would click another button to 'process' the data (move it into base tables)
Because the text field is always unique, I figured I wouldn't create a sequence for this like I have for the 'base' (destination) tables.
I didn't know that I was using a 'get' rather than a 'post', but of course it is a link, not a button - so I should ahve known better.
Is there a way to do this without adding a sequence generated id for each, or is that just the quickest way?
Thanks again,
Corey -
Paging a data table with input text fields
I've created a datatable with input text fields so that contents can be edited. I have 'save' and 'cancel' buttons on the page so that changes can be saved or abandoned. That seems to work fine.
However, I have a problem with paging. If I modify an input text field, page to the next page in the datatable and then page back, the modified input text field reverts to the original entry in the database. Does anyone know how I can preserve this change (without issuing a commit) until the user clicks on the save button?
Here is a snippet of jsp with datatable.
<h:dataTable binding="#{DocTypeDetail.doctypeMetadataTable}" headerClass="list-header" id="doctypeMetadataTable"
rowClasses="list-row-even,list-row-odd" rows="5" style="left: 240px; top: 312px; position: absolute"
value="#{DocTypeDetail.doctypeMetadataTableModel}" var="currentRow">
<h:column binding="#{DocTypeDetail.column2}" id="column2">
<h:inputText binding="#{DocTypeDetail.textField1}" id="textField1" value="#{currentRow['name']}"/>
<f:facet name="header">
<h:outputText binding="#{DocTypeDetail.outputText5}" id="outputText5" value="Name"/>
</f:facet>
</h:column>
<h:column binding="#{DocTypeDetail.column3}" id="column3">
<h:inputText binding="#{DocTypeDetail.textField2}" id="textField2" value="#{currentRow['value']}"/>
<f:facet name="header">
<h:outputText binding="#{DocTypeDetail.outputText8}" id="outputText8" value="Value"/>
</f:facet>
</h:column>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header">
<h:panelGroup binding="#{DocTypeDetail.groupPanel1}" id="groupPanel1" style="display: block; text-align: center" styleClass="list-paging-header">
<h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_firstPageAction}"
binding="#{DocTypeDetail.doctypeMetadataTableHeaderFirstButton}" id="doctypeMetadataTableHeaderFirstButton"
image="resources/paging_first.gif" immediate="true"/>
<h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_previousPageAction}"
binding="#{DocTypeDetail.doctypeMetadataTableHeaderPreviousButton}" id="doctypeMetadataTableHeaderPreviousButton"
image="resources/paging_previous.gif" immediate="true"/>
<h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_nextPageAction}"
binding="#{DocTypeDetail.doctypeMetadataTableHeaderNextButton}" id="doctypeMetadataTableHeaderNextButton"
image="resources/paging_next.gif" immediate="true"/>
<h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_lastPageAction}"
binding="#{DocTypeDetail.doctypeMetadataTableHeaderLastButton}" id="doctypeMetadataTableHeaderLastButton"
image="resources/paging_last.gif" immediate="true"/>
</h:panelGroup>
</f:facet>
</h:dataTable>I know by now you must have figured it out. If not you might want to try keeping the backing bean in session instead of request scope.
Hope that helps,
HeMan -
Is there a way to print the check register with the Text field
Hi,
Is there a way to print the check register with the Text field and also each item's Text field?"
When we enter a invoice we enter a generic text on the Basic Data tab then enter a "+" on each individual line item which in turns defaults to the generic text. Just wanted to know if the check register could draw in the individual line item detail where we can enter text that relates to just that line item. Sort of like the MIR7 draws in the detail for each item.
Kindly help me in full fill the above requirement.
Thanks
SunithaHi,
Can any one help me on this issue?
Thanks
Sunitha -
Linking a select field with a text field in a DW form.....
I did try to search for this but nothing came to my attention. Apologies if it is already in the forum.
Is it possible to have a "select field" link with a "text field"? In other words The select field will provide different venues to choose from, in this case "Blog, Trade Show, Friend, Photo Magazine" and then after the choice is made a text field appears that allows you to provide details re. your choice. For example if you choose "Trade Show" from the select field the text field will then appear and prompt you to detail WHICH Trade Show. Something along those lines. Any assistance will, as always, be appreciated.
-G-You need scripts for this. Try this jQuery tutorial
http://anthonygthomas.com/2010/03/14/display-form-fields-based-on-selection-using-jquery/
Nancy O. -
Hi,
Is it possible on iPhone to create an alert with a text field?
Thanks,
NavaYou can subclass the alert and hack around with it, but in my experience, it would be easier to just write the functionality rather than trying to reuse the alert, but fighting it's built-in functionality.
-
Earliest Adobe Reader Version with Editable Text Field Functionality
Hi all,
Can someone inform me of the earliest version of Adobe Reader with which you can edit a document with editable text fields? I've designed a form using LiveCycle and, prior to distributing it to customers, would like to determine the minimum spec for Reader.
Thanks, JBEditable fields came in with 3.0, but if you use LiveCycle Designer,
which is new technology, it's 7.0 or so.
Aandi Inston -
Form Size with one text field 442kb
I started work on a new version of a three page dynamic form because the old version was 1,537kb.
After setting up my new blank master pages (3), I placed a text field on the blank "cover page". The from size went from 12kb to 442kb with one text field. How can one small text field with no caption increase the file size so tremondously. That's a factor of 36! Any suggestions? I am using:
Microsoft Windows 7
Adobe Acrobat Pro X 10.1.6
Livecycle Designer ES2 Version 9.0
FYI: I have read that there exists some tools out there to inspect your pdf/xml and see what objects are increasing your file size. This would be very helpful, however I work for a company that gives very little freedom in downloading unapproved software. So unless there is an Adobe way to inspect for an object and its impact on size, I am in a tough situation. Thank you for your time.
https://workspaces.acrobat.com/?d=H06NjDMAiTS79khuQCoKKwRemove the embed fonts feature to reduce your file size:
File > Form Properties > Save Options
Old version file size went from 1,537kb down to 132kb -
PDFs with hidden text readable in reader, but not acrobat?
For some reason, when I scan documents into adobe acrobat the entire document is unreadable -- its all hidden text. However, when I open the same scanned document in adobe reader the text is perfectly readable. I have been receiving numerous pdfs from colleagues which have the same problem - i open them in acrobat, the text is hidden and unreadable, in reader its fine. Is anyone else experiencing this problem? I've been able to play with the scanner settings and have managed to create pdfs without hidden text from the scanner. The true problem is that I have to print many of the PDFs i recieve -- many of them are quite large. When printing from reader, it takes at least 5 minutes per page. Any help/suggestions are much appreciated.
Thanks
-John
(I'm using the latest version of Acrobat, 9)It would help to look at a sample. Can you post one?
Also, check the "Show Large Images" Page Display preference. -
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. -
Problem with Update Text fields in Infoset
Hi experts,
Here i would like to rephrase the question. Normaly while working with Infosets, when press "update text fields" button, those fields having text is updated. But one of my field is not updated. I need some help from you for that.
One more question i've that my field is having check table so i would like to know how exactly the text field is updated.
scenario.
Customized IT9320 has field prt_pos added. This field is having check table T528B. But i want text field to be attached is IT1000-STEXT.
How this can be done, because i suspect that just using check table field IT1000-STEXT is not attached to IT9320-prt_pos.
Please help. I'm really got stuck here.
Thanks a lot,
Toral.
Hi,
I'm working on customised Infotype. I need to add one new customised field ie Present Position. This field has number as well as text associated with it. There is a check table attached with this field so that text can be displayed alongwith number.
I need this field in SAP/Adhoc query. But when i go to SQ02 this fields shows only value. Text is disabled for this field. I'm not sure why is it so.
I looked into other infotype which as one field using same data element, and that field shows both value as well as text. Please help me to rectify this issue for present position field.
Thanks,
Toral.
Edited by: Toral Sheth on Jul 4, 2008 2:01 PMYou would be much better off with one multi-line form field.
There are many problems with trying to determine when one is at the end of the display field with text entry. -
Problem with long text field.
Hi all,
I have a problem when I try to concatenate two fields.
It seems the new field only is 254 characters long?
Here is my syntax:
data: w_long_text(1000).
clear w_long_text.
loop at iline.
concatenate w_long_text iline-tdline into w_long_text separated by space.
endloop.
I'm sure the text is longer then 254 becuase I can see the text in an Activity in the Sap Crm system.
Best Regards
FrodeHi thomas
wat i would suggest you is better take an internal table with long_text(255) field .
data : begin of it_text occurs 0,
long_text(255),
end of it_text.
clear : w_long_text,it_text.
loop at iline.
concatenate w_long_text iline-tdline into w_long_text separated by space.
<b>it_text-long_text = iline-tdline.</b>
append it_text.
clear it_text.
endloop.
and when displaying the text keep that in a loop and print it.
This way u can display the whole text irrespective of the char length.
Reward points if helpful
Regards
Zarina -
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> -
How can I import a .doc (MS Word) with "hidden text" to a new Pages document?
Without changing the specific text in .doc to non-hidden, nothing but empty line returns comes across.
I have several .doc files and I am trying to streamline a process.There is no hidden text in Pages and if Apple implemented it chances are it would not be the same as Microsoft's.
There quite a few variations between Pages and MsWord so transferring documents between them is a hit and miss at the best of times.
Peter -
Problem with validating text field
Hi All
i want to validate the text fields present in jsp page for a sturts application..
i have a jsp page for input then struts form for validation as struts machinism provides and if error occurs it add error to error object.
i want to display error message in text field when it occurs..
plz help me to do it
thanx in advacneI'm not getting your requirement clearly, by my understanding ... you need to retrieve database whenever a <select> field trigger "onchange" - am I right?
If that is your requirement, it depends on what kind of solution you are looking into?
1. AJAX+Servlet (dojo/jMaki/write your own)
2. Java Server Faces (MyFaces/JSF)
3. write yourself a custom TAG (JSTL) to do the purpose (AJAX+Servlet/purely Servlet)
4. purely JSTL
5 purely Servlet
(please "Google" them by appending "<select> <option>"/ "populate combobox")
Personally I would recommend 1st or 3rd approach, even 2nd approach (MyFaces/JSF) is cool, but if your whole application is not written in JSF, no point to mixed the solutions.
If you want to try Ajax+TAG approach, refer following:
http://ajaxtags.sourceforge.net/
If you wish to use MyFaces approach, please refer following:
http://avatar21.superihost.com/index.php?entry=entry051020-163838
A forth/fifth approach will be much browser-portable, but the amount of coding will be more.
Regards,
Avatar Ng
Message was edited by:
Avatar_Ng
Message was edited by:
Avatar_Ng
Maybe you are looking for
-
Spry Menu Bar is not doing what I want it to do
I am attempting to work with the Spry Menu Bar, which was starting to work, but then I made the mistake of trying to resize it using the resize handles around the menu. And now I can't figure out how to get it back to the right size. I've tried undoi
-
Purchase requisition release - reg.,
Hi guru"s When Iam releasing purchase requisition one item is not getting into release? can anybody explain what is the problem thanks in advance tulja singh
-
Printing RTF-Text using JTextPane
G'day Does someone know how to print the drawed content of a JTextPane/JEditorPane? I derived a class from JTextPane and implemented Printable: public void print(Graphics g) paintComponent(g); public void paintComponent(Graphics g) super.paintCom
-
Has Anyone resolved a directory error when backing up to an Airport Disk?
Beginning on 16 April, Time Machine stopped backing up to my Airport Disk. It still attempts but is unable to get past "Preparing" I can see the Airport Disk in the available disks in TM and I can get to the backups on the disk (oldest is 23 March).
-
Mime Types Gone After System Update
Nautilus and PCmanfm can not recognise any file type. Everything is an executable and text file. Evince can not open any file after update. /etc/mime.types was sliced down to a single line: application/x-java-jnlp-file jnlp I recovered the file by in