Data grid Pull
I want my data to fill a data grid
but I am getting a comma delimmited grid with only one record and all of the data going into the first record as comma delimited data.
what am I doing wrong here?
Thanks in advance.
<?xml version="1.0" encoding="utf-8"?>
<s:Group
xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="
library://ns.adobe.com/flex/spark" xmlns:mx="
library://ns.adobe.com/flex/halo" width="760" height="398" xmlns:mx1="library://ns.adobe.com/flex/mx" xmlns:functiondata="services.functiondata.*">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
getDataResult.token = functionData.getData();
getDataResult2.token = functionData.getData();
]]>
</fx:Script>
<fx:Declarations>
<s:CallResponder id="getDataResult"/>
<functiondata:FunctionData id="functionData" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
<s:CallResponder id="getDataResult2"/>
</fx:Declarations>
<s:Label x="0" y="0" text="Operating Procedures" fontWeight="bold" fontSize="15" textDecoration="underline"/>
<s:Label x="0" y="23" text="DAGR KEY PAD" fontStyle="italic" fontWeight="bold"/>
<mx1:VRule x="392" y="0" height="100%"/>
<s:RichText x="401" y="44" text="* The DAGR obtains current position by simply turning the DAGR on with an open view of the sky." width="45%" fontStyle="italic"/>
<s:Label x="408" y="0" text="POWER ON" fontSize="15" fontWeight="bold" textDecoration="underline"/>
<s:Label x="405" y="77" text="a) Push and release the PWR/QUIT key to turn the DAGR on."/>
<s:RichText x="406" y="91" text="b) The POWER ON STATUS message is displayed for two seconds (If a CV Key, GUV key, SV code, internal compass condition exist, acknowledge message accordingly), then the SV Sky View Page is automatically displayed if the following are true. (1) Self-test has passed; (2) DAGR does not need initialization." width="45%"/>
<s:RichText x="427" y="179" text="c) From the SV Sky View page, the DAGR automatically displays the present position page after acquiring the current position. " width="45%"/>
<s:Label x="409" y="211" text="POWER OFF" fontSize="15" fontWeight="bold" textDecoration="underline"/>
<s:Label x="403" y="233" text="a) Push and hold PWR/QUIT key for 2 seconds."/>
<s:Label x="403" y="246" text="b) DAGR displays WARNING acknowledge as necessary"/>
<s:Label x="400" y="264" text="DISPLAY LIGHTING" fontSize="15" fontWeight="bold" textDecoration="underline"/>
<s:Label x="397" y="287" text="a) If keypad/Display lighting is required, turn display light on/off by pushing and holding the BRIGHTNESS/MENY key." width="45%"/>
<s:Label x="398" y="341" text="b) Display lighting on/off status can be verified by observing the display lighting status indicator." width="45%"/>
<s:TextArea x="10" y="40" width="374" editable="true" fontSize="13">
<s:text><![CDATA[* All of the keys on the DAGR keypad are duel function (primary/secondary) except for the cursor (arrow) keys. Each duel function key is labeled with two sets of letters. All primary function keys are labeled with large letters and all secondary functions are labeled with smaller letters. Push and release to activate the primary function of the key. Push and hold (for 2 seconds) to activate the secondary function of the key. Use cursor keys to scroll up and down as well as left and right within pages. Press and release the QUIT/PWR key and POS/PAGE key to advance from one page to another.]]></s:text>
</s:TextArea>
<mx1:DataGrid x="47" y="211" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getDataResult2.lastResult.category}">
<mx1:columns>
<mx1:DataGridColumn headerText="category" dataField="category"/>
<mx1:DataGridColumn headerText="category_id" dataField="category_id"/>
<mx1:DataGridColumn headerText="categoryName" dataField="categoryName"/>
</mx1:columns>
</mx1:DataGrid>
</s:Group>-------------------------------------
Now the data grid is pulling all of the records from the XML file as the top record in the data grid with off of the data from the xml file as comma delimited.
App Code:
<?xml version="1.0" encoding="utf-8"?>
<s:Group
xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="
library://ns.adobe.com/flex/spark" xmlns:mx="
library://ns.adobe.com/flex/halo" width="760" height="398" xmlns:mx1="library://ns.adobe.com/flex/mx" xmlns:functiondata="services.functiondata.*">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
getDataResult.token = functionData.getData();
]]>
</fx:Script>
<fx:Declarations>
<s:CallResponder id="getDataResult"/>
<functiondata:FunctionData id="functionData" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
</fx:Declarations>
<s:Label x="0" y="0" text="Operating Procedures" fontWeight="bold" fontSize="15" textDecoration="underline"/>
<s:Label x="0" y="23" text="DAGR KEY PAD" fontStyle="italic" fontWeight="bold"/>
<mx1:VRule x="392" y="0" height="100%"/>
<s:RichText x="401" y="44" text="* The DAGR obtains current position by simply turning the DAGR on with an open view of the sky." width="45%" fontStyle="italic"/>
<s:Label x="408" y="0" text="POWER ON" fontSize="15" fontWeight="bold" textDecoration="underline"/>
<s:Label x="405" y="77" text="a) Push and release the PWR/QUIT key to turn the DAGR on."/>
<s:RichText x="406" y="91" text="b) The POWER ON STATUS message is displayed for two seconds (If a CV Key, GUV key, SV code, internal compass condition exist, acknowledge message accordingly), then the SV Sky View Page is automatically displayed if the following are true. (1) Self-test has passed; (2) DAGR does not need initialization." width="45%"/>
<s:RichText x="427" y="179" text="c) From the SV Sky View page, the DAGR automatically displays the present position page after acquiring the current position. " width="45%"/>
<s:Label x="409" y="211" text="POWER OFF" fontSize="15" fontWeight="bold" textDecoration="underline"/>
<s:Label x="403" y="233" text="a) Push and hold PWR/QUIT key for 2 seconds."/>
<s:Label x="403" y="246" text="b) DAGR displays WARNING acknowledge as necessary"/>
<s:Label x="400" y="264" text="DISPLAY LIGHTING" fontSize="15" fontWeight="bold" textDecoration="underline"/>
<s:Label x="397" y="287" text="a) If keypad/Display lighting is required, turn display light on/off by pushing and holding the BRIGHTNESS/MENY key." width="45%"/>
<s:Label x="398" y="341" text="b) Display lighting on/off status can be verified by observing the display lighting status indicator." width="45%"/>
<s:TextArea x="10" y="40" width="374" editable="true" fontSize="13">
<s:text><![CDATA[* All of the keys on the DAGR keypad are duel function (primary/secondary) except for the cursor (arrow) keys. Each duel function key is labeled with two sets of letters. All primary function keys are labeled with large letters and all secondary functions are labeled with smaller letters. Push and release to activate the primary function of the key. Push and hold (for 2 seconds) to activate the secondary function of the key. Use cursor keys to scroll up and down as well as left and right within pages. Press and release the QUIT/PWR key and POS/PAGE key to advance from one page to another.]]></s:text>
</s:TextArea>
<mx1:DataGrid x="10" y="211" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getDataResult.lastResult}">
<mx1:columns>
<mx1:DataGridColumn headerText="catID" dataField="catID"/>
<mx1:DataGridColumn headerText="categoryName" dataField="categoryName"/>
</mx1:columns>
</mx1:DataGrid>
</s:Group>--------------------------
XML File:
<? xml version="1.0" encoding="utf-8" ?>
< main>
<catID>1</catID>
<categoryName>F1/FUNCTION KEY</categoryName>
<catID>2</catID>
<categoryName>F2/OUT FUNCTION KEY</categoryName>
<catID>3</catID>
<categoryName>F3/STATUS FUNCTION KEY</categoryName>
<catID>4</catID>
<categoryName>POS/PAGE KEY</categoryName>
<catID>5</catID>
<categoryName>BRIGHTNESS/MENU KEY</categoryName>
<catID>6</catID>
<categoryName>WP/ENTER KEY</categoryName>
<catID>7</catID>
<categoryName>RIGHT CURSOR CONTROL KEY</categoryName>
<catID>8</catID>
<categoryName>DOWN CURSOR CONTROL KEY</categoryName>
<catID>9</catID>
<categoryName>LEFT CURSOR CONTROL KEY</categoryName>
<catID>10</catID>
<categoryName>UP CURSOR CONTROL KEY</categoryName>
<catID>11</catID>
<categoryName>PWR/QUIT KEY</categoryName></
main>
Similar Messages
-
Pulling Data from an imported web service into a data grid - Flex 3.0
Hi all,
I have created a web service from Oracle using JDeveloper and imported it into my Fex 3 project, and I am trying to populate a data grid with the data from the web service. I was trying to emulate the example found in my Adobe Flex 3.0 for Dummies book (see http://dougmccune.com/flexfordummies/chapter14/srcview/index.html), and while the code from the book with that data service works fine, I can't get my application to work. My issue is with the part of code mx:DataGrid dataProvider="(service)" - I do not know how to specify what to use for the data source to populate the data grid from my imported web service. Any suggestions or examples would be helpful, as I am a newcomer to Adobe Flex. My code is as follows:
<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"xmlns:webservices="
generated.webservices.*">
<mx:Script>
<![CDATA[
private function getData():void {service.getPdRec(ageDt.text);
]]>
</mx:Script>
<webservices:PD_Pct_Web_Service id="service" />
<mx:VBox>
<mx:HBox width="100%">
<mx:TextInput id="ageDt" width="100%" />
<mx:Button id="submitButton" label="Search" click="getData()" />
</mx:HBox>
<mx:DataGrid dataProvider="(service.getPdRec_lastResult
" rowHeight="
58" width="100%" height="300">
<mx:columns>
<mx:DataGridColumn dataField="creditManager" headerText="Credit Manager" width="40" />
<mx:DataGridColumn dataField="pdTarget" headerText="PD Target" width="40" />
<mx:DataGridColumn dataField="totalPd" headerText="Total PD" width="40" />
<mx:DataGridColumn dataField="pdPct" headerText="PD Percent" width="50" />
</mx:columns>
</mx:DataGrid>
</mx:VBox>
</mx:Application>
My web service returns the following when invoked:
<env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns0="http://erec_db/PD_Pct_Web_Service.wsdl/types/">
<env:Body>
<ns0:getPdRecResponseElement>
<ns0:result>
<ns0:creditManager>Cobb</ns0:creditManager>
<ns0:pdTarget>10</ns0:pdTarget>
<ns0:totalPd>147.65</ns0:totalPd>
<ns0:pdPct>26.77</ns0:pdPct>
</ns0:result>
<ns0:result>
<ns0:creditManager>Collova</ns0:creditManager>
<ns0:pdTarget>10</ns0:pdTarget>
<ns0:totalPd>27.71</ns0:totalPd>
<ns0:pdPct>21.67</ns0:pdPct>
</ns0:result>
<ns0:result>
<ns0:creditManager>Lee</ns0:creditManager>
<ns0:pdTarget>10</ns0:pdTarget>
<ns0:totalPd>33.61</ns0:totalPd>
<ns0:pdPct>72.38</ns0:pdPct>
</ns0:result>
<ns0:result>
<ns0:creditManager>Maynard</ns0:creditManager>
<ns0:pdTarget>10</ns0:pdTarget>
<ns0:totalPd>74.19</ns0:totalPd>
<ns0:pdPct>33.69</ns0:pdPct>
</ns0:result>
<ns0:result>
<ns0:creditManager>Ong</ns0:creditManager>
<ns0:pdTarget>10</ns0:pdTarget>
<ns0:totalPd>13.26</ns0:totalPd>
<ns0:pdPct>46.06</ns0:pdPct>
</ns0:result>
</ns0:getPdRecResponseElement>
</env:Body>
</env:Envelope>Use data binding. <mx:DataGrid dataProvider="{service.getPdRec_lastResult}"
-Radhakrishna -
OK I think that is resolved but I cannot pull the Data.
The Grid does not populate with data......Just keeps trying to pull it.
THE CFC FUNCTION:
<cffunction name="comments" access="remote" returntype="struct">
<cfargument name="page" required="true">
<cfargument name="pageSize" required="true">
<cfargument name="gridsortcolumn" required="true">
<cfargument name="gridsortdirection" required="true">
<cfquery name="selectAll" datasource="#dsn#" dbtype="#i#">
SELECT autoid, CONVERT(VARCHAR(10), sDate, 101) as sDATE, DAGRSN, branch,
DODAAC, clin, hours
FROM reporting.DAGRSCRAPS
</cfquery>
<cfreturn queryconvertforgrid(selectAll,page,pagesize)/>
</cffunction>
THE DATA GRID ITSELF:
<cfform name="myform" id="myformid">
<cfgrid
name = "myGrid"
format="html"
bindOnLoad="yes"
bind="cfc:pdgps.admin.backoffice.components.Data.comments({cfgridpage },{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"
pageSize="10"
preservePageOnSort="true"
selectMode="single"
selectOnLoad="no"
font="Verdana"
fontsize="11"
label="True"
stripeRows="true"
stripeRowColor="##D9CCFF"
selectColor="##994FE6">
<cfgridcolumn name="autoid" display="no" >
<cfgridcolumn name="branch" header="SERVICE" type="string_noCase" >
<cfgridcolumn name="DODAAC" header="DODAAC" type="string_noCase" >
<cfgridcolumn name="DAGRSN" italic="yes" display="yes" header="DAGRSN">
<cfgridcolumn name="sDATE" display="yes" header="Date" mask="EEE DD-MMM-YY H:NN A">
<cfgridcolumn name="clin" width="35" display="yes" >
</cfgrid>
</cfform><cfargument name="gridsortdirection" required="true">
<cfset var selectAll = "">
<!--- this 'var' scopes the selectAll variable to be local to this function --->
<cfquery name="selectAll" datasource="#dsn#" dbtype="#i#">
Also, where are the 'dsn' and 'i' variables defined. They do not appear to be part of this function. Using a CFC function remotely has a great effect on what variables scopes may or may not be accessed. -
Data Grid in a List Component???
Hi there!
I have a populated List Component set to Multiple Selection.
This list contains titles of a magazine issues.
I wish to allow the user to select one or more items in the
list and enter the quantity of the selected issue(s) he/she wants
to receive.
Is it possible to achieve this with a Data GRid integrated in
the List Component or which simplier solution must I contemplate?
I thank you in advance for indicating the best way to
explore.
Best regards,
GerryHi GWD and thanks for responding.
I fully understood your explanations and the example you
provided.
I'll give it a try, for sure.
But I want to know:
- How do I populate a DataGrid Component? Like a List
Component? (you said they are quite the same, I assume methods to
apply are identical...)
-In the same way, I can pull out the data from a DataGrid as
I do for the List, right?
Thanks again!
Best,
gerry -
Need help with data grid...
I have setup a profile card which displays information about individuals by pulling data from an XML database.
I have multiple text fields and couple movie clips that display images but i need a datagrid to display stats for each individual.
The stat information is set as attributes on a array of XML nodes each node is a year.
Example XML
<hockey>
<profile>
<name>Wayne Gretzky</name>
<image>pic1</image>
<dob>Jan 26, 1961</dob>
<position>Centre</position>
<height>6'0"</height>
<weight>185lbs</weight>
<history>"important information"</history>
<medal_record>
<medal standing ="Silver" Event =" 1981 Canada Cup" sport="Ice Hockey"/>
<medal standing ="Gold" Event =" 1984 Canada Cup" sport="Ice Hockey"/>
<medal standing ="Gold" Event =" 1987 Canada Cup" sport="Ice Hockey"/>
<medal standing ="Gold" Event =" 1991 Canada Cup" sport="Ice Hockey"/>
<medal standing ="Silver" Event =" 1996 World Cup of Hockey" sport="Ice Hockey"/>
</medal_record>
</profile>
<profile>
<name>Wayne Gretzky2</name>
<image>pic2</image>
<dob>Jan 26, 1962</dob>
<position>Right Wing</position>
<height>6'1"</height>
<weight>205lbs</weight>
<history>"important information"</history>
<medal_record>
<medal standing ="Gold" Event =" 1981 Canada Cup" sport="Ice Hockey"/>
<medal standing ="Bronze" Event =" 1984 Canada Cup" sport="Ice Hockey"/>
<medal standing ="Silver" Event =" 1987 Canada Cup" sport="Ice Hockey"/>
<medal standing ="Silver" Event =" 1991 Canada Cup" sport="Ice Hockey"/>
<medal standing ="Gold" Event =" 1996 World Cup of Hockey" sport="Ice Hockey"/>
</medal_record>
</profile>
</hockey>
The red information is what i need to get displayed by the Data Grid for each profile.
Standing
Event
Sport
Gold
1981 Canada Cup
Ice Hockey
Bronze
1984 Canada Cup
Ice Hockey
The swf has buttons to cycle through the profiles which loads the new information from the XML.
If you have a good understanding of how the dataGRIDs work please let me know if you can help as this is the last problem holding me from finishing this.
Thanks in advance.Update... I got the data pulling in but it doesnt change as the profile changes with the rest of the data.
-
Data Grid wilth Multiple ArrayCollections
I am using an array collection to store a month name and a
list of the monthly sales for a list of people, which are in their
own array collection. Adding an item to the array collection looks
something like this:
myCollection.add({month:"January",salesArray:someArrayCollection});
Where someArrayCollection has the January sales for a number
of people. The point of setting it up this way is that the size of
the embedded array collection (the number of people to display)
changes depending on what geography the user selected. Simply
binding this to a data grid leaves me with two columns, one listing
the months, and the other listing all the people's sales for that
month separated by commas within the grid tile. How can I break
these out into separate columns?
I know that you can list out the DataGridColumns within a
DataGrid and specify which field the column refers to. I'm trying
to find a way to set the dataField attribute to a particular item
within the embedded array. I would think that the code would be:
dataField="salesArray.getItemAt(0)"
to return the first person's sales in it's own column, but
this doesn't work. Any advice would be greatly appreciated.Hi GWD and thanks for responding.
I fully understood your explanations and the example you
provided.
I'll give it a try, for sure.
But I want to know:
- How do I populate a DataGrid Component? Like a List
Component? (you said they are quite the same, I assume methods to
apply are identical...)
-In the same way, I can pull out the data from a DataGrid as
I do for the List, right?
Thanks again!
Best,
gerry -
08/29/2008 08:58:48 AM
Reply | Quote | Top | Bottom | Edit
hi all,
i have two classes.
class User
public String name;
public int age;
public Address address;
class Address
public String city;
I'm passing a List<Users> to the data provider of a
data grid . I can display the values of properties of Users i.e,
name and age.. My issue is how do i display the value of city which
is a propertyt of Address class in the datagrid column..
thanx in advance
Mark this message as the answer.
Print this message
Report this to a ModeratorHi,
Try labelFunction property of the DataGridColumn.
labelFunction allow you to specify a function name, which will be
invoked when that data is rendered. You will get the Object (User
id your case) corresponding the row being rendered will be passed
as argument to the function. You can use the object and return the
value you want to be displayed.
Please find more details on labelFunction at the URL below
http://livedocs.adobe.com/flex/3/langref/mx/controls/dataGridClasses/DataGridColumn.html#l abelFunction
You can also try custom item renderer.
Hope this helps. -
Can not open data grids or run reports in HFM
Hi
We created an application and have been working in it for weeks without any issues. Just recently once we open the app, we can longer open data grids or run financial grids. The system just hangs and we do not get an error message. Has anyone experienced this? We are wondering if it is a space issue on one of the data base tables.Hello,
I would start by checking with your DBA to see if you have any issues with table space. Next, i would log onto the HFM servers and see if you have any errors being recorded in the Application Event View. If you do have errors in your Event Viewer, can you please post them?
Thanks
Edited by: tonyfeole on Oct 13, 2009 1:33 PM -
Hi there,
I am a beginner in Visual Basic Express 2010. I have a Point of Sale program that uses DataGridView to display records from an external microsoft access
database using the fillby query.
It works, but it repopulates the same row each time, but i want to be able to display multiple records at the same time, a new row should be filled for
each click of the fillby button.
also I want to be able to delete any records if the customer suddenly decides to not buy an item after it has already been entered.
so actually 2 questions here:
1. how to populate a new row for each click of the fillby button
2. how to delete records from data grid view after an item has been entered
Thanks
VishwasHello,
The FillBy method loads data according to what the results are from the SELECT statement, so if there is one row then you get one row in the DataGridView, have two rows then two rows show up.
Some examples
Form load populates our dataset with all data as it was defined with a plain SELECT statement. Button1 loads via a query I created after the fact to filter on a column, the next button adds a new row to the existing data. When adding a new row it is appended
to the current data displayed and the primary key is a negative value but the new key is shown after pressing the save button on the BindingNavigator or there are other ways to get the new key by manually adding the row to the backend table bypassing the Adapter.
The following article with code shows this but does not address adapters.
Conceptually speaking the code in the second code block shows how to get the new key
Public Class Form1
Private Sub StudentsBindingNavigatorSaveItem_Click(
sender As Object, e As EventArgs) Handles StudentsBindingNavigatorSaveItem.Click
Me.Validate()
Me.StudentsBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.MyDataSet)
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'MyDataSet.Students' table. You can move, or remove it, as needed.
Me.StudentsTableAdapter.Fill(Me.MyDataSet.Students)
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Me.StudentsTableAdapter.FillBy(Me.MyDataSet.Students, ComboBox1.Text)
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Me.MyDataSet.Students.AddStudentsRow("Jane", "Adams", "Female")
End Sub
End Class
Get new key taken from
this article.
Public Function AddNewRow(ByVal sender As Customer, ByRef Identfier As Integer) As Boolean
Dim Success As Boolean = True
Try
Using cn As New OleDb.OleDbConnection With {.ConnectionString = Builder.ConnectionString}
Using cmd As New OleDb.OleDbCommand With {.Connection = cn}
cmd.CommandText = InsertStatement
cmd.Parameters.AddWithValue("@CompanyName", sender.CompanyName)
cmd.Parameters.AddWithValue("@ContactName", sender.ContactName)
cmd.Parameters.AddWithValue("@ContactTitle", sender.ContactTitle)
cn.Open()
cmd.ExecuteNonQuery()
cmd.CommandText = "Select @@Identity"
Identfier = CInt(cmd.ExecuteScalar)
End Using
End Using
Catch ex As Exception
Success = False
End Try
Return Success
End Function
In closing I have not given you a solution but hopefully given you some stuff/logic to assist with this issue, if not perhaps I missed what you want conceptually speaking.
Additional resources
http://msdn.microsoft.com/en-us/library/fxsa23t6.aspx
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
Coded UI: How to verify watermark displayed in the fields and Data grid?
Hi,
I've an requirement to verify watermark in the fields say username field displays "Username" water mark when no data is available in the field and water mark in data grid saying "No data available".
Please observe the water mark displayed in screenshot below:
So how to verify watermark?
Thanks & Regards,
Sunil
Best Regards, Sunil Email: [email protected]Hello,
Depending on what form technology you are using, you can try posting to one of the following forums:
Windows Forms General
Windows Presentation Foundation (WPF)
ASP.Net forums
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
Want Access Data Grid control in SharePoint 2013?
Hello everyone!
Recently we noticed something funny in SharePoint 2013. While quite many people were hoping to have the datasheet view like those in SP2007 and 2010, Microsoft has chosen a different interface to display datasheet view.
Now, if you try to create a sub site under a publishing site, and use the
Publishing Site template then try to create a datasheet view in the sub site, SharePoint will try to use the Access data grid control to display the view. In some situations the view will display and other situations it will not, and will show this
error:
The list is displayed in Standard view. It cannot be displayed in Datasheet view for one or more of the following reasons: A datasheet component compatible with Microsoft SharePoint Foundation is not installed, your browser does not support ActiveX controls,
a component is not properly configured for 32-bit or 64-bit support, or support for ActiveX controls is disabled.
If you create a sub site using Publishing Site with Workflow instead, then the datasheet view will be created properly using SP2013 interface.
Using PowerShell, we can see that both Publishing Portal and
Publishing Site With Workflow are using the BLANKINTERNET 53 template. The
Publishing Site on the other hand is using the CMSPUBLISHING 39 template.
Want to try it out and let me know if that happens to your SharePoint too?Hi Conway,
I tested the issue in my environment per your description and it returned the results as below:
I created a subsite using Publishing site under a team site in SharePoint server 2013, the datasheet view in a list displayed as pic1
I reproduced the issue in SharePoint server 2010, the datasheet view in a list displayed as pic2
It turns out by design the datasheet view in the subsite based on Publishing site template displays as your situation. Here is an article which explains this:
http://www.sharepointblues.com/2010/03/31/data-sheet-view-not-working/
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
Hi All,
Account calculations are not displaying on the data grid. But the values are being picked up with a smart view report.
I tried running a force calculate and a consolidate all, but that did not work.
Please suggest in this regards.
Thanks in advance....I tried to use your algorithm to modify my code but i am not able to do that. For this example i am not using any httpservice i am using data services. I created a PHP file i just need to import it into data services planel and drag that services onto data grid it will automatically bring all the data into that data grid. Can you tell me what i need to modify to achive my goal. am using following code
protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
getHorizontalCommentResult.token = horizontalCommentsService.getHorizontalComment();
<mx:DataGrid x="159" y="123" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getHorizontalCommentResult.lastResult}" height="223" width="245">
<mx:columns>
<mx:DataGridColumn headerText="Comments" dataField="Comments"/>
</mx:columns>
PP file
<?php
class HorizontalCommentsService{
public function getHorizontalComment() {
$connection = mysqli_connect("localhost", "root", "root", "my_db", 8889) or die(mysqli_connect_error());
$sql = "SELECT * FROM photo_comments ORDER BY Image_ID DESC";
$result = mysqli_query($connection, $sql) or die('Query Failed: ' . mysql_error($connection));
$rows = array();
while($row = mysqli_fetch_object($result)) {
$rows[ ] = $row;
return $rows;
?> -
BUG in data grid and run script (V1 1467)
Hi,
I found a weird bug in data grid when displaying data defined as NUMBER(10,0).
We have a table with a column defined as NUMBER(10,0). Whenever this column contains data >5000000000 the data in the row shows up as null (empty cell) in the data grid.
I played around a bit and found that running a scrip like select * from testtab where a > 5000000000; with F5 it stops at the first number >5000000000. Running the script with F9 shows all rows correct.
I'm running on WIN2000 using SQL Developer V1 (Build 1467).
The error was not present in Build 1422.I tried the SQL you supplied (by the way, the table name helps in the INSERT statement) and then went to the DATA tab to view the data.
Interesting results.
Even though all of the insert statements executed successfully, only 2 of the rows had any data displaying in columns A and C. All rows had data in column B.
Now for the real fun: by selecting one of the empty cells the "missing" data would appear. Try a commit (yeah, I know nothing has been updated, but SQL Developer doesn't know this) and check out the UPDATE statements that are generated in the log. The cells I selected are being updated with the "missing" data. Refresh the display and the data goes into hiding again.
I don't even want to get into the dangers of a tool updating data when all you've done is to get focus on a field. I've already seen it wipe out the time portion of date/time stamps simply because the default setting for the date/time format does not include the time.
Good start on a tool guys, but it's not quite ready for Prime Time.
BTW...I'm using Oracle 9.i running SQL Developer on Windows 2000. -
after I load a object into data grid created from a web
service it will always seem to create a new blank row. When I get a
error after clicking on it, it always says "-1" for the rows count.
when I shrink the size of the datagrid it elminates some of the
extra row, but still there is a bit of it showing. how do I resize
the datagrid so it doesn't spit out a extra row, or a part of one.
http://www.ctrlzsc.com/other/pic.png
this is a pic showing the extra row, just look where my badly drawn
arrow is pointing to.hi, xyco45
you can set the dataGrid's height and the rowHeight. In my
experience, for example, first, you set the headerHeight="25" and
rowHeight="22", the height will be setted
(headerHeight+rowHeight*(rowNumbers)+1) or
(headerHeight+rowHeight*(rowNumbers)+2), I thought this question
will be solved. -
Is there is way to hide a column in data grid column?
Is it possiblo to reorder the column like in excel . I know its not possible bcoz it <table> tag ...Select the column within the table and in the property window uncheck the visible. You can also include visible="false" in the jsp page within the column tag.
Maybe you are looking for
-
Error while inserting data in SQL Server.
Hi', I am using SOA 11.1.1.5 I am inserting data using DB adapter in MS SQL Server. Some times I get below error. Error Message: {http://schemas.oracle.com/bpel/extension}bindingFault Fault ID rrr/xxx!1.1*soa_313bd437-7bb9-41c6-a719-d1775b9afc4b/
-
Unable to open files from web on Sharepoint 2013
I have a user who is having an issue opening any files on sharepoint site. I have checked technet for possible solutions and this is what has been done so far: Environment: VDI using Xendesktop with Windows 7 Enterprise, Office 2013. 1. Ran repair o
-
Creating Folder for Existing Folders
Is it possible to create a new folder for AR for iOS so that you can move already existing folders into it? My folders have become a bit cluttered as I had to create more for specific files, but they should all be filed under another bigger folder. T
-
I have a MacbookPro running Yosemite 10.10 and want to install Photoshop CS2.
It will not install. It says an error has occurred, period. I have the disk and serial number. Is there anything I can do?
-
Hi i am working with bapi BAPI_ACTIVITYCRM_CREATEMULTI
hi, i am working with BAPI_ACTIVITYCRM_CREATEMULTI this bapi create a activity and all the things are ok, but my problem is by using this bapi how can i handle attachment ple help me on this issue. Regards, Tanveer