Creating a multiple selection image library using forms
Hi,
So, I have a client who I need to present with a pdf showing the images they hold currently. I have created an InDesign doc, which is 3 x 3, and has 19 pages. I have attached image for visual ref as to what each of the pages looks like.
What I am trying to achieve, is that with each image there are three tick boxes. Yes, No and Preferred.
When running the form through Acrobat, it picks up the fields fine, but each row is treated as one set of fields. i.e. I cannot select more than one tick box per row.
How can I split these up so the client can freely tick any combo of the boxes (so they can check Yes and Preferred if they want) - without having to manually go in and edit the name for each field (513 times).
Any help would be much appreciated.
Thanks
Miles
The problem is you have very little control over how the Form Wizard behaves. Each group of check boxes does need to have a unique name. It's possible to automate the process of adding the check boxes by using JavaScript, but this would probably only make sense if you need to do this a lot.
If you do, you could create something that would automaticaly populate blank image fields with a collection of images, creating as many pages as is necessary, but this would involve a bit of programming.
Similar Messages
-
Multiple Select boxes in one form
Does anyone know if it is possible to have multiple select
boxes inside one form? I have six different select boxes that are
generated by six separate queries. The action page for all six
select boxes is the same so I just want one submit button so users
don't get confuse. I don't want to cluster up the page with submit
buttons but I may resort to that option.
My problem is the select boxes generate a number and when
that number is submitted I want to pass two other variables with it
to the action page. I tried putting a "Form" tag around the 6
select boxes. Inside each select box I tried to add an "Input
type="hidden"" and give thte name and values that I needed. That
worked for the first select box but when I tried the second select
box it used the hidden values for the first select box.
If anyone can help, I would greatly appreciate it. Or if you
have any other suggestions I am open to any.
ThanksPaross1,
I wasn't thinking about that and you gave me a great idea.
Here is how I changed my select boxes.
<cfform
action="Resolution_History.cfm?year=#year#&sessiontype=#sessiontype#&btype=res"
name="form">
<select name="SRINPUT">
<option value="">SR
<CFOUTPUT Query="findSR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<select name="HRINPUT">
<option value="">HR
<CFOUTPUT Query="findHR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<select name="SCRINPUT">
<option value="">SCR
<CFOUTPUT Query="findSCR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<br>
<select name="HCRINPUT">
<option value="">HCR
<CFOUTPUT Query="findHCR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<select name="SJRINPUT">
<option value="">SJR
<CFOUTPUT Query="findSJR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<select name="HJRINPUT">
<option value="">HJR
<CFOUTPUT Query="findHJR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<INPUT TYPE="Submit" VALUE="Submit" alt="submit
button">
</cfform>
On the action page I need the below IF statement to work so
it will set the variables. It isn't working at this time. Its not
bringing the values of billnumber, houseorig or the billtype.
Do you have any thoughts? I know it is close. I need to set
all of the inputs to input4 to generate my queries.
<cfif form.srinput gt 0>
<cfset houseorig eq "s">
<cfset billtype eq "r">
<cfset srinput eq input4>
<cfelseif form.hrinput gt 0>
<cfset houseorig eq "h">
<cfset billtype eq "r">
<cfset hrinput eq input4>
<cfelseif form.scrinput gt 0>
<cfset houseorig eq "sc">
<cfset billtype eq "r">
<cfset scrinput eq input4>
<cfelseif form.hcrinput gt 0>
<cfset houseorig eq "hc">
<cfset billtype eq "r">
<cfset hcrinput eq input4>
<cfelseif form.sjrinput gt 0>
<cfset houseorig eq "sj">
<cfset billtype eq "r">
<cfset sjrinput eq input4>
<cfelse>
<cfset houseorig eq "hj">
<cfset billtype eq "r">
<cfset hjrinput eq input4>
</cfif> -
Create a Multiple-Line JButton Without Using HTML format
I used html format for multiple-line JButton and it took a long time to load that button up (about 5 seconds more). Does anyone know how to create a multiple-line JButton without using html?
Any suggestion or sample code will be appreciated.
javamesserHello,
You could try using the following:
-give your button some layout (e.g.: BoxLayout.Y_AXIS, or BorderLayout).
-create the wrapped text in separate JLabels (one line in each label)
-add your labels to the button
Advantage:
this solution does not affect the laf classes
Disadvantage:
focus rectangle is not calculated accurately
Regards,
G -
Best way to create a multiple select form?
I have been trying to create a form that will allow selection parameters to be entered to populate a list that the user can then select one or more of the values in the list for use in another form.
The following is the code I have come up with so far:
DECLARE
lc_query VARCHAR2(32767);
lc_where VARCHAR(4000);
BEGIN
lc_query := 'SELECT HTMLDB_ITEM.CHECKBOX(1,ROWNUM) AS prd_check, '||
' HTMLDB_ITEM.HIDDEN(2,a.asset_id) AS asset_id, '||
' sup.name||'' ''||prd.description|| '||'' Asset Tag:''||a.asset_tag '||'' Serial Number:''||a.serial_number AS asset_name '||
'FROM supplier sup, '||
' product prd, '||
' asset a '||
'WHERE a.prd_id = prd.prd_id '||
'AND prd.sup_id = sup.sup_id '||
'AND a.hardware_software = ''HDW'' '||
'AND a.responsibility_indicator IN (''1'',''2'',''4'',''9'') ';
IF :P4_AT_ID <> -1 THEN
lc_where := lc_where ||' AND a.at_id = :P4_AT_ID';
END IF;
IF :P4_SUP_ID <> -1 THEN
lc_where := lc_where ||' AND prd.sup_id = :P4_SUP_ID';
END IF;
IF :P4_PRD_ID <> -1 THEN
lc_where := lc_where ||' AND a.prd_id = :P4_PRD_ID';
END IF;
IF :P4_SELECTION IS NOT NULL THEN
lc_where := lc_where
||' AND ( UPPER(a.asset_tag) LIKE ''%''||UPPER(:P4_SELECTION)||''%''
OR UPPER(a.serial_number) LIKE ''%''||UPPER(:P4_SELECTION)||''%''
OR UPPER(a.reference_number) LIKE ''%''||UPPER(:P4_SELECTION)||''%''
OR UPPER(prd.description) LIKE ''%''||UPPER(:P4_SELECTION)||''%'' ) ';
END IF;
lc_query := lc_query ||lc_where;
RETURN lc_query;
END;
I then call the following process that calls a package to insert the rows into my base table of the calling form:
DECLARE
l_asset_id NUMBER;
BEGIN
IF HTMLDB_APPLICATION.G_F01.COUNT > 0 THEN
FOR i IN 1..HTMLDB_APPLICATION.G_F01.COUNT LOOP
l_asset_id := TO_NUMBER(HTMLDB_APPLICATION.G_F02(HTMLDB_APPLICATION.G_F01(i)));
survey_pkg.p_ins_ua ( p_prsn_id => TO_NUMBER(:P4_PRSN_ID),
p_asset_id => l_asset_id,
p_eftv_from => TRUNC(SYSDATE));
END LOOP;
END IF;
END;
However, if the search query does not narrow down enough rows (about 50 rows) I get an ORA-01403 error on selection of the rows.
Question:
Is this the correct approach?
If YES then does anyone know where I have gone wrong?
If NO then what is a better approach?
Thanks in anticipation,
JonIn the end I abandonded the use of using HTMLDB_ITEM and HTMLDB_APPLICATION packages and went back to more standard functionality.
Rather than developing a report using the function above I instead created a multi-select list ITEM and created a List of Values for this based on the function above. This then changes the values in the list on change of my selection criteria. The underlying item then provides my input into my package to create values in the other form, much tidier solution! -
Multiple selections in an HTML form
The option selector (<select>...</select>) in an HTML form allows the
user to make multiple selections. However, when the form parameters
are posted to an XSQL page, only the first value selected will be
assigned to the corresponding XSQL parameter.
This is very unfortunate, because I would like the selected values to
be used in a query like this:
<xsql:query>
select ...
from ...
where ...
and elem in ({@list})
and ...
</xsql:query>
where 'list' is the name of the option selector. However, since only
the first value selected is substituted, the query does not work.
The <xsql:include-request-params/> will "rowify" the values selected,
but this can only be utilized by a style sheet associated with the
XSQL page.
Does anyone know how to get access to all the selected values in the
XSQL page?
HELP!Hi,
Here is an approach that may work for you.
In the registration process, assign each individual a userid... e.g. bob123.
When they log into your site, create a SESSION variable, SESSION.userid = bob123.
In your db, for every player have two fields, one is the userid of the person that is attached to that player, and another field for the jersey number. You could also have a field for assigned/unassigned.
Populate the grid with the unassigned players. Have the empty jersey number field on the grid and make it editable. When an individual assigns a jersey number to the person, (you can have them update after each person selected or at the end), you can let a cfc update the db and using their SESSION.userid, they become the "owner" of that player. The update also will update the db with their jersey number. The update can also turn them from unassigned to assigned so noone else can "claim" them.
Now anytime the user logs in, they'll have their players, easy to get to using a WHERE sql statement = WHERE SESSION.userid = bob123.
cfwild -
Get all the values from a multiple select in a multipart form
Hi there!
I am using a form with enctype="multipart/form-data" in order to upload files from the form.
I have read this page: http://commons.apache.org/fileupload/using.html and everything works well for my form.
The only problem is that I can't get all the values from a "multiple select" html object. I get only one value.
Using servlets I have used this method:
public java.lang.String[] getParameterValues(java.lang.String name) But now I have enctype="multipart/form-data" in my form and I can't use this way...
Is there a way to get all the values of a multi-valued parameter?
Thanks a lot!
StefanoHi
I have got solution for this problem so, I am listing here logic
assume tag name of html
<select name="moption" multiple="multiple">
iterate it in as
String moption="";
boolean cnt=true;
while(itr.hasNext())
FileItem fi=(FileItem)itr.next();
if(fi.isFormField())
if(fi.getFieldName().equals("moption"))
if(cnt==true)
moption=fi.getString();
cnt=false;
else
moption=moption+","+fi.getString();
If wants more help then mail me your problem
at [email protected]
Thanks!
Anand Shankar
Edited by: AnandShankar on 6 Nov, 2009 12:54 PM -
Multiple select lists in tabular form
Hi,
I created a tabular form with two select lists (Queries are same for both the select list and results around 300 records in the SQL).
I am getting the following error:
report error:
ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
If I changed Select list to POP list, I am not getting error.
Please suggest how to user select list in this case.
Regards,
MedaLnTInfotech wrote:
I created a tabular form with two select lists (Queries are same for both the select list and results around 300 records in the SQL).
I am getting the following error:
report error:
ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
If I changed Select list to POP list, I am not getting error.
Please suggest how to user select list in this case.It is not possible. There is a 32K limit on the HTML generated for select list items. (As a type of report, tabular forms are also subject to the 32K limit on the size of a report row.)
In terms of usability 200 options is about the maximum size I would consider sensible for a select list ( and for select lists in tabular forms, much, much fewer!)
Use Popup Key LOVs. -
Create thumbnail from selected images
Hi,
in my app the user can choose some pictures from his local
file system.
I want to create a smaller image of every selected picture.
So I do this for each image:
for( var f = 0; f < e.files.length; f++ ){
name = e.files[f].name;
src = e.files[f].url;
path = e.files[f].parent.url;
files.push( e.files[f] );
//...some other code, not important for this...//
image = new air.Loader();
image.contentLoaderInfo.addEventListener(
air.Event.COMPLETE, function() {
var ratio = null;
if (image.width <= 100) {
thumb_height = image.height;
thumb_width = image.width;
ratio = 1;
else {
var thumb_width = 100;
var thumb_height = null;
var factor = image.width / thumb_width;
thumb_height = Math.round(image.height / factor);
ratio = 100/ image.width;
if (thumb_height > thumb_width) {
thumb_height = 120;
factor = image.height / thumb_height;
thumb_width = Math.round(image.width / factor);
ratio = 100/ image.width;
var bmp = new air.BitmapData( thumb_width, thumb_height );
var temp = air.File.createTempFile();
var desktop = null;
var matrix = new air.Matrix();
var png = null;
var stream = new air.FileStream();
var div = null;
var elem = null;
matrix.scale( ratio,ratio );
bmp.draw( image.content, matrix );
png = runtime.com.adobe.images.PNGEncoder.encode( bmp );
stream.open( temp, air.FileMode.WRITE );
stream.writeBytes( png, 0, 0 );
stream.close();
desktop = air.File.desktopDirectory.resolvePath( toPNG(
e.files[f] ) );
temp.moveTo( desktop, true );
image.load( new air.URLRequest(e.files[f] ) );
function toPNG( orig )
return orig.name.substr( 0, orig.name.length -
orig.extension.length ) + 'png';
The problem is, that the "thumbnail" is only created of the
last selected image. I think it has something to do with the
air.Event.COMPLETE event. But when I kick that off, an error
occures: Error #2015: Invalid BitmapData. at
flash.display::BitmapData().
Hope somebody can help. Thanks in advanceHere´s a nice example that does exactly what I want:
<html>
<head>
<title>Thumbnails</title>
<script src="library.swf"
type="application/x-shockwave-flash"></script>
<script src="AIRAliases.js"
type="text/javascript"></script>
<script type="text/javascript">
var MAX_HEIGHT = 100;
var MAX_WIDTH = 100;
var files = null;
var index = 0;
var loader = null;
var output = null;
function loadImages()
if( index < files.length )
output = document.createElement( 'div' );
loader.load( new air.URLRequest( files[index].url ) );
} else {
loader.visible = false;
function doLoad()
loader = new air.Loader();
loader.contentLoaderInfo.addEventListener(
air.Event.COMPLETE, doLoaderComplete );
window.nativeWindow.stage.addChild( loader );
btnOpen.addEventListener( 'click', doOpenClick );
function doFilesSelect( e )
files = e.files;
index = 0;
loadImages();
function doLoaderComplete()
var bmpd = null;
var encoder = null;
var img = null;
var jpg = null;
var matrix = null;
var ratio = 0;
var realHeight = loader.contentLoaderInfo.height;
var realWidth = loader.contentLoaderInfo.width;
var stream = null;
var thumb = null;
var thumbHeight = 0;
var thumbWidth = 0;
if( realWidth > 0 )
if( realWidth <= MAX_WIDTH )
thumbHeight = realHeight;
thumbWidth = realWidth;
ratio = 1;
} else {
thumbWidth = MAX_WIDTH;
thumbHeight = 0;
factor = realWidth / thumbWidth;
thumbHeight = Math.round( realHeight / factor );
ratio = MAX_WIDTH / realWidth;
if( thumbHeight > thumbWidth )
thumbHeight = MAX_HEIGHT;
factor = realHeight / thumbHeight;
thumbWidth = Math.round( realWidth / factor );
ratio = MAX_WIDTH / realWidth;
matrix = new air.Matrix();
matrix.scale( ratio, ratio );
bmpd = new air.BitmapData( thumbWidth, thumbHeight );
bmpd.draw( loader, matrix );
encoder = new runtime.com.adobe.images.JPGEncoder( 85 );
jpg = encoder.encode( bmpd );
thumb = air.File.desktopDirectory.resolvePath( 'thumb_' +
files[index].name );
stream = new air.FileStream();
stream.open( thumb, air.FileMode.WRITE );
stream.writeBytes( jpg, 0, 0 );
stream.close();
output.innerHTML = files[index].name + ': ' + realWidth + '
x ' + realHeight;
document.body.appendChild( output );
img = document.createElement( 'img' );
img.src = thumb.url;
output.appendChild( img );
index = index + 1;
loadImages();
function doOpenClick()
var browse = air.File.desktopDirectory;
browse.addEventListener( air.FileListEvent.SELECT_MULTIPLE,
doFilesSelect );
browse.browseForOpenMultiple(
'Select Images',
[new air.FileFilter( 'Image Files',
'*.gif;*.jpg;*.jpeg;*.png' )]
</script>
</head>
<body onLoad="doLoad();">
<input id="btnOpen" type="button" value="Open..." />
</body>
</html> -
Multiple selection of data using ITS URL?
Hi,
Is it possible to transfer mass data Via the URL. For eg for the transaction iW48 i want to multiple order nos (that are not in sequence). in R/3 i can do this by the multiple selection of order option and then specifying the Single values. Is there a possible solution where i can do the same by calling the ITS URL?
Any pointers in this regard would be of great help.
Rgds
NithyaHi Raja,
Yes indeed i am using a transaction iView with SAPGUI for HTMl. And it is using the an integrated ITS.
I am able to pass a range of values but being able to pass multiple values is the requirement.
Anyways Thanks a lot for your help.
And since you seem to know quiet a lot about the ITS (I did read you Web-blog as well) i was wondering if you could help me with another problem that i am facing...:)
Can you please go through the following Question as well. It is the same scenario. I have a WD application that calls TA and i need to open a particular tab and process that tab with the values that have been passed. This is the link to the thread
ITS url to process a particular tab of R/3 transaction
Please take the time to go through this and help me if you can.
Thanks and Rgds
Nithya -
Checked some items of multiple-selection list box when form loaded in infopath
Hi
I customize sharepoint list with infopath. I have multiple-selection list box and want to checked some items of that automatically when form loaded. how can do this?
Thanks.Hi,
According to your description, my understanding is that you want to pre-select some items in the Multiple-Selection List Box.
I recommend to follow the steps below to achieve this goal:
Click Default Values under Data tab in InfoPath, expand the dataFields and navigate to the Multiple-Selection List Box field.
Set the Default Value of the Multiple-Selection List Box field.
Right click the field under the Multiple-Selection List Box group, then select Add another Value Below and set the Default Value for this field.
Repeat step3 based on the number of the items that you want to be pre-selected.
More information are provided in the link below:
http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
How to create new Custom XML Report without using Form Builder
Hi,
What are the steps to create new Custom XML Report without using Report Builder ?
Thanks and Regards,
AbhiHi,
Steps we now follow
1)Create Data Model in Reports Builder
2)Create xml
3)Insert xml in Publisher to build Fomat
4)FTp rdf
5)Create Data Definition and Template
6)Create executable and Concurrent Program
Is there any way we can build reports without use of Report Builder ? By writing PL SQL Package for Before Report and After Report etc ...
Thanks and Regards,
Abhijit Rode -
Multiple selections image capture
When I have used Image capture I choose overview it covers the whole document like 8.5x11 page. For some reason now I have multiple boxes all over the document as the default then I make one box expand to cover the space of my current document as that is what I want. When I scan it the scanner is in overdrive making all different size parts of the document. When I look in the folder I have created I see four or five versions all different sizes based on the section that were there in the overview. All I want to have is the one selection of the whole document after I choose overview. Any ideas how to get out of this multiple selctions? There does not seem to be any way to change this in the menus.
BrianOn the right side where the options are, check "create single document".
Regards,
Captfred -
Can't create a multiple file PDF from PDF forms created in Designer
Hi
I want to create a single PDF which combines 6 pdf forms created in Adobe Designer (all as separate pages).
When I try to create a single PDF from these multiple files using the "Create a PDF from Multiple files" command, my A-3D won't let me do this returning a dialog box saying
"The file "filename.pdf" is protected. It cannot be used for this command".
I can't find any properties that control this, either in the original file or in A-3D. Can I overcome this and how?
Many thanks in anticipation.
PhilDesigner-created files aren't really PDF files any more and cannot be
edited or combined in Acrobat (including Acrobat 3D). You CAN make a
package of them, however, in Combine Files.
Aandi Inston -
Hide/Show items in Multiple selection in InfoPath 2010 Form
I have an I an InfoPath 2010 browser enabled form with four sections. Inside each section is a checkbox and a textbox
What I need to do is, have a user select a desired items by checking the checkBox and the items that are not Checked are hiden. They can select (Checked) all the four CheckBoxes. I am using rules but can't seems to get this working. Any help will be appreciated.
EbenezerOk, here is how you have to do , use expression as I mentioned in my previous post, and then use a condition like this
(../my:group1/my:field1 = string(true()) and ../my:group2/my:field4 = string(false()) and my:field6 = string(false())) or
(../my:group1/my:field1 = string(false()) and ../my:group2/my:field4 = string(true()) and my:field6 = string(false())) or
(../my:group1/my:field1 = string(false()) and ../my:group2/my:field4 = string(false()) and my:field6 = string(true()))
here I am checking for all three fields, if either of these is true then it will hide other section
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if my reply helps you -
How to retrieve the Page ID of newly created page in site pages library using javascript
I am creating the page programmatically under site pages library and want to get the ID of that newly created page.
Hi,
The following JavaScript Code for your reference:
<script src="http://code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"> </script>
<script type="text/javascript">
$(document).ready(function () {
var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/GetByTitle('Site Pages')/items?$select=ID&$orderby=Created desc&$top=1";
// execute AJAX request
$.ajax({
url: requestUri,
type: "GET",
headers: { "ACCEPT": "application/json;odata=verbose" },
success: function (data) {
alert("The newly created page ID is " + data.d.results[0].ID);
error: function () {
alert("Failed to get customer");
</script>
Best Regards
Dennis Guo
TechNet Community Support
Maybe you are looking for
-
When I receive a .doc (or .docx) to download from an email, open office or another similar application is chosen to open it instead of MS Office Word (have 2007 student). When I go to Tools>Options>Applications, Word does not appear on the list. When
-
In the table are stored GIF and JPEG images, which can be edited by the user, and then to be written back. Here the code, which handles JPEG-images: OraclePreparedStatement pstmt = (OraclePreparedStatement) conn.prepareStatement ( " SELECT mime _ typ
-
Sort the Nodes and remove duplicate nodes
Hello Experts, I have a requirement to sort the nodes based on a key value. e.g. <Node> <Key>2<Key> <Value1>name1<Value1> <Value2>email1<Value2> </Node> <Node> <Key>1<Key> <Value1>name2<Value1> <Value2>email2<Value2> </Node>
-
I have two questions. 1. I have been trying to add a new signature to my email, but it wont let me, When I press + nothing happens. 2. I have also been trying to add a image to below my signature. I have a jpeg file, but rather than an image appearin
-
Forms Central- I need to add my logo
I am trying to make a fillable PDF with my logo at the top, when I export to PDF the logo(jpeg) disappears?