How to change the sqlite table structure dynamically in iPhone? - iphone

I'm developing an iPad application, in which i have to store some data in the database. So that, i prefer to use SQLite, here i have an doubt regarding the table structure. Let me explain, actually there is a view in which, the user can add the labor Qty, labor type and so on, at default i have displayed only one set of fields.
I have created table with the five fields ( Labor Qty, Labor Type.....) and it works fine. Now i need to setup a button "Add New" at the bottom, i apologize for the low resolution image, when the user click on the button, will generate another five fields below the previous. So how can i get the text fields values into the database table since i have created only for five fields. I tried and googled it but can't find the correct way. Any Help Appreciated. Thanks.

Well in that case what you can do is following.
put your content in UIScrollView
Have the textboxes in UIWebView and upon click on add new create new instance of that.
Put the X,Y co-ordinate in increasing manner let's say first time it is at 10,50 second time 40,50 third time 70,50 and so on,,
also increase X,Y co-ordinates of the button itself.
This way you can achieve above.
Using above logic you can get something like following.

Related

VBA to drill down specific data on Pivot Table

I am trying to get code so that by pressing a button, users can download certain source data from the Pivot Table. I have a PT set up that is controlled by slicers, so the PT size changes depending on what is selected (customer, date).
I have tried to record a macro, but when I double click the data I want to see, all the macro records is the cell reference, so this wont work if a different customer is selected.
I have attached some images which I hope helps demonstrate what I am trying to achieve.
Is there code that can do this? If so, can I get an example so that I can try to make it fit my working model?
Thank you
Raw data view
Pivot Table
Drill Down 1 e.g.
Drill down 2 e.g.

How can a Tableau Server user change the axis view on a granular table?

I am creating a capacity dashboard that has a granular aspect with multiple rows on the axis. The purpose is so that the user can see the specific view as the fields get more specific, such as Region to Market to Territory. My main problem is if there is a way for a user on Tableau Server to be able to edit the axis (maybe through a filter) so they could basically scale back the granularity a little bit. I know that in Tableau Desktop, you can just remove the dimensions, but I am hoping there is away to do that as a user in Server. Here are some pictures of my
workbook for examples:
You can see that when Territory is removed, it get less specific and shows all of Canada as a whole, grouped together. I am hoping there is a filter view or some way a user could change this dynamically. I have created a parameter with strings that matches the row dimensions that maybe when selected, will show up to that row, but I am not sure how to link that into the dashboard. Here is a picture of that:
Thank you for any help!
The best way to do this is to create a Parameter with your three Axis choices. It should look like this:
Next, create a calculated field that only references the Parameter like this:
Next, you will create three separate sheets. On each one, add the Axis Filter to the Filters Shelf. One each separate page, select one of the three values in your Parameter. (Tip - if the value doesn't show up you can either change the parameter or type it in manually under "Custom value list".)
What this does is create a filter whereby only ONE of the sheets will show up at any time. Meaning if you want to work on the Market sheet select the Market value in the Parameter.
Finally, to bring it all together, you will put these on a dashboard. Create a new Dashboard and add a Horizontal (or Vertical, it doesn't matter) Object (aka layout container) onto the dashboard. Put all three Sheets inside the layout container. You will see only one will be displayed but all three will have headers. On each sheet, click on the header and check "Hide Title" like this:
Finally, click on any downward triangle and show the parameter:
Now, by changing the parameter your user is selecting from three different sheets... effectively letting them change the Axis.
You can also view this documentation on the Tableau Help site.

Tableau add formula to dashboard action filter?

I've got a workbook I'm building using public data https://public.tableau.com/profile/alee4645#!/vizhome/JSAClaimantsWardtimeseries/Dashboard1
The basics are working as I want, you see the map, you click on one of the coloured areas and a time series chart appears below the map showing the change over time for that area.
I want to add a couple of comparisons to this data, for example I want the time series chart to show a line for the whole coloured area (Somerset) so people can see how one part of it compares to the overall average.
I have the figures as separate rows in the data but of course when the action filter is triggered they get filtered out along with everything else.
If I edit the action filter in the filter shelf for sheet 2, it has the condition tab and I was hoping I could add [ward code] = "E10000027" (the comparison data I want to use) to the formula box so it would also keep the relevant rows of data, but that stops the chart working altogether.
I could achieve it by getting people to choose an area from a parameter drop down but I'd rather let them click on the map so they don't need to know the name of the area they are interested in.
Can this be done?

Filemaker with Html table layout

I'm designing a form layout in FileMaker, and I'm spending a ton of time just trying to get all the controls in the right spot. Is there some way of doing a table layout? I just want to say "this control is in this cell" and let the table take care of all the formatting. Instead of having to set the position on each object just right.
What I Have
A form with a bunch of fields, organized in a table manner, i.e., rows and columns.
Example:
What I Want
To not have to specify the exact position of each individual control. Every time one element moves or needs to resize, it ends up screwing up the entire row, column, or "table", and I end up needing to move every field individually accordingly.
Is there a better way to organize fields in a form like this so that I don't have to manipulate the position and width of every "cell" in a row or column individually?
I think this is made easier with the use of the Inspector in layout mode. In particular, the controls in the "Arrange & Align" section on the "Position" tab of the inspector.
For example, you can quickly select all fields on the same "row" and align them to the top and make them the same height and width as needed.
If you are using FM 13, you may also want to make use of styles to make it easier to set the same formatting quickly across similar objects.
If you're a web developer you might want to experiment using the WebViewer. You can use Javascript for creating a nice table. Then you can interact with that table through calling a script in FileMaker.
Or just stick to a portal like Michael.Hor recommended.

iPhone UI Design approach - was using Excel Filtering

I'm new to iPhone development and don't know what the best iPhone UI approach for my problem is. That's where I was hoping you all could provide some input and guidance.
Here's the system & how it's currently used:
Right now, I have an Excel spreadsheet of data with four columns - Make, Model, Size, Value. There are about 1,000 rows of data. How the system is used in Excel is to use Filtering on the columns. First, you select the Make from the filtered column (there are about 8 unique Makes), then select a Model (each Make has between 1 and 20 unique Models), then select the Size (each Model has about 20 unique Sizes), then use the associated Value.
If I were to create an HTML page and jQuery with AJAX, I'd have three SELECT elements and one DIV (or some kind of label). When a Make is selected, populate the Models SELECT. Likewise, when a Model is selected, populate the Size SELECT. Finally, when a Size is selected, display the associated Value in the DIV. (Note, that when a Make is selected, I'd need to clear out the Value DIV and the Size SELECT in addition to the population of the Model SELECT. - appropriate action for selecting Size as well)
Now, given that, what do you recommend as a UI pattern for the iPhone?
You could do exactly that you describe for the HTML version, using a UIPickerView in each place where you would use and HTML SELECT. (The UIPickerView uses the "spinning wheel" metaphor to select from a list of values).
You could also use a single multi-component UIPickerView, where the first wheel is Make, the second Model, and the third Size. That works best if the names are short enough that you can fit all three (Make/Model/Size) in a single row on the screen.