Image in data tables
Hello,
Maybe some body can help me here. I have a data table and the headers are links where I can sorted the data I have the sort working but what I like to do is besides the column header link inser a image like an arrow pointing up for sort ascending and pointing down for descending but I'm having problems I try DIV to hide and show the image but that does no work any suggestions
Thanks
Use the 'rendered' attribute.
<h:graphicImage value="up.gif" rendered="#{!myBean.sortAscending}" />
<h:graphicImage value="down.gif" rendered="#{myBean.sortAscending}" />
Similar Messages
-
A data table in one column of a dynamic data table
Hi , I have to design a dynamic data table(with dynamic columns and data) which looks as the following
DETAILS NAME ROLE NUMBER CLASS SECTION
15 MATHS SURESH 15 10 A
20 SCIENCE
25 ENGLISH
15 MATHS SURESH 15 10 A
20 SCIENCE
25 ENGLISH
The data in the column 'DETAILS' should have inner table. The data in this inner table should have hyper links. If there is no inner table infor mation there shold be an image with hyperlink. This data table should also have pagination and sorting features. Please send me some example code for this. Please help me out as i have client demo on mondayYou may find this example useful: [http://balusc.blogspot.com/2006/06/using-datatables.html#NestingDatatables].
To toggle between a nested datatable and a hyperlink with image just use the rendered attribute. E.g.
<h:column>
<h:dataTable rendered="#{!empty dataItem.innerList}">
</h:dataTable>
<h:commandLink rendered="#{empty dataItem.innerList}">
</h:commandLink>
</h:column>
... -
Displaying image from database table.
Hi All,
I am very new to Web Dynpro ABAP.
I am developing an application to display an image in "Image" UI Element.
For this I have one table consisting of fields image id, image data and image name. here image id is primary key field.
Now i want to display an image from that table in "Image" UI Element. For this i am using "Filedown load" UI element.
But by using filedownload ui element i can diaplay image in another new page.
But my requirement is to display image in the same web page without creating a new one.
(I want to display the image in "Image" UI element without storing that image in MIME objects.)
Can anyone help me.
Thanks in Advance!
Regards,
Sreelakshmi.What you describe is completely possible. Since you have the image data (XSTRING) in the context you have everything you need. You don't need to store the content into the MIME Repository, but you do need to get it somewhere where it has an externally accessible URL. Remember you need to supply image UI element with a URL. This URL is processed on the client side by the web browser. Therefore just giving it a path to the context won't work as that isn't externally accessible.
I would suggest instead that you place the image content into the ICM cache temporarily. This lets you basically generate a temporary URL for the image that can be used by the Image UI element.
Here is some example code that pushes images into the ICM Cache:
****Create the cached response object that we will insert our content into
DATA: cached_response TYPE REF TO if_http_response.
CREATE OBJECT cached_response
TYPE
cl_http_response
EXPORTING
add_c_msg = 1.
try. " ignore, if compression can not be switched on
call method cached_response->set_compression
exporting
options = cached_response->co_compress_based_on_mime_type
exceptions
others = 1.
catch cx_root.
endtry.
****set the data and the headers
DATA: l_app_type TYPE string.
DATA: l_xstring TYPE xstring.
cached_response->set_data( me->gx_content ).
l_app_type = me->gx_mimetype
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = l_app_type ).
****Set the Response Status
cached_response->set_status( code = 200 reason = 'OK' ).
****Set the Cache Timeout - 60 seconds - we only need this in the cache
****long enough to build the page and allow the Image on the Client to request it.
cached_response->server_cache_expire_rel( expires_rel = I_CACHE_TIMEOUT ).
****Create a unique URL for the object
DATA: guid TYPE guid_32.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
CONCATENATE i_path '/' guid '.' i_format INTO r_url.
****Cache the URL
cl_http_server=>server_cache_upload( url = r_url
response = cached_response ). -
hi. Im importing images from Fw into a Dw table. have 2 rows and an image in each row. in Dw it looks fine, but when i go to preview the page in browser, i can see space between 2 images which i dont want to see. why do i see it and how to get rid of it? thanks.
college project. we were showed bare basics: how to create website starting with a table. and we have to design one starting with a table. Fw was never mentioned. that is just me trying to do a bit better than shown in class. so i learned basics about Fw and tried to insert .png into damn table which resulted in spaces between images. but i think im being beaten on this one. thanks a mill for your time.
Date: Fri, 7 Feb 2014 14:57:45 -0800
From: [email protected]
To: [email protected]
Subject: Dw images in a table
Re: Dw images in a table
created by Nancy O. in Dreamweaver support forum - View the full discussion
A requirement for what reason?
Nancy O.
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6098674#6098674
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6098674#6098674
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6098674#6098674. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Dreamweaver support forum at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
Multiple images in a table?
Ok I decided to come ask before doing this the very long and boring way. I have a table that is 50 by 45 that I am inserting images into, is there an easier way to do this besides dragging each picture into the table one by one? I am very new to all of this so it seems I am doing everything the hard way So any help would be greatly appreciated!!! TYIA
If you are new, then you are correct that is the simplest way, but it is also the most inefficient. The only quicker way would be to store large about of images or data in a database and then use programming loops to print out the results.
Or alternatively, if you know you want an image gallery you could look into pre-built solutions like: http://gallery.menalto.com/ -
hello, I have this problem I am not able to sort in a simple way.
I have a DB table filled with image URLs. I would like to display a grid of, say 4 rows and 4 columns displaying 16 images at a time, with pagination.
How can I do it?
Data tables don't seem to support displaying values horizontally and row wrap.
I don't want to use 16 data tables in the same page...
Thanks
Mauro>
I don't want to use 16 data tables in the same
page...
How is your image url saved. In a single column in the database table?
Try this.
- Add a table component
- From Page Layout set the component type as Image
- Remove the column value expression
- Set the Table Pagination as 4
Add a property called imageURL (of type URL) to the session bean or Page1.java.
Using binding dialog bind this method to all the column in the Table Component.
Now get the URL from your database table (corresponding data provider) and return the relative URL accordingly through this getImageURL() method.
- Winston -
Batch load images (tiff) into table with a BLOB column
Hi,
Does anyone know any third-party tool/software to bulk/batch load images into Oracle table? There is an ETL software to regularly pull the images (tiff) from a ftp server to a directory in the database server. There is no way I can hardcode the image filenames into the control file and use SQL*Loader to load the files. Is there any tool/software that can just grab whatever files in the directory and load them into Oracle. Then, I can write a program to extract the filename from the file already loaded into the table and update the filename column.
Thanks.
Andysound like simple scripting to me...
-- SQL loader example
http://www.orafaq.com/wiki/SQL%2ALoader_FAQ#How_does_one_use_SQL.2ALoader_to_load_images.2C_sound_clips_and_documents.3F
-- dynamically build control file
devuser1:/tmp>>touch image1.gif
devuser1:/tmp>>touch image2.jpg
devuser1:/tmp>>touch image3.jpg
devuser1:/tmp>>ls -l image*
-rw-rw-r-- 1 devuser1 mygrp 0 Jul 10 11:19 image1.gif
-rw-rw-r-- 1 devuser1 mygrp 0 Jul 10 11:19 image2.jpg
-rw-rw-r-- 1 devuser1 mygrp 0 Jul 10 11:19 image3.jpg
devuser1:/tmp>>ls -l image* | awk '{ print NR "," $9}'
1,image1.gif
2,image2.jpg
3,image3.jpg
devuser1:/tmp>>echo "LOAD DATA" > t.ctl
devuser1:/tmp>>echo "INFILE *" >> t.ctl
devuser1:/tmp>>echo "..." >> t.ctl
devuser1:/tmp>>echo "BEGINDATA" >> t.ctl
devuser1:/tmp>>ls -l image* | awk '{ print NR "," $9}' >> t.ctl
devuser1:/tmp>>cat t.ctl
LOAD DATA
INFILE *
BEGINDATA
1,image1.gif
2,image2.jpg
3,image3.jpgEdited by: maceyah on Jul 10, 2009 12:42 PM -
Using Highlight for columns in data tables
Hi, I'm using the "Highlight" function of SpryEffects in
combination with the sorting features. My HTML structure is a
simple data table, with a repeating region on the table row, so it
pulls in as many rows there are pieces in the attached XML file.
When I sort by one of the column headers at the top, I want to
highlight that whole column, so users can see what they're sorting
by. I'm able to get the first row of the data table highlighted,
but none of the following rows work. I'm pretty sure the problem is
that the highlight function only works when you use an id to define
the element that you want highlighted. If it's in a repeating row,
it sees many ids on the page, and only applies the highlight to the
first one. I want to change the id to a class, so I can put
multiple ones on the page and have it work, but I can't see how to
do that in the SpryEffects.js file.
Can anyone tell me if it's possible to do this? Thanks.
Here's the portion of the .js file:
function setupHighlight(element, effect)
Spry.Effect.setStyleProp(element, 'background-image',
'none');
function finishHighlight(element, effect)
Spry.Effect.setStyleProp(element, 'background-image',
effect.options.restoreBackgroundImage);
if (effect.direction == Spry.forwards)
Spry.Effect.setStyleProp(element, 'background-color',
effect.options.restoreColor);
Spry.Effect.Highlight = function (element, options)
var durationInMilliseconds = 1000;
var toColor = "#ffffff";
var doToggle = false;
var kindOfTransition = Spry.sinusoidalTransition;
var setupCallback = setupHighlight;
var finishCallback = finishHighlight;
var element = Spry.Effect.getElement(element);
var fromColor = Spry.Effect.getStyleProp(element,
"background-color");
var restoreColor = fromColor;
if (fromColor == "transparent") fromColor = "#ffff99";
var optionFrom = options ? options.from : '#ffff00';
var optionTo = options ? options.to : '#0000ff';
if (options)
if (options.duration != null) durationInMilliseconds =
options.duration;
if (options.from != null) fromColor = options.from;
if (options.to != null) toColor = options.to;
if (options.restoreColor) restoreColor =
options.restoreColor;
if (options.toggle != null) doToggle = options.toggle;
if (options.transition != null) kindOfTransition =
options.transition;
if (options.setup != null) setupCallback = options.setup;
if (options.finish != null) finishCallback = options.finish;
var restoreBackgroundImage =
Spry.Effect.getStyleProp(element, 'background-image');
options = {duration: durationInMilliseconds, toggle:
doToggle, transition: kindOfTransition, setup: setupCallback,
finish: finishCallback, restoreColor: restoreColor,
restoreBackgroundImage: restoreBackgroundImage, from: optionFrom,
to: optionTo};
var highlightEffect = new Spry.Effect.Color(element,
fromColor, toColor, options);
highlightEffect.name = 'Highlight';
var registeredEffect =
SpryRegistry.getRegisteredEffect(element, highlightEffect);
registeredEffect.start();
return registeredEffect;Hi Philip, Thanks a lot for puting this enhancement request through.
Just downloaded the latest Patch upgrading to v 3.1.2-704 and confirmed that this functionality is not available yet.
Keeping your experience in mind what kind of expectation to you have for the approval and realization of your request?
Most likely this will take a couple of month – right? Or is there a beta version of 3.2 already available we could use.
Thanks a lot. Cheers Stefan -
Hi all,
I'd like to create an image of a graph with a data table below that contains the data displayed by the graph. I know this is possible as of SP 8 of IGS 6.40, but I can't find anywhere any documentation on how I can pass this on to the Chart Element of the Graphics extension.
Does anyone know what I should put in my custom XML or any other way of obtaining this result? Any pointers to documentation that could get me on the right track would also be appreciated.
Thanks,
TimHi Kai,
I had indeed seen that note about BW, so I thought the IGS was capable of doing it. I just had to do a similar call as BW. Too bad this isn't supported.
Anyways, thanks a lot for your answer. I won't waiste my time looking for a way to do this anymore now.
Thanks,
Tim -
Business Graphics and Data Tables
Hi All,
I have a SAPGUI application which uses the SAP Chart to display a pretty simple column chart with a data table underneath.
With the SAPGUI Chart Options this is set as so: [Chart Options |http://www.assetcentric.com.au/images/chart-options.png]
The result is a chart looking like so:
[Chart Example|http://www.assetcentric.com.au/images/chart-example.png]
Does anybody know whether this is possible to achieve with the IGS from WebDynpro?
Regards
AndrewHi,
If you are using webdynpro for ABAP then we cna use the Business Graphics UI element where we have differenet chart optins( bar, pie, lines etc) to have the graphs.
BG in Webdynpro -
http://help.sap.com/saphelp_nw70/helpdata/EN/ed/258841a79f1609e10000000a155106/content.htm
For WD4Java we need the separate IGS server to render the graphs, but in WD4A we dont need it. we can design webdynpro applicaitons in SE80 and can run the applciations in browser direclty.
we can use the data from BAPI by making a service call to that BAPI, and bind the tables to this BG UI element to display.
Regards
Lekha -
WD4A : Displaying images in ALV table
Hi,
Does anyone know how to display images in ALV tables in Webdynpro?Hello,
You can define an attribute in the context with the type CHAR 30 and define it value like an icon from WDA (like ~Icon/GreenLed). And then you need to create an method to define the attributes of the column that will have the image like follows:
METHOD display_alv .
DATA: lr_alv_usage TYPE REF TO if_wd_component_usage,
lr_config TYPE REF TO cl_salv_wd_config_table,
lr_col_header TYPE REF TO cl_salv_wd_column_header,
lr_function_wd TYPE REF TO cl_salv_wd_function,
lr_button TYPE REF TO cl_salv_wd_fe_button,
lr_image TYPE REF TO cl_salv_wd_uie_image,
lr_header TYPE REF TO cl_salv_wd_header,
lr_uie_link TYPE REF TO cl_salv_wd_uie_link_to_action,
lr_if_controller TYPE REF TO iwci_salv_wd_table,
lr_function_set TYPE REF TO if_salv_wd_function_settings,
lr_table_settings TYPE REF TO if_salv_wd_table_settings,
lr_column_settings TYPE REF TO if_salv_wd_column_settings.
DATA: lt_columns TYPE salv_wd_t_column_ref,
ls_column TYPE salv_wd_s_column_ref,
lv_text TYPE string.
* Instantiate ALV Component
lr_alv_usage = wd_this->wd_cpuse_all_alv( ).
IF lr_alv_usage->has_active_component( ) IS INITIAL.
lr_alv_usage->create_component( ).
ENDIF.
* get reference to model
lr_if_controller = wd_this->wd_cpifc_all_alv( ).
lr_config = lr_if_controller->get_model( ).
* modify visible rows
lr_config->if_salv_wd_table_settings~set_visible_row_count( iv_rows ).
lr_config->if_salv_wd_table_settings~set_selection_mode(
wd_assist->co_alv_selmode ).
* create function
lr_function_set ?= lr_config.
lr_function_wd = lr_function_set->create_function(
wd_assist->co_func_det_nfe ).
CREATE OBJECT lr_button.
*read text
lv_text = wd_assist->read_text( iv_key = '002' ).
lr_button->set_text( lv_text ).
lv_text = wd_assist->read_text( iv_key = '001' ).
lr_button->set_tooltip( lv_text ).
lr_button->set_image_source( wd_assist->co_icon_seldet ).
lr_function_wd->set_editor( lr_button ).
* set table header
lr_table_settings ?= lr_config.
lr_header = lr_table_settings->get_header( ).
lv_text = wd_assist->read_text( iv_key = '003' ).
lr_header->set_text( lv_text ).
lv_text = wd_assist->read_text( iv_key = '004' ).
lr_header->set_tooltip( lv_text ).
lr_header->set_image_source( wd_assist->co_icon_list ).
lr_column_settings ?= lr_config.
lt_columns = lr_column_settings->get_columns( ).
LOOP AT lt_columns INTO ls_column.
CASE ls_column-id.
WHEN 'ICON'.
CREATE OBJECT lr_image.
lr_image->set_source_fieldname( ls_column-id ).
lr_image->set_tooltip_fieldname( 'ICON_TOOLTIP' ).
ls_column-r_column->set_cell_editor( lr_image ).
WHEN 'ID'.
CREATE OBJECT lr_uie_link.
lr_uie_link->set_text_fieldname( ls_column-id ).
ls_column-r_column->set_cell_editor( lr_uie_link ).
WHEN 'ICON_TOOLTIP' or 'LOGSYS'.
ls_column-r_column->set_visible(
cl_wd_uielement=>e_visible-none ).
ENDCASE.
*set header binding of medium description, otherwise title
lr_col_header = ls_column-r_column->get_header( ).
lr_col_header->set_ddic_binding_field(
if_salv_wd_c_column_settings=>ddic_bind_medium ).
ENDLOOP.
ENDMETHOD.
Here will be showed an icon (column ICON) and an link (column ID).
Regards, -
Ajax4JSF and Tomahawk data table, strange behaviour
Hi,
I use the tomahawk data table to display a list of objects in my page with the following code snippet
<t:dataList value="#{userGallery.images}" var="image" layout="simple">
<a4j:region>
<t:htmlTag value="div" styleClass="imageEntry">
<!-- This is the interesting part -->
<h:outputLink value="gallery.faces">
<f:param name="imageId" value="#{image.id}" />
<t:div styleClass="imageWrapper image_#{image.id} #{image.inCart ? 'inCart' : ''}">
<h:graphicImage value="#{ftp.apacheThumbnails}#{image.imageName}" alt="#{image.imageName}"/>
</t:div>
</h:outputLink>
<!-- End of the interesting part -->
<t:htmlTag value="div" styleClass="textWrapper">
<t:htmlTag value="div" styleClass="actions">
<a4j:commandLink reRender="imageList,shoppingChart" styleClass="addToCart" value="+#{msg.detailCart}" action="#{shoppingCart.addImageToCart}" rendered="#{!image.inCart}">
<f:setPropertyActionListener target="#{shoppingCart.chosenImageId}" value="#{image.id}" />
</a4j:commandLink>
<a4j:commandLink reRender="imageList,shoppingChart" styleClass="removeFromCart" value="-#{msg.detailCart}" action="#{shoppingCart.removeImageFromCart}" rendered="#{image.inCart}">
<f:setPropertyActionListener target="#{shoppingCart.chosenImageId}" value="#{image.id}" />
</a4j:commandLink>
</t:htmlTag>
</t:htmlTag>
</t:htmlTag>
</a4j:region>
</t:dataList>I have marked the interesting part of the text.
When i first access the page then everything is rendered as it should be.
When i now klick on the a4j:commandLink then i got the following result: (only the interesting snippet)
<div class="imageEntry">
<a href="gallery.faces?imageId=2"/>
<div class="imageWrapper image_2 inCart">
..... (output as it should be)
</div>
<div class="textWrapper">
.... (output as it should be)
</div>
</div>So you see the link tag is closed to early, it should wrapp the complete <div class="imageWrapper> object.
Anybody know how to solve this?
Edited by: heissm on 19.05.2008 16:26 - shifting of the html tagsHi,
I use the tomahawk data table to display a list of objects in my page with the following code snippet
<t:dataList value="#{userGallery.images}" var="image" layout="simple">
<a4j:region>
<t:htmlTag value="div" styleClass="imageEntry">
<!-- This is the interesting part -->
<h:outputLink value="gallery.faces">
<f:param name="imageId" value="#{image.id}" />
<t:div styleClass="imageWrapper image_#{image.id} #{image.inCart ? 'inCart' : ''}">
<h:graphicImage value="#{ftp.apacheThumbnails}#{image.imageName}" alt="#{image.imageName}"/>
</t:div>
</h:outputLink>
<!-- End of the interesting part -->
<t:htmlTag value="div" styleClass="textWrapper">
<t:htmlTag value="div" styleClass="actions">
<a4j:commandLink reRender="imageList,shoppingChart" styleClass="addToCart" value="+#{msg.detailCart}" action="#{shoppingCart.addImageToCart}" rendered="#{!image.inCart}">
<f:setPropertyActionListener target="#{shoppingCart.chosenImageId}" value="#{image.id}" />
</a4j:commandLink>
<a4j:commandLink reRender="imageList,shoppingChart" styleClass="removeFromCart" value="-#{msg.detailCart}" action="#{shoppingCart.removeImageFromCart}" rendered="#{image.inCart}">
<f:setPropertyActionListener target="#{shoppingCart.chosenImageId}" value="#{image.id}" />
</a4j:commandLink>
</t:htmlTag>
</t:htmlTag>
</t:htmlTag>
</a4j:region>
</t:dataList>I have marked the interesting part of the text.
When i first access the page then everything is rendered as it should be.
When i now klick on the a4j:commandLink then i got the following result: (only the interesting snippet)
<div class="imageEntry">
<a href="gallery.faces?imageId=2"/>
<div class="imageWrapper image_2 inCart">
..... (output as it should be)
</div>
<div class="textWrapper">
.... (output as it should be)
</div>
</div>So you see the link tag is closed to early, it should wrapp the complete <div class="imageWrapper> object.
Anybody know how to solve this?
Edited by: heissm on 19.05.2008 16:26 - shifting of the html tags -
Hello...
I just got my first 2tb TimeCapsule (TC). Unfortunately, it is not backing up!! I keep on getting the message "the backup disk image "/volumes/data/GuisselleiMac.sparsebundle" could not be created (error (null))"
I've looked in many websites but can't find a solution... I've tried re-setting the TC to original settings, turning my Mac off and on, changing the name of my mac, changing the name of my mac on the network, nothing works!!!
My TC is connected with an ethernet cable to a linksys router wich is connected to the cable modem, so it is in bridge mode. I have not connected the TC to my mac, I don't think this is necessary..
Can someone help me please!!!My TC is connected with an ethernet cable to a linksys router wich is connected to the cable modem, so it is in bridge mode. I have not connected the TC to my mac, I don't think this is necessary..
Your TC is not directly connected to the Mac and unfortunately it does seem to matter.
The reason the TC fails is not entirely clear but it has to do with Mavericks.
Let me recommend you test what happens with the TC reset and plugged directly into the Mac by ethernet.
You will need to run it in router mode. Ignore all the errors and see if it now works.
The other suggestion is to manually mount the TC hard disk
First of all find it in the network via network utility.
Run netstat and get the current routing table.
Locate your TC on it.. On mine above it shows as tcgen4.local
So in Finder top menu.. Go > Connect to Server.
Type in AFP://TCnetworkname.local (exactly as it appears in netstat)
Or use the IP address.. the problem is that in your setup it is probably not fixed.
The current IP can be found by pinging the name. So ping in a terminal or in network utility.
ping tcgen4
ping: cannot resolve tcgen4: Unknown host
Note how you must use the full domain.
ping tcgen4.local
PING tcgen4.local (192.168.2.201): 56 data bytes
64 bytes from 192.168.2.201: icmp_seq=0 ttl=255 time=4.160 ms
64 bytes from 192.168.2.201: icmp_seq=1 ttl=255 time=3.742 ms
64 bytes from 192.168.2.201: icmp_seq=2 ttl=255 time=3.332 ms
64 bytes from 192.168.2.201: icmp_seq=3 ttl=255 time=3.785 ms
^C
--- tcgen4.local ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 3.332/3.755/4.160/0.293 ms
So you have now established the IP..
And type that in.
AFP://192.168.2.201 (or whatever shows).
Once you have mounted the disk .. delete the old Time Machine setup as per A4 in Pondini.. and set up again.
It should work.. but I strongly recommend a direct link to the TC. -
Sort Indicators on Spry Data Table
Hello,
I was wondering if there is any way to add "indicators" to a
Spry data table to show the sort direction? If not, maybe a request
to add them or is there a .js way to add them easily.
Thanks in advance,
MattOK, here is my solution to my table sort indicators question
after being pointed in the right direction by Donald. I hope this
will help someone out and save time.
Thanks, Matt
First:
/* This function takes onclick sorted column and adds sort
indicator based on Asc/Desc. Need to do alittle debugging so I left
some alerts in to make sure Asc/Desc was working */
function sortInd(idvar) {
/*Used these hidden divs because passed values seemed to be
opposite and not updating */
var sortOrd =
document.getElementById("curSortOrd").innerHTML;
var sortCol =
document.getElementById("curSortCol").innerHTML;
/* alert(sortOrd + " " + sortCol); */
charToRemove = '"';
regExp = new RegExp("["+charToRemove+"]","g");
var newSortOrd = sortOrd.replace(regExp,"");
/* alert(newSortOrd); */
var imageasc = new Image();
imageasc.src = "../../html/mattm55/images/asc.gif"
imgasc = "<img src=" + imageasc.src + ">";
var imagedes = new Image();
imagedes.src = "../../html/mattm55/images/des.gif"
imgdes = "<img src=" + imagedes.src + ">";
if ( newSortOrd == "ascending" ) {
document.getElementById(idvar).innerHTML = idvar + " " +
imgasc;
if ( newSortOrd == "descending" ) {
document.getElementById(idvar).innerHTML = idvar + " " +
imgdes;
Second part:
<th onclick="dsUsers.sort('name','toggle');
sortInd('Name');"><div
id="Name">Name</div></th>
<th
onclick="dsUsers.sort('email','toggle');sortInd('Email');"><div
id="Email">Email</div></th>
..... and so on for table.....
Last part: Seemed to need this as when passing "asc/des" to
js it seemed to not update or be reveresed so I got around that by
some hidden divs.
<th><div id="curSortCol" style="display:
none;">"{dspsmUsers::ds_SortColumn}"</div>
<div id="curSortOrd" style="display:
none;">"{dspsmUsers::ds_SortOrder}"</div></th> -
How To Store A Image In A Table
I want to store an image that showing on a form to a column of a table having data type BLOB.
Could anyone help immediately ?
Thanks
Saiful Alam
March 18, 2001
nullGeorg,
Thanks for your response.
I want to solv the problem in this way.....
I have an application with following components
1. A table
CREATE TABLE table_a (image_id NUMBER(2), image BLOB)
2. A form form_a with following item
2.1. Name->form_a.image_id
Item type-> text item
2.2. Name->form_a.image
Item type->image
2.3. Name->form_a.ctrl
Item type->push button
MY REQUIRMENTS ARE
======================
1. I want to use following SQL statements in WHEN-VALIDATE-ITEM trigger of
form_a.image_id to retrive image from the table
and display it on the image item (i.e. form_a.image).
SELECT image
INTO :form_a.image
FROM table_a
WHERE image_id=:form_a.image_id;
1. I want to use following SQL statements in WHEN-BUTTON-PRESSED trigger of
form_a.ctrl to update image of the table
UPDATE table_a
SET image=:form_a.image
WHERE image_id=:form_a.image_id;
Above statements doesn't work
How can I do above things ?
Could you help me.
Thanks
Saiful Alam
[email protected]
null
Maybe you are looking for
-
My apple ID works on iPhone 6 but doesn't work on mac
I tried to sync my phone from my mac to get music from my mac to my phone. In the process of that it asked for my apple ID and it didn't work for some reason. I tried several times again and I am positive that it wasn't a typo so i tried to make a ne
-
Battery indicator on N95 v21.0.016
Hello all: Ever since I updated to the new v21.0.016 firmware, the battery indicator on my N95 acts kind of strange. For two days it shows a full charge (seven bars) and suddenly, in less than a couple of hour, goes down from seven bars to one bar (n
-
Using Active Directory (LDAP Plugin) Across Multiple AD Servers
Hi, I need to give an existing application the ability to talk to multiple active directories using the AD LDAP interface from a J2EE Applcation running on Apache 2.x/Tomcat 5.x (there are 4 independent AD trees and users from ANY of the trees can ac
-
can i organize my videos better on the ipod, like in a folder like i do my music. example ( once im in the video section i would like to be able to see folders or playlists of lets say family videos, tv shows, music videos and so forth. if i can plea
-
Why won't my iMessages work?
All of the people I text have iMessage and they all turned to text message. Why?