Dynamically give a name to cfimage
I Have a page that displays a series of available items for the public to purchase. each of these items displays an image of the product. My cfimage code is made to scale-to-fit the stored image. normally the displayed results will all shoe different products and their corps pounding images. When I use the code below all of my different products will show the same image instead of showing the images that are linked to each product via a file path stored in the database. Is there a way to set the "name="myImage" dynamically so that each image will display and scale properly?
<cfimage source="C:\ColdFusion9\wwwroot\shotthp\#product.proimage#" name="myImage">
<!--- Turn on antialiasing. --->
<cfset ImageSetAntialiasing(myImage)>
<cfset ImageScaleToFit(myImage,182,"","highestPerformance")>
Assuming that 'product' is the name of the query that contains the path of the image of each product, then you could just use cfoutput. I have assumed in the following that each row in the result-set corresponds to a specific product.
<cfoutput query="product">
<!--- In what follows, myImage is the dynamic name for the image corresponding to each row --->
<cfimage source="C:\ColdFusion9\wwwroot\shotthp\#product.proimage#" name="myImage">
<!--- Turn on antialiasing. --->
<cfset ImageSetAntialiasing(myImage)>
<cfset ImageScaleToFit(myImage,182,"","highestPerformance")>
<!--- More code pertaining to each row, hence to each product. For example, create the folder, scaledProductImages, beforehand and store the edited images for later use --->
<cfimage source="#myImage#" action="write" destination="C:\ColdFusion9\wwwroot\shotthp\scaledProductImages\#product.proimage#" overwrite="yes">
</cfoutput>
Similar Messages
-
HOW TO GIVE CLASS NAME DYNAMICALLY???
Hi all!
I want to give class name dynamically to my statment
<jsp:useBean id="myBean" scope="session" class="myPackage.myClass"/>
now here i want to pass a String as class name how can i do it?
Jiaa:):):)Hi,
You can't assign dynamically a classname in the instruction jsp:useBean
S�b -
Dynamic Logo file names in PO XSL-FO stylesheet
We have different company logo files for different operating units. Hence , we require to use a dynamic logo file name in XSL-FO template.
When I use the below for a single file it works.
<fo:inline>
<fo:external-graphic content-width="50pt" content-height="50pt" src="url({'${OA_MEDIA}/Logo_medium_COMCEL.jpg'})" />
</fo:inline>
However, I would need to make the filename dynamic.
When a tried usng an xsl variable tos tore fielname, it didnt work.
Any pointers as to how we can achieve that would be helpfulThanks for your quick reply Dave, I appreciate your time.
But I couldn't test the new template as I was neither able to create a new PO nor was able to run the PO Output for communication Report. When I tried to create a PO the Purchase Order form did not open saying I am not setup as an employee, even the PO Output for communication did not give any LOV for the PO's.
I tried to define employee name in the employee's login
information (System administrator/Security/User/Define) for my user, but some how my name doesn't appear in LOV. Any help is appreciated.
Thanks,
Sharmila -
Dynamic dashboard page name in obiee 10g
Hi All,
Can we set the dynamic dashboard page name in obiee 10g.
if yes, please give me details about this.
thanx & regards
PrashantPrashant,
You can't have the page name change dynamically. The only option left is to create duplicate pages with different names and apply object level security based on different grps. -
Function short dump - A dynamically specified column name is unknown.
Hello,
I've created BRF fuction according to the Note 1466868 - Dunning by collection strategy with BRFplus. I get short dump during simulation of function with following exception:
"A dynamically specified column name is unknown. "
Runtime Errors SAPSQL_INVALID_FIELDNAME
Exception CX_SY_DYNAMIC_OSQL_SEMANTICS
No. Ty. Program Include Line
Name
19 METHOD CL_FDT_ELEMENT================CP CL_FDT_ELEMENT================CM012 129
CL_FDT_ELEMENT=>GET_VALUES_DDIC
18 METHOD CL_FDT_ELEMENT================CP CL_FDT_ELEMENT================CM011 124
CL_FDT_ELEMENT=>GET_VALUES
17 METHOD CL_FDT_WD_RENDER_VALUE_INPUT==CP CL_FDT_WD_RENDER_VALUE_INPUT==CM00G 139
CL_FDT_WD_RENDER_VALUE_INPUT=>VALIDATE_VALUES
In my opinion there is uncorrect query.
Current version:
. SELECT FIKRS AS VALUE NAME AS TEXT FROM FMBS_BS_T
INTO CORRESPONDING FIELDS OF TABLE lt_value
WHERE LANGU EQ 'E'.
instead of:
. SELECT FM_AREA AS VALUE NAME AS TEXT FROM FMBS_BS_T
INTO CORRESPONDING FIELDS OF TABLE lt_value
WHERE LANGU EQ 'E'.
My sap version:
EHP4 FOR SAP ERP 6.0 / NW7.01
SAP_BASIS 701 0003 SAPKB70103
Do you know any note or solution to resolve this problem.
Best regards,
Jacek WitczakHi, I came back to working on "Dunning by collection strategy with BRFplus". According to your sugestions, I raised the level of components:
SAP_BASIS Level 09
SAP_ABA level 09
PI_BASIS level 09
SAP_BW level 09
But still I have the same short dump.
Shoudl we raise any other components? Maybe you know note, which resolve this problem? -
Function Module that gives the names of the file in the Application Server.
Hi Experts,
Please give me a Function Module that gives the names of the file in the Application Server.
Thanks,
Debi.Hi,
see these links
http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm
http://abaplovers.blogspot.com/2008/05/function-module-sap-logged-in-users-to.html
http://www.saptechies.com/abap-function-modules/
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/function-module-to-get-data-and-time-of-file-576751
thanks
karthik -
Dynamic Receiver file name in AS2 adapter
Hi Experts,
How to get dynamic receiver file name in AS2 adapter. We need receiver file name same as of sender file name.
We tried selecting dynamic attributes file name but we are getting followin error in CC.
Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.seeburger.xi.connector.queue.TaskBuildException: Mandatory attribute dtAS2FileName is not present in XI message., Mandatory attribute dtAS2FileName is not present in XI message.
Thanks,
Harihi hari,
You can't do it manually. As both adapter are in different context.
You can go with UDF to slove ur problem.
Just extract the input file name using Dynamic configuration
Store that in some variable.
Use same name in the dynamic file name in AS2 receiver. Below code might be useful.
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://seeburger.com/xi/common/dtAS2FileName", "DYNFILENAME");
conf.put(key,strfilename);
Thanks
Jai
Edited by: Jaideep Baid on Apr 9, 2010 9:16 AM -
Include the file dynamicly by file name
in my jsp,I want include another jsp dynamicly
<%@ include file="thefile.jsp" %>
thefile.jsp should be dynamic like:
<%=String filename=="thefile.jsp" %>
<%@ include file=filename%>
I know above is not working since file only take static name.
is there any way to include the file dynamicly by file name?String path = "..."; // to the ressource to include
javax.servlet.RequestDispatcher dispatcher
= getServletContext().getRequestDispatcher(path);
dispatcher.include(request,response); -
hello. i have a musical keyboard which is yamaha psr e433 and i want to connect it to my macbook pro. please help me give the name of the connector so i can use it for my band. thank you. your help is much appreciated.
hello. i have a musical keyboard which is yamaha psr e433 and i want to connect it to my macbook pro. please help me give the name of the connector so i can use it for my band. thank you. your help is much appreciated.
-
I cannot install iTunes 10.5. I can download it, but when I go to install it says that a program cannot be run and it won't give the name of the program. I have the Windows Vista 64-bit system.
That would be my first guess. You might be trying to install the 32 bit version of the program.
Update the thread with more info on your apple software etc if its a 64 bit install you're trying to perform. -
How to dynamically set the name of the generated PDF file sent by email
Hello,
I am using Reports 10g and I managed to send PDF reports by email, specifying the recipient, subject, format etc, using the reports servlet URL.
But there is one thing that I cannot find a way to do: I want to dynamically set the name of the attached file. It defaults to the name of the RDF file (eg monthly_sales.pdf). I would like it to be something more meaningful (eg monthly_sales_072010.pdf, where 072010 is the month and year passed by parameters).
Is it possible to do it?
Thanks
LuisUse System.load(...) instead of System.loadLibrary(...).
-
Dynamic Global Host Name!!!
Hello Everybody!
I have Time Capsule 2TB, and i have an issue about it, which its how to connect to it via internet?
i know that i must have mobileme account and to be added to advanced in the airport utility.
then i have to setup the Dynamic Global Host Name, this is my problem?
how can i get the Dynamic Global host Name?
Is it from ISP?
is it supported by some regions? or all over the countries?
if so, is it supported in Egypt?
i gave a try and i contact my ISP (Vodafone) but they didnt hear anything or even know anything about the Dynamic Global Host Name. If from ISP, what could i tell them to understand me?
because when i asked about DGHN, no one understand me.
Thank you for your help,
Sincerely,,,Abdelaal wrote:
now the ip address for the Time Capsule is 196.168.0.4
and the WAN IP address is 10.0.1.1 .
That sounds backwards. The public IP address 196.168.0.4 is administered out of Mauritius, which should make what you see a WAN address. An IP address 10.0.1.1 is a "private" IP address, which you'd expect to see in a LAN behind a NATting router.
(Back to My Mac isn't working properly because you may have more than one device on your network providing Network Address Translation (NAT). Try disabling NAT on one of the devices )
As it says, that means that you are behind multiple layers of routers providing translation of network addresses. Can you tell what WAN address is being assigned to your ADSL modem/router? I'd still try to put that device into "bridge" mode. -
Problem Experts OWB 10gR2 - Mapping with OMB - Give a name to the flat file
I'm trying to create a mapping in OWB by using the Experts (OMB),
where the data source is a database table and the target is a flat file (to transform a table to a flat file).
The tasks of my Experts :
This task create a mapping, and add a existing table on it.
OMBCC '$thepath'
catch {OMBDROP MAPPING 'M1'}
OMBCREATE MAPPING 'M1'
OMBALTER MAPPING 'M1' \
ADD $INITIAL_LAUNCH_CONTEXT_TYPE OPERATOR '$thetable' \
BOUND TO $INITIAL_LAUNCH_CONTEXT_TYPE \ '$INITIAL_LAUNCH_CONTEXT' \
This task change the context and create a flat file
OMBCC '/PRJ_LABO_PHARMA/SRC_FILE'
catch {OMBDROP FLAT_FILE 'NEW_FILE'}
OMBCREATE FLAT_FILE 'NEW_FILE' \
SET PROPERTIES (DATA_FILE_NAME) VALUES('fichier_genere.txt')
This task add the flat file to the mapping, and create a connection between the source (table) and the target (flat file)
OMBCC '/PRJ_LABO_PHARMA/MOD_SRC_LABO'
OMBALTER MAPPING 'M1' \
ADD FLAT_FILE OPERATOR 'NEW_FILE'\
BOUND TO FLAT_FILE '/PRJ_LABO_PHARMA/SRC_FILE/NEW_FILE' \
OMBALTER MAPPING 'M1' \
ADD CONNECTION FROM GROUP 'INOUTGRP1' OF OPERATOR '$thetable' \
TO GROUP 'NEW_FILE' OF OPERATOR 'NEW_FILE' COPY ALL
This task update the flat file structure
OMBRECONCILE MAPPING 'M1' OPERATOR 'NEW_FILE' \
TO FLAT_FILE '/PRJ_LABO_PHARMA/SRC_FILE/NEW_FILE' \
USE (RECONCILE_STRATEGY 'REPLACE', MATCHING_STRATEGY 'MATCH_BY_OBJECT_ID')
Then I have a task which execute this mapping.
Everything is good, but during the execution I have a error VLD-2357 : The target file's name is not indicated for the file NEW_FILE.
I don't know how to give a name to the flat file in OMB.
Help me please.
Best regards
SamyJust like if you built this in the UI where you would have to configure the flat file operator and define a target data file name and possibly the location these properties should be set in scripting.
Set the property TARGET_DATA_FILE_NAME to the name of the data file.
Something like....
OMBALTER MAPPING 'M1' \
MODIFY FLAT_FILE OPERATOR 'NEW_FILE' SET PROPERTIES (TARGET_DATA_FILE_NAME) VALUES ('my_datafile.csv')
Cheers
David -
How can I give a name to excel sheet and open another one?
Hello!
I use CSVWriter for writing in excel file.
I have 2 questions:
1. How can I give a name to a Sheet in excel file?
2. How can I save the first Sheet and open another one with a different name?
Thanks!This is the equivalent in Apache POI which may or may not help. I've never used CSVWriter.
HSSFSheet sheet1 = workbook.createSheet("sheet1Name");
HSSFSheet sheet2 = workbook.createSheet("sheet2Name");Then you can use either sheet object to write your contents. Look at the documentation for CSVWriter that pertains to sheets as it should tell you how. -
How to get the dynamic Crosstab header name ?
Hi ,
The crosstab resaults shows as below ,How to get the dynamic Crosstab header name ?
| Countryname |
| Province1 | Province2 |
| here to get CountryName | here to get CountryName |
how to get the Countryname in data ceil?
thanksCould you please elaborate on your requirement?
You want header to be dynamic?
Maybe you are looking for
-
Issue in Iviews creation in portal
Hi, I am working on Portal 7.01 SP3.I am facing problem in creating iviews. When I want to create new iviews I go to "Content Administration" > Select appropriate folder under PCD > Right-click, select "New" > "iView" > Here I get the option to
-
I am in Skype when I go to WebEx to create a meeting and get participates added. There is an option for me to set up my Audio Conferencing using either my phone or my computer. Computer works fine. And my cell phone works fine. But when I try to use
-
Proposal.:.Multiple Purchase Unit of Measure and pricing
The objective of this message is to start a discussion around procurement unit of measure and pricing. Currently, some of our clients are facing the following limitation: - They stock an item in a specific unit of measure (let say metre) - They buy i
-
I want to get a keyboard but i dont know if it will work. Im new to Mac's so idk too much yet.
-
Hello, I am about to install v4.5 on my Curve 8310. I am wondering what will happen to all of my emails, messages, calandar entries, pictures etc when I install the new software. Will I lose it all?