Link to a Datagrid
I have a data grid with values as follows
Jan | Feb
100 | 200
when I want the column data say 100, 200 have hyerlink and on
clicking oh that i want to go to another grid which will show me
the break up of Rupees 100 in next grid for the month jan.
how it will be possible to make column data as a hyperlink
Yes. The easiest way is to make a custom item renderer that
uses htmlText. A click on a link in htmlText raises an event, which
you can listen for in your app and do as you wish.
You could also ue a LinkButton. And there are other options
as well.
Tracy
Similar Messages
-
Hello all, I am new to Flex. I have some experience with AS3 (still switching over from AS2).
Anyway, I am making a Flex project where I have a text link in a datagrid. This link needs to open a word document that is on our company network. Currently I'm working on my own personal computer on my C drive (not sure if that affects anything - when i hit Run does it run the application from my C drive? It should still work from there i'd think?) We have a bunch of other drives on our network, and the word doc I'm trying to open is on a "P:" drive.
I'm not sure what I might be doing wrong, but I created a LinkButton and tried 2 different attempts at opening a Word doc.
I tried creating a new URLRequest and navigateToURL to attempt to open the word doc - nothing happens when I click the link. The link button will launch google if i replace my word doc path with the google url.
I tried sending the file path to javascript via ExternalInterface and having javascript open it up. It doesn't work that way either.
Is there something I should know about opening up a Word doc file with Flex? Or possibly is it not working because of where the file resides? Any thoughts?
Thanks
-MicheleActually, no and yes. No you do not have to re-save all of your Word files. It depends on what you want to do with them.
The file you have open is actually a Pages file which was created by converting the old Word file (which has not been altered at all). If you want to keep it and any changes you have made as a Pages file, you must "save as." The next time you open that file, it will open naturally in Pages. Every time you open the original Word file, since it has not been converted to native Pages, it will go through the same translating process as it did this time. -
[b]Data Grid in jsp using Struts [/b]
I need to develop a data grid in JSP using struts .
I am using Tomcat web server , Intellij IDEA IDE.
If any one has code, please sent it.
Thanks in Advance.hi,
Use Struts-Layout datagrid framework to full fill your needs
Related Topic link
here is the clear documentation for your topic
http://struts.application-servers.com/datagrid/index.html
here is the download link
(Struts-Layout datagrid framework)
http://deltha.uh.cu/java/docs/struts-layout-1.0-docs/download.html
related discuss
http://forum.java.sun.com/thread.jspa?threadID=5202989&messageID=9811082 -
Adobe Application Modeling plugin eclipse36 (Adobe Flash Builder 4.5)
Hello people,
i have changed my flash builder 4 to 4.5 that cames with eclipse 3.6, and the Modeling plugin that i was using is Adobe_Application_Modeling_plugin_v102_eclipse34
and i tried to use the Adobe_Application_Modeling_plugin_v102_eclipse35 and also did NOT work.
Is there any Modeling plugin for eclipse 3.6 (Flash Builder 4.5)?
Is there any sugestion to resolve this situation?
Regards,
ImraanLCDS version 3.1
Flashbuilder 4.5
Created clean database. Connected with FB. Create FML and link to datesource within LCDS. Create single table with 4 propeties. Save model en deploy, generate code.
Within flashbuilder generate datagrid. Link "getall" to datagrid. Generate form from Data Type. Run app;
Description Resource Path Location Type
1020: Method marked override must override another method. _EmployeesEntityMetadata.as /tutorialApp/src/tutorialApp line 140 Flex Problem
If you need more info just let me know. -
Hi All,
I have a page that I insert records in my database. Then I
display those
records in a datagrid and show all.
Now I wan to select one from the datagrid and edit using the
same form as
the insert but replace the values.
I can change the stage on my button from ADD to UPDATE, but
how to pass my
recordID value calling the record from a link in my datagrid?
Please help
Tks
JFBThank for you reply Bob.
I can get the item... no problem.
How can I open my inputForm.mxml from my ListForm.mxml and
pass my item
value and fill the input form base on my record ID.
I know how to get the data from my cfc also.... but can find
the way to pass
a parameter value and fill the form.
Rgds
JFB
"Bob Saggot" <[email protected]> wrote in
message
news:fb732v$ib5$[email protected]..
>a couple ways to get the object out that you want to
edit...
>
> 1)
> datagridname.selecteditem.DATANAME i.e.)
> products.selecteditem.ProductName
> then to change this you just say
> products.selecteditem.ProductName = "whatever i want to
change it to";
>
> OR
> 2)
> you take it straight out of the arraycollection or array
(RECOMMENDED WAY)
> var num:Number = 0;
> productsCOLLECTION.getItemAt( num ).ProductName =
"whatever you want" if
> arraycollection
> productsARRAY
= "whatever you want"
>
> Something fancy would be...
> var num:Number = products.selectedItem.ID; // This gets
the ID
> from
> the database
> productsCOLLECTION.getItemAt( num ).ProductName =
"whatever you want" if
> arraycollection
> //adds the specific ID from array collection
> -
Hello,
I have a datagrid thats populated from a XML file. In one of
the columns I'd like to have a button that, when clicked, will link
to a PDF drawing of that particular item.
Here's my code so far:
<mx:DataGrid id="dgTips" x="135" y="65" width="209"
height="50" textAlign="center" dataProvider="{tip}">
<mx:columns>
<mx:Array>
<mx:DataGridColumn headerText="A" dataField="a"
width="30"/>
<mx:DataGridColumn headerText="B" dataField="b"
width="30"/>
<mx:DataGridColumn headerText="C" dataField="c"
width="30"/>
<mx:DataGridColumn headerText="D" dataField="d"
width="30"/>
<mx:DataGridColumn headerText="E" dataField="e"
width="30"/>
<mx:DataGridColumn headerText="Drawing" dataField="image"
width="50">
<mx:itemRenderer>
<mx:Component>
<mx:Button click=""
icon="@Embed('/assets/icon_drawing.png')"/>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:Array>
</mx:columns>
</mx:DataGrid>
In my XML file, each item has a field with the path to it's
PDF file. Can anyone tell me how to configure the button?
Any help is appreciated.
Thanks.VarioPegged,
Thanks for the info.
This is my XML structure:
<tip tipId="1">
<name>ITEMNAME</name>
<description>ITEM DESCRIPTION</description>
<series>ABC</series>
<model>MODEL</model>
<alloy>true</alloy>
<carbide>false</carbide>
<hss>false</hss>
<price>00.00</price>
<image>assets/pic/abc_button.gif</image>
<plas>2</plas>
<wire>0</wire>
<a>20</a>
<b>7</b>
<c>5</c>
<d>7</d>
<e>2.5</e>
</tip>
Should I enter something like:
<pdf>assets/pdf/abc.pdf</pdf>
Also, this is my .as file:
public var productId:int;
public var tipId:int;
public var name:String;
public var description:String;
public var series:String;
public var model:String;
public var alloy:Boolean;
public var carbide:Boolean;
public var hss:Boolean;
public var price:Number;
public var image:String;
public var plas:Number;
public var wire:Number;
public var a:Number;
public var b:Number;
public var c:Number;
public var d:Number;
public var e:Number;
Should I enter something like this:
public var pdf:String;
Thanks for all your help with this. -
Showing multiple links from inside a flex datagrid button
Hi,
I have a requirement where I need to show a button inside
flex datagrid column.Which I'm doing with custom itemrenderer.When
the User clicks on a particular button inside data grid I need to
show him multiple links with images where user cal click on one of
the links if he choses to do so.How do I achieve this.Any example
is greatly appreciated.
Regards
mflex."...show him multiple links with images ..." Where/how does
this need to be displayed?
Tracy -
Enable disable linkbar links in datagrid itemrenderer.
Hi All,
I have to show the linkbar in datagrid column as a renderer and enable and disable the links according to attached documents codes.
here are my sample code
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init();">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var arrColl:ArrayCollection = new ArrayCollection();
public function init():void{
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
]]>
</mx:Script>
<mx:DataGrid id="dg" dataProvider="{arrColl}" width="200" height="500" x="510" y="168" >
<mx:columns>
<mx:DataGridColumn itemRenderer="assets.components.linkbarItemRenderer" />
</mx:columns>
</mx:DataGrid>
</mx:Application>
My item renderer linkbarItemRenderer.mxml as
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" creationComplete="init();" >
<mx:Script>
<![CDATA[
import mx.controls.LinkButton;
import mx.collections.ArrayCollection;
import mx.controls.Alert;
[Bindable] public var arrColl : ArrayCollection = new ArrayCollection();
public var arrDocType : ArrayCollection = new ArrayCollection([{data:"1" , label:"AP"},{data:"2" , label:"AR"},{data:"3" , label:"BOL"}]);
public var attDoccodes : Array;
public function init():void
try
var requiredDoc :String = data[0];
var attachDoc : String = data[1];
var reqDocCodes :Array = requiredDoc.split(",");
attDoccodes = attachDoc.split(",");
if(reqDocCodes != null)
//add the links of required documents.
for(var i:int = 0 ; i<reqDocCodes.length; i++ )
var obj:Object = new Object();
for(var j : int = 0; j < arrDocType.length; j++)
if(arrDocType.getItemAt(j).data == reqDocCodes[i])
obj.label = arrDocType.getItemAt(j).label;
obj.data = reqDocCodes[i];
arrColl.addItem(obj);
callLater(enableDisalbeLinks);
catch(error:Error)
Alert.show("error ::"+error.getStackTrace());
public function enableDisalbeLinks():void
try
//disable all links first
for(var q:int=0; q< arrColl.length; q++)
LinkButton(linkBarId.getChildAt(q)).enabled = false;
if(attDoccodes != null)
for(var k:int = 0; k<attDoccodes.length; k++)
for(var l:int = 0 ; l<arrColl.length; l++)
if(arrColl.getItemAt(l).data == attDoccodes[k])
LinkButton(linkBarId.getChildAt(l)).enabled = true;
catch(error:Error)
Alert.show("error ::"+error.getStackTrace());
]]>
</mx:Script>
<mx:LinkBar id="linkBarId" dataProvider="{arrColl}" />
</mx:HBox>
It renderes the link in correct form in datagrid first time.when i scroll the datagrid the rows are miss up with each other and links are not shown propers in enable/disable format.
Thanks,
Amol.Hi All,
It was my fault. Got it work now.
When I redirect to PR, it also calls my page initialization method and clear all data. I added a parameter and issue resolved.
Thanks & Regards,
KJ -
How to open a browser link from DataGrid?
Hello there!
I have done a simple project. It is just A Lable control and a Datagrid. DataGrid gets all the data from a local xml fiile and displays items lime Tile and category. Selecting an item, it should open a new browser window with a link associated with the Title and Catagory. I am lost in here. I was able to list all data then I don't know how to proceed. see the sameple file please.
Really appreciate your time and help.
here is the file:
https://rapidshare.com/files/2371961025/sl.zip
Thank you
KristteeHi Mathangi,
The quick links are designed to be loaded through the home page. That is why the refresh happens for the home page.
Regards
Leon -
Is there a way to create an html link in one of the columns
of a datagrid?Here is a full example. Note that it uses a custom event, but
that is not really necessary. Instead, you can make a public
property in the renderer that contains the data you need, then
access that property in the result handler, via the "target"
event.property.
http://www.cflex.net/showFileDetails.cfm?ObjectID=595
Tracy -
Making a Datagrid with clickable links
I'm trying to pull an XML list into a Flash file (got that
part) and make each item in the resulting datagrid list a link to
different PDF files (that's the part I DON'T have). I would think
you'd build the url right into the XML, but I can't figure out how
to use it to make the cells clickable. Any help would be much
appreciated.Ok, I am about ready to pull my hair out on this (not a lot
to spare, either!). Without giving me the code (I do want to figure
this out for myself...mostly), can you answer the following:
I can obviously figure out how to tie a mouse click event to
the datagrid, but how do I tie the mouse click to a specific FIELD
in the datagrid and grab the data in that field? If I can do that,
I should able to then yank the data from that particular XML item
by comparing the "clicked" cell value to the values listed in the
XML file, and then throwing the url listed in that piece of XML to
a getURL in Flash. But I just cannot for the life of me figure out
how to tell which cell in the datagrid was clicked. Yikes!!
Ok, in continued research, I DID figure out how to tell which
cell is being clicked using ListEvent to tell me the rowIndex and
columnIndex. Now, how do I pull the VALUE of that cell out?? -
Hi Dear;
how can i create an A/R invoice link buttuon as column in as datagrid?
regards;Hi
it has been already discussed
anyway Use this code
dim oLink as SAPbouiCOM.EditTextColumn
oLink=oGrid.Columns.Item(0)
oLink.LinkedObjectType = "13" 'please check object type for Ar invoice
Hope it helps you
Regards
Vishnu -
Flex datagrid - Row as a link?
Is it possible to turn the rows in a datagrid to link up with a different canvas on a viewstack?
Example being like if you have a datagrid with the details of customers in it things like name, dob, address and you click on a row for one persons details then be able to get up a full page of that person... With all the details store in a database somewhere?
I know how to get data showing in a datagrid but now wondering if it is possible to link it up to a different page.A model/view architecture would help. The model would contain a reference to the DataGrid's selectedItem and the other view would reflect the data in that reference.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
AS3 Datagrid - html link?
I have a custom cell renderer for a AS3 Datagrid and the html
tags work except for the links. Anyone know how to get those to
work?
I am using the class below for the custom renderer which is
called in the fla with
dg.setStyle("cellRenderer", CustomCellRenderer);Hi,
Thanks for the advice, will do, sounds interesting and useful.
There seems to be a lot on dataGrids and xml but little on dataGrids and csv which is blinding us a bit.
We arrived at the following solution after a lucky find with yet more googling, that seems to work, not sure if its the most suitable but here it is:-
dg.addEventListener(ListEvent.ITEM_CLICK,dgClickF);
function dgClickF(e:ListEvent):void{
//trace(e.columnIndex, e.rowIndex)
//trace("Focus has left row: " +e.rowIndex + " col: " + e.columnIndex)
if (e.columnIndex == 6 || e.columnIndex == 7){
var cellData = e.target.columns[e.columnIndex].itemToLabel(e.target.getItemAt(e.rowIndex));
//trace(cellData)
var url : String = cellData;
var targetURL:URLRequest = new URLRequest(url);
navigateToURL(targetURL,"_blank")};
Placed it in before the ITEM_CLICK code.
Envirographics -
Can any one have link where datagrid component
can any one have link where datagrid component, ACTUALLY I
WANT HERE that i have rendered checkbox component in datagrid &
delete multiple rows of datagrid help?Hi Sairam, what do you want to do?
1) You can to change language vendor in transaction xk02 with the vendor number and on Address screen you go to Communication tab and change the language there.
2) You can put the currency of vendor on Purchasing data screen in the same transaction
I wish that this information help you
Rose
Maybe you are looking for
-
It's downloading, and when I go to play it, the timer starts, but not the movie, and the movie plays and its black screen. I have the latest update. Help!
-
Find out modell specs based on serial number?
is it possible to find our a phone exact specifications based on the serial number or IMEI? I recieved a replacement iPhone, but bought an iPhone 5 in the meantime. So I wann sell this "new" iPhone on ebay, without having to unwrap it. Wanna make sur
-
Create a new MP3 file from an existing AIFF or MPEG file
The iTunes 9 on my old Mac allows me to create an MP3 version of a song track in the Advanced pull-down menu. The iTunes 10 on my new iMac only allows me to create an AIFF file in Advanced. Is there a way to make these conversions in iTunes 10? I wan
-
Lost my referenced masters after update 3.0.1
Dear all, after the update to 3.01 a few hours ago I have no more access to my referenced masters. When I try to open Photoshop or other plug-ins there is an error message. After having so much trouble with the update from A2 to A3 whilst getting the
-
Here is the error message that pops up when I try to access itunes. Does anyone know what is happening? Any help would be appreciated.