Controling For Each
Hy people! i have one doubt! i have a xml that have 10 purchase orders. i use this command to get duplicated purchase orders <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,var,1)?> . In layout i have 20 purchase orders. the first 10 are the original and the last 10 are duplicated! my doubt are: i want to put the "original" in the first 10 purchase orders and "duplicate" in the last 10 purchase orders . i try this with position() command but i cant control the foreach. when i have only one purchase orders it works fine . the problem is when my xml have more rhan 1.
someone have any suggestion? any help would be appreciated.
Hi Stuart
I read again your question.
Do you mean that the longer your program is running, the more time it takes to stop the execution once you hit a "stop button" that effects your while continuation ?
If you really have such a central "button" it might be a problem with memory. D you have a way to monitor the memory usage, like with the Windows task manager ?
If you have a problem with memory, check what is going into your loops. Labview has sometimes not very obvious ways to create local variables or references, that are not automatically destroyed.
Again a sample vi would help. It's just that I have only LV 6.0.
Gabi
7.1 -- 2013
CLA
Similar Messages
-
Adding a check box control for each row of data in a DataModel
Hi all,
I need to add a checkbox control for each row of data on a DataModel object.
I have a "commandButton" at the bottom of DataModel, and whenever someone checks some of the rows on that list of rows,
I need to get the selected dataModel(fragment of the list) in my backing bean.
How do I achieve this functionality in JSF?
Thanks,
Meghasyam.Hi all,
I need to add a checkbox control for each row of data
on a DataModel object.
I have a "commandButton" at the bottom of DataModel,
and whenever someone checks some of the rows on that
list of rows,
I need to get the selected dataModel(fragment of the
list) in my backing bean.
How do I achieve this functionality in JSF?
Thanks,
Meghasyam.You'll want to have a wrapper class as suggested above, which has a "selected" boolean in it. Then use the "binding" attribute of the h:selectBooleanCheckbox component to bind the checkbox to that property... Make the property public and specify the properties exact name in the binding... bindings do not append "get" to the EL.
Here is an example of what your table might look like... This code would display the list of names with a checkbox to the left of each name... When the check box is selected, the "selected" property of that wrapper class is set to true or false as needed. Then when the form is submitted, and you are inside your actionListener or action method call, you can look through your collection of wrapper classes asking each one if it was selected or not... Then do whatever you want with them... In this example, replace "myBackingBean" with the name of your backing bean, and "names" with the name of the method in your backing bean which returns the collection of wrapper classes... create a flag "public boolean selected" or similar in your wrapper class..
<h:dataTable id="namestable"
value="#{myBackingBean.names}"
var="aName">
<h:column>
<h:selectBooleanCheckbox binding="#{aName.selected}"/>
<h:outputText value="#{aName.nameText}"/>
</h:column>
</h:dataTable>
Let me know if that isn't clear enough and I'll see if I can find a better way to explain it...
-Garrett -
Are there any apps for having seperate volume controls for each app if multiple apps are playing at the same time?
I don't think you can do that the volume is universal, but maybe turn down the volumes in the app settings?
-
Main vi with control for each vi
Hello,
I have a set of VIs that I am trying to be able to call from a main vi. The main vi front panel is just a set of boolean controls. The block diagram for the main vi is a single while loop that contains all the controls which are each wired to a case structure that calls each vi when set to true. There is a different VI being called for each control and case structure. The loop has a condition of continue while true which is wired to constant true which is outside the loop of course. I have also tried the same with a timed loop, but either way it is very basic indeed.
Now when I run it, I can press one control and it will then start up the vi front panel that I selected. That's fine, but then after that, when I press another control on the main VI, nothing happens. Another thing I noticed is that if I turn ON all the controls and then run it, they will all work, meaning all VI front panels selected will appear.
The issue is that when one or more controls are set to true and the respective VIs are called, it seems that the loop that controls all the VIs is no longer running. I would like to be able to select one VI, and then continue to select another VI and so forth.
Any help would be greatly appreciated.
Thank youI would still consider dynamic launching of the subvi instead of making many loops, one for each subvi. The issue you will find (although the many loops is conceptually easier) will be in scalability, What happens if you want to launch 20 loops, are you going to drop 20 loops on your Block diagram, also what happens if you want to take advantage of the event structure (you really want to do this if you plan on a GUI of any complexity) you can put the event structure in each loop which will cause you to have to poll each loop and then you will need to do tempo control in each loop. From a readability stand point a single loop with an event case that launches the subvi is veary easy to follow as well. This is just my opinion though.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA -
Which Table would be the best for mixing tracks together? I've been off the game for a bit and have forgotten, but last time i made a good mix tape from the New project table....
Where do i go to match up the BPM for each track i lay to match up?
How do i get the Volume line to pop up on each track so i can fade accordingly?
Thank you to those who can help outThe correct way to target instances m1 thru m10 using bracket notation would be...
this["m"+i]
or even more correctly...
this["m"+String(i)] -
Suggestion: add volume control for each call parti...
I have a idea of improving skype. I was talking to some of my friends and one has a really bad mic that is really loud and i want to lower the sound on him but if i do that i will not be able to hear the others with good quality. So if there was a feture witch allowed me to lower spesific friends in my call it would really help.
Subject/Title text added to reflect post content.
Solved!
Go to Solution.A nice feature. In the mean time, ask your friend to control panel>sound>recording>mic (dclick)>custom>turn of 20% boost or same place exept for lvels>turn down from 100%.
-
Create multiple dynamic control for each splistitem
Hi ,
I using SharePoint 2010 , in that am creating a custom visual webpart, to show in my home page.
In that i need to show my custom list's listitems such as 'ID' and 'Title' as dynamically label controls in my page.
When ever a new item added in that list , it will dynamically created labels and displyed in my webpart as last item.
can any one help me ?
regards,
RKHello,
You can't directly get newly created item in webpart but you can use CAML query to get item from list and show in webpart. Use OrderBy in query to get item in ascending or descending order. Here is ref code:
using(SPSite Site = new SPSite(SPContext.Current.Site.Url))
Using(SPWeb Web = Site.OpenWeb())
SPList list = web.Lists["ListName"];
SPQuery query=new SPQuery ();
query.Query = "<OrderBy><FieldRef Name='ID' Ascending='FALSE'/></OrderBy>";
query.RowLimit = 1;//get only single item if you want all items then remove this line
SPListItemCollection items = list.GetItems(query);
if(items.Count > 0)
foreach(SPListItem item in items)
string ID = Convert.Tostring(item["ID"]);
string Title = Convert.Tostring(item["Title"]);
Later bind this code with gridview.
http://programmingshare-thienle.blogspot.sg/2012/02/using-spquery-to-return-sharepoint-list.html
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to use Generic Object Services(GOS) for each table control record.
Dear Expert,
I am using generic object services for document attachment but i am facing a problem while attaching document to a table control row. my requirement is to attach separate document for each and every row of table control but i am unable to attach document row wise of the table control.for each row GOS should display corresponding attached document not all the attached document.
Thanks in Advanced
Bhuwan Tiwari
Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PM
Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PMYou haven't explained what object and object key you're using, nor have you provided any indication of how you implemented the GOS attachment functionality. You need to provide more information to resolve an issue like this.
-
To clear all the checkboxes on a form, I can do either this:
Dim chk As CheckBox
For Each ctl As Control In Controls
If TypeOf ctl Is CheckBox Then
chk = CType(ctl, CheckBox)
chk.Checked = False
End If
Next ctl
Or this:
For Each chk As CheckBox In Controls.OfType(Of CheckBox)()
chk.Checked = False
Next chk
However, this will not clear checkboxes inside a container such as a groupbox.
How can I clear the checkboxes in all the containers at once?
SolitaireExcess code in examples which use recursive control searches.
Top and bottom examples may be best. 2nd and 3rd examples have code but I don't understand the ienumerable functions used really. They're over my head.
If all controls were added to a List(Of Control) in form load using a recursive search then just the list could be used to set controls of certain types I would guess. Which would keep from requiring a recursive search of controls each time. Unless
controls are dynamically added and removed while the app is running I suppose.
Option Strict On
Public Class Form1
Dim ObjColorDict As New Dictionary(Of String, Color)
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.CenterToScreen()
ObjColorDict.Add("Me", Me.BackColor)
Me.BackColor = Color.White
For Each Item As Control In Me.Controls
If Item.BackColor <> Nothing Then
ObjColorDict.Add(Item.Name, Item.BackColor)
Item.BackColor = Color.White
GetAllChildControls(Item)
End If
Next
For i = 0 To ObjColorDict.Count - 1
RichTextBox1.AppendText(ObjColorDict.Keys(i).ToString & " Color = .. " & ObjColorDict.Values(i).Name.ToString & vbCrLf)
Next
End Sub
Private Sub GetAllChildControls(ByVal ctrlParent As Control)
For Each Item As Control In ctrlParent.Controls
If Item.BackColor <> Nothing Then
ObjColorDict.Add(Item.Name, Item.BackColor)
Item.BackColor = Color.White
End If
' If the control has children,
' recursively call this sub
If Item.HasChildren Then
GetAllChildControls(Item)
End If
Next
End Sub
End Class
Option Strict On
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.CenterToScreen()
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
For Each RdoButton As RadioButton In Me.Controls.Cast(Of Control).SelectMany(Function(ctrl) GetAll(ctrl, GetType(RadioButton)).Concat(Me.Controls.Cast(Of Control)).Where(Function(c) c.[GetType]() = GetType(RadioButton)))
RdoButton.Checked = False
Next
End Sub
Public Function GetAll(control As Control, type As Type) As IEnumerable(Of Control)
Dim controls = control.Controls.Cast(Of Control)()
Return controls.SelectMany(Function(ctrl) GetAll(ctrl, type)).Concat(controls).Where(Function(c) c.[GetType]() = type)
End Function
Private Sub UncheckAllRadios(ContainerControl As Control)
For Each C As Control In ContainerControl.Controls
If C.Controls.Count > 0 Then
UncheckAllRadios(C)
End If
If TypeOf C Is RadioButton Then
DirectCast(C, RadioButton).Checked = False
End If
Next
End Sub
Private Sub ClearForm(ByVal ctrlParent As Control)
Dim ctrl As Control
For Each ctrl In ctrlParent.Controls
If TypeOf ctrl Is TextBox Then
ctrl.Text = ""
End If
' If the control has children,
' recursively call this function
If ctrl.HasChildren Then
ClearForm(ctrl)
End If
Next
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
For Each RdoButton As RadioButton In Me.Controls.Cast(Of Control).SelectMany(Function(ctrl) GetAll(ctrl, GetType(RadioButton)).Concat(Me.Controls.Cast(Of Control)).Where(Function(c) c.[GetType]() = GetType(RadioButton)))
RdoButton.Checked = False
Next
End Sub
End Class
Option Strict On
Public Class Form1
Dim TableLayoutPanelList As New List(Of TableLayoutPanel)
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.Location = New Point(CInt((Screen.PrimaryScreen.WorkingArea.Width / 2) - (Me.Width / 2)), CInt((Screen.PrimaryScreen.WorkingArea.Height / 2) - (Me.Height / 2)))
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
For Each Item As TableLayoutPanel In Me.Controls.Cast(Of Control).SelectMany(Function(ctrl) GetAll(ctrl, GetType(TableLayoutPanel)).Concat(Me.Controls.Cast(Of Control)).Where(Function(c) c.[GetType]() = GetType(TableLayoutPanel)))
Dim ContainsItem As Boolean = False
If TableLayoutPanelList.Count = 0 Then TableLayoutPanelList.Add(Item) : ContainsItem = True
If TableLayoutPanelList.Count > 0 Then
For i = 0 To TableLayoutPanelList.Count - 1
If TableLayoutPanelList(i) Is Item Then
ContainsItem = True
End If
Next
End If
If ContainsItem = False Then
TableLayoutPanelList.Add(Item)
Else
ContainsItem = False
End If
Next
End Sub
Public Function GetAll(control As Control, type As Type) As IEnumerable(Of Control)
Dim controls = control.Controls.Cast(Of Control)()
Return controls.SelectMany(Function(ctrl) GetAll(ctrl, type)).Concat(controls).Where(Function(c) c.[GetType]() = type)
End Function
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
RichTextBox1.Clear()
If TableLayoutPanelList.Count > 0 Then
For Each Item In TableLayoutPanelList
RichTextBox1.AppendText(Item.Name & vbCrLf & " " & Item.BackColor.Name.ToString & vbCrLf)
Next
End If
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
For Each Item As ColumnStyle In TableLayoutPanel1.ColumnStyles
RichTextBox1.AppendText(Item.SizeType.ToString & vbCrLf & " " & Item.Width.ToString & vbCrLf)
Next
End Sub
End Class
Option Strict On
Public Class Form1
Dim FormControlsList As New List(Of Control)
Dim TblLoutPanel As TableLayoutPanel
Dim TblLoutPanelsAdded As TableLayoutPanel
Dim ColorNames As New List(Of String)
Dim ColorName As System.Type = GetType(System.Drawing.Color)
Dim ColorPropInfo As System.Reflection.PropertyInfo() = ColorName.GetProperties()
Dim Rand As New Random
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.Location = New Point(CInt((Screen.PrimaryScreen.WorkingArea.Width / 2) - (Me.Width / 2)), CInt((Screen.PrimaryScreen.WorkingArea.Height / 2) - (Me.Height / 2)))
For Each CPI As System.Reflection.PropertyInfo In ColorPropInfo
If CPI.PropertyType.Name = "Color" And CPI.Name <> "Transparent" Then
ColorNames.Add(CPI.Name)
End If
Next
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Button1.Enabled = False
TblLoutPanel = New TableLayoutPanel
With TblLoutPanel
.Name = "TableLayoutPanel1"
.Size = New Size(400, 400)
.GrowStyle = TableLayoutPanelGrowStyle.FixedSize
.CellBorderStyle = TableLayoutPanelCellBorderStyle.InsetDouble
.Left = 20
.Top = Button1.Bottom + 20
.ColumnCount = 3
.RowCount = 3
.RowStyles.Clear()
.ColumnStyles.Clear()
For i = 0 To .ColumnCount - 1
.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33!))
Next
For i = 0 To .RowCount - 1
.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33!))
Next
.BackColor = Color.FromName(ColorNames(Rand.Next(0, ColorNames.Count)))
End With
Me.Controls.Add(TblLoutPanel)
For i = 2 To 10
TblLoutPanelsAdded = New TableLayoutPanel
TblLoutPanelsAdded.Name = "TableLayoutPanel" & i.ToString
With TblLoutPanelsAdded
.Size = New Size(100, 100)
.GrowStyle = TableLayoutPanelGrowStyle.FixedSize
.CellBorderStyle = TableLayoutPanelCellBorderStyle.OutsetDouble
.Anchor = AnchorStyles.None
.ColumnCount = 2
.RowCount = 2
.RowStyles.Clear()
.ColumnStyles.Clear()
For j = 0 To .ColumnCount - 1
.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33!))
Next
For j = 0 To .RowCount - 1
.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33!))
Next
.BackColor = Color.FromName(ColorNames(Rand.Next(0, ColorNames.Count)))
End With
For Each ctl As Control In Me.Controls.OfType(Of TableLayoutPanel)()
If ctl.Name = "TableLayoutPanel1" Then
ctl.Controls.Add(TblLoutPanelsAdded)
End If
Next
Next
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
FormControlsList.AddRange(RecursiveControlSearch(Me).ToArray)
End Sub
Private Function RecursiveControlSearch(ByRef Ctl As Control) As List(Of Control)
Dim Temp As New List(Of Control)
For Each Item As Control In Ctl.Controls
Temp.Add(Item)
GetAllChildControls(Item)
Next
Return Temp
End Function
Private Sub GetAllChildControls(ByVal ctrlParent As Control)
For Each Item As Control In ctrlParent.Controls
FormControlsList.Add(Item)
If Item.HasChildren Then
GetAllChildControls(Item)
End If
Next
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
RichTextBox1.Clear()
For Each Item In FormControlsList
RichTextBox1.AppendText(Item.Name & vbCrLf)
Next
End Sub
End Class
La vida loca -
Hi,
I was wondering if I could get some information and opinions about using a type defined array of clusters to hold configuration data. I am creating a program to test multiple DUTs and wanted to have a type defined control for each DUT containing the information needed to create the DAQmx tasks for all of the signals for that DUT. I am wanting to do this so that the data is hard-coded and not in a file that the user could mess up.
The type def controls are then put in a subVI that chooses the appropriate one based on the DUT Type enumeration wired to a case structure.
I am having problems with the type defined control. I am seeing issues when attempting to save a unique configuration to each array element in the array of clusters. Somehow it worked to begin with, but now clicking "Data Operations --> Make Current value default" on individual elements of the cluster or the entire cluster (array element) is not saving the data when I re-open the type def control. What am I doing wrong? Am I trying to do something with arrays of clusters that I should not be doing?
I have attached one of the type defined controls for reference. I tried changing it to Strict to see if that helped, but no luck.
To reproduce, change the resource string for array element 0 and make the new value the default value. Then close the type def, and re-open it. The old value is still present in that element. The VI is saved in LabVIEW 2012.
Solved!
Go to Solution.
Attachments:
CM_AnalogInputs.ctl 11 KBValues of a typedef are not proprigated to instances of the control. THey will pick it up if created AFTER the data values have been changed. THey will not get updated with future changes. You should either create a VI specifically for hardcoding your values or implement a file based initialization. The file based would be much better and more flexible. If you don't want users to modify the data simply encrypt it. There is a noce blowfish library you can download.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot -
Different values in a list box for each row of the table control...
Dear Experts,
Is it possible to populate different values for each row in a listbox inside a table control ?
Example,
Row 1 in the the table contains A, B & C
Row 2 in the same table contains C, D & E
If yes, How?
yes i am using
call function 'VRM_SET_VALUES'
exporting
id = i_name
values = i_list.
Thank you .
Message was edited by:
Kokwei Wong
Message was edited by:
Kokwei WongHi Wong,
this is code example for listbox
TYPE-POOLS vrm .
DATA: lt_vrm_values TYPE TABLE OF vrm_value.
DATA: wa_vrm_values TYPE vrm_value.
PARAMETER p_list AS LISTBOX VISIBLE LENGTH 10.
INITIALIZATION.
wa_vrm_values-key = 'Key1'.
wa_vrm_values-text = 'Value1'.
APPEND wa_vrm_values TO lt_vrm_values.
wa_vrm_values-key = 'Key2'.
wa_vrm_values-text = 'Value2'.
APPEND wa_vrm_values TO lt_vrm_values.
wa_vrm_values-key = 'Key3'.
wa_vrm_values-text = 'Value3'.
APPEND wa_vrm_values TO lt_vrm_values.
AT SELECTION-SCREEN OUTPUT.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_LIST'
values = lt_vrm_values
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
To fill it with data from DB, just do select in INITIALIZATION and put that values with same alghoritmus.
Manas M.
P.S.: This is very easy question, you should use search ... -
Tree control tip strip for each item
In tree control is possible set a Tip strip for each item (node) of tree?
In tree control tipStrip property seems relative to all tree.
Thanks all.The only thing I can think of is to use an event structure
use a mouse move event
Get Cords
Calculate what item the mouse is over
Use a Tips property node to write the correct string.
The hard part will be calculating what item the mouse is over, The Displayed Items property node should help.
I am actively working on a program that is centered around a tree control and might like to do the same.
If you need further help reply back
Omar -
How to append parameter with URL for each record in table control?
Hi,
I have one table control which contains 5 columns.
(tripno, startdate, destination, reason, activities)
In 5th column, i need to display URL for each record.
for ex:
www.abc.com/test?tripno=1
www.abc.com/test?tripno=2
www.abc.com/test?tripno=3
when user clicks a particular hyperlink, it navigates to another page/component thru URL with one key field(tripno) to retrieve related records in next page.
1) i am not able to assign tripno to each record. when i assign tripno, its taking the last value which i assigned. ie. tripno=3 only.
How to assign URL to Reference field of LINK_TO_URL element at run time?
OR
2) we can do like this.
Simply assign url to reach record without key field.
www.abc.com/test
www.abc.com/test
www.abc.com/test
when user clicks a particular link, we can assign corresponding key field to the URL.
Where should i write this event? Bcoz, LINK_TO_URL doesnot have event.
how to do?Hi MOg.
Not sure whether I understand you .. but in the 5th column you want to have the reference URL. Is this the activities columen from you example?
Nevertheless, you need a attribute (String) in your context node which contains the URL. Bind this to the reference filed of linktourl. If you can not extend the structure you can create a sub node (cardinality 1:1) which contains the refernce attribute.
Then loop over all elements and concatenate www.abc.com/test?tripno= with the tripno of the current element into the reference field.
Hope tis helps,
Sascha.
Bind the -
Need a multi-level control break report displaying a cross-tab for each ...
I need a multi-level control break report that displays a cross-tab report for each
detail and subtotal. The individual cross-tabs are no problem. There are two issues:
1) How to get many cross-tabs (thousands) to appear in one report.
2) How to provide cross-tabs in-line on the multi-level subtotal lines.
Here is a concrete example.
Suppose the data base contains this table:
road (
id_number number, -- this is an artificial PK
city varchar2,
county varchar2,
state varchar2,
length number,
owner varchar2, -- roads may be owned by cities, counties, states, and others
surface_type varchar2 -- the surface type may be gravel, asphalt, concrete, and others
The table is populated with several million records that include every
length of road in a US city.
It is OK to suppose that all the attributes in all the records are not null.
Without the PK, there would be millions of duplicates,
which should all contribute to the summed lengths.
The report I need is like a control break report with a detail line for each
city together with subtotals for each county and state and
a grand total for the US at the end.
However, each detail and total line needs to be a cross-tab report
summing the length over the city, county, state or US
(whichever is called for at that location)
for each combination of owner and surface_type.
so the report would have the following structure:
a city cross-tab for the first city in county 1/state 1
a city cross tab for the last city in county 1/state 1
a cross-tab for count 1
a city cross tab for the first city in county 2/state 1
a city cross tab for the last city in county 2/state 1
a cross tab for state 1
a cross-tab for the US
Any suggestions will be appreciated.
This problem comes up because my client's legacy system,
which is being replaced,
already has such a report (in COBOL).
Thanks!!!
Steve
PS, I know one ugly way to do it. Namely, make a variable for each
possible combination of owner and surface. Then code an ordinary control
break report. However, I am looking for something better.Hi Jenna_Fire,
According to your description, you have a matrix contains total for each group on each level. Now your requirement is, when you click on any number (data field or total), it will go to the detail report which returns all the detail information of the people
within the group scope. For example, if you click on the total of Active users in United States, it will return the detail information of Active users in New York and Texas. Right?
In this scenario, we should set the parameter (@Country, @State, @City) allow multiple values in both main and detail report. And in Default Value (@Country, @State, @City), query out all distinct values. In the textbox which contains
those total values, when set use these parameters to run the report, we only need to pass the parameters of parent groups. For example, if we click on the total of Active users in New York, we only need to pass Country, State, Status to detail report, and
in the detail report, the City parameter will use all distinct values (Default Values) because we don't pass the City parameter. We have tested this case with sample data in our local environment. Here are steps and screenshots for your reference:
1. Create parameter Country, State, City and Status in both main report and detail report. Set both Available Value and Default Value get values from query (Create a dataset for each parameter, use "select distinct [column] from [table]" as query). Set allow
multiple values for parameter Country, State and City in both reports.
2. In corresponding textbox, pass appropriate parameters in go to report Action.
4. Filter data in detail report (in where clause or using filters).
5. Save and preview. It looks like below:
Reference:
Using Parameters to Connect to Other Reports
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Use labview to read an Excel file to some control and add a checkbox for each row
As the subject say,I need to use labview to read an excel file,and show it in some control,such as mclb;then ,I should add an checkbox for each row,enable me to choose the row i want.What should I do ? Many Thanks.
Solved!
Go to Solution.Hi,
to answer your question:
- read an excel file
- show it in some control, such as a MCLB
- add an checkbox for each row
- choose the row you want
Hint to make it easier: I wouldn't use checkboxes, as the MCLB already allows to select rows by mouseclick…
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Maybe you are looking for
-
Problem in importing dump file in Oracle 10g
Hi all, I have a database dump with size of 1.8 GB. One of the tables in dump (TABLEPHOTO) is around 1.5 GB and has a BLOB type column. The import process stops (gets frozen) after importing 4294 rows of TABLEPHOTO. I do not receive any error and whe
-
R9 290X version of the DisplayPort
Hello, I would like to find out which version of the DisplayPort does R9 290X GAMING 4G have, because in the specification it only says that it has just a DisplayPort without any version.
-
Windows 7 system... everything was working correctly before the new persona. I have scanned and cleaned out my cache; no problems or viruses.
-
My G4 _*will play*_ commercially prepared Movie DVD's. But if I rip a movie (MacRipper) and save it on the hard drive, it won't play from the hard drive. A burned copy won't play either. I have no problem with any of this on My G5 IMac works and and
-
Different units in total sum row
Hello Bex Experts, I have orders with different Units in a report. currently the total sum row show * for Mix How can I get the total sum for ST and KG like Total Sum 366 KG Total Sum 342 ST BR Matthias