This Question is an Extension of my previous question, located here. When I use the Filter code mention in my Question. The Gallery is displaying System Names. However, when I try to wrap my Filter code with Groypby Function as mention by #carlosfigueira, I am NOT getting any Error message. However, I cannot see Gallery Tiles. Gallery is displaying lines as shown in below image. The code I am using under Items Property of my Gallery is below.
Code for GroupBy:
GroupBy(
Filter(Table1, StartsWith('Sys Name',"Sys")),
"Sys_x0020_Name",
"BySys")
Gallery Screen:
GroupBy function returns set of records whereas the text labels expect a Text input due to which you don't see the values in the gallery control.
You can add another gallery (Gallery2) inside the parent gallery's item and bind it to ThisItem.BySys as the data source & set Text property inside Gallery2 as ThisItem.ColumnName1. ColumnName1 would be the column from Table1 collection.
Related
I am working on a Sold Items table which has ProductIds, which gets the names from "Products" using the ProductIds.
On my powerapp gallery;
I use this statement to properly display data;
LookUp('[Products]',Item_Id = ThisItem.Item_Id,Retail_Name)
which is displayed on Title1.Text
on my gallery form, I use the filter
Filter('[Sold_Items]',Week_Id=Value(TextInputWeekId.Text))
I want to also add the search option, so that I can search;
inputSearchBox.Text = Title1.Text or use the LookUp function over ( Retail_Name )
No Matter what I have tried, I couldn't make this work.
From what I understand, you have 2 tables, "Products" and "Sold_Items".
Your gallery receives the items from "Sold_Items", and you show the item name using:
LookUp('[Products]',Item_Id = ThisItem.Item_Id,Retail_Name) in the text property of a label that shows the product name.
You filter the gallery to show only the "Sold_Items" of the current week with the following code:
Filter('[Sold_Items]',Week_Id=Value(TextInputWeekId.Text)) in the items property of the gallery.
Now you want to filter the items further more using a text input. Correct me if I'm wrong.
To accomplish this you will need to modify the Items property of your gallery. Your text-input label from where you want to filter the gallery has the name "inputSearchBox".
So, the Items property of your gallery should be:
Filter('[Sold_Items]',Week_Id=Value(TextInputWeekId.Text) && Title1.Text = inputSearchBox.Text)
Let me know if this is what you wanted and if it solved your problem.
Best Regards
I am working on a SSRS report for SQL 2005 in Visual Studio 2005 and I need to include information in the page footers from a dataset. I followed the information in the following Microsoft article http://technet.microsoft.com/en-us/library/ms159677(v=sql.90).aspx
I setup several hidden textboxes in the body of the report to hold the aggregated dataset information I need. I then reference those textboxes in the page footer of my report.
The page footer on the first page is correct but on the rest of the report pages the text boxes are not getting the information. In my situation, I am getting the user id and date from a dataset and trying to display it on each report page in the footer.
More details:
In the first hidden textbox (lblDatetime) in the body I get the value from the dataset like the following:
=First(Fields!Date.Value, "headerData1")
In the second hidden textbox (lblUserID) in the body I get the value from the dataset like the following:
=First(Fields!UserID.Value, "headerData1")
I then reference the first textbox in the footer using the following:
=First(ReportItems!lblUserID.Value)
I then reference the second textbox in the footer using the following:
=FormatDateTime(First(ReportItems!lblDateTime.Value),DateFormat.ShortDate)
=FormatDateTime(First(ReportItems!lblDateTime.Value),DateFormat.LongTime)
I tried aggregating the dataset directly in the footer but this is not possible and causes errors.
I came up with a different solution to the one suggested in the article.
Instead of adding hidden textboxes to my body, I created two global hidden parameters. I set the default value using the "From Query" for those parameters to the datasets I needed. I then referenced those two new global parameters instead of the textboxes.
This fixed my issue.
I am currently creating a multiple items form to show all the data I have, the interface will be similar to the one I have attached
This is in the design view. When I want to update the image for the selected record it updates the image for all records. Any suggestions on how I can update the image for each record individually? Or it is not possible to do it for multiple item form?
any other good suggestions?
For Ms Access 2007 and upwards:
The image control can be bound, you should set the ControlSource property of the image control to the field in the record source that contains the image path for each record.
For earlier versions of Ms Access (only works for single record forms):
You must set the image for each record in the Form_Current event.
Example function to be called (assuming the image control is called imgPhoto):
Public Sub SetPhoto(strPhotoPath As String)
Screen.ActiveForm.imgPhoto.Picture = strPhotoPath
End Sub
I'm begginer in the Orchard CMS.
I would like to create Content Type composed from different parts and fields which I know before. I want this content type to be enumerable ie I use content part List, I want to list it using telerik components.
For example my content type is Product and I specify its fields: Price, SKU apart from default: user(who created it) and creation time fields. Moreover the product contains also image gallery, ie image gallery content part.. I want the list of products to be shown using Telerik component Grid, including creation time and user name.
Is it better to create the whole module specifying all its fields(price,SKU) and its templates or is there any way to just take what has been already created in orchard as a content type and display it different way(using telerik)..
thanks for any advice ;)
Tomas
It appears this topic was moved and answered here:
http://orchard.codeplex.com/discussions/371276
I am working on a product page and need to create two separate galleries - one main gallery and additional one. Currently I output images with empty label on main gallery and images with specific prefix on additional one.
Is there a way to query only images labeled by specified label? I found only getMediaGalleryImages method which doesn't do anything specific.
Or maybe there is just the other way to work with the gallery?
By default there is no way to query images based on a labels or other conditions except for the main and thumbnail options. We use the following setup:
Get a list of all images for the product
Itinerate through each finding out all the details and sorting inside two arrays.
Going through each array for each gallery and outputting the images inside the right tags.
Aother way of doing this would be to extend the product model and adding another gallery field. But that's IMO much too complex for something this simple.