I am actually after some ideas to how to address my problem below:
I have TCRTBGrid that users can move columns around and change the width. I want to save the setting in a database. I guess I can do this bit by using
Columns.LoadFromStream and Columns.SaveToStream
then store data in a blob field - Q: Can I store in a longtext field ?
but the biggest problem is that if new columns were added during design time after saving the column settings i want to append these new columns to the end.
Any suggestions ?
Thanks.
I did what Ravaut123 suggested and worked !!!!!!
Once retrieved the user setting , compared it with design grid manually for new and deleted fields 'cause that is only way I could think of.
Anyway thank you to both Ravaut123 and kobik.
Related
I want to post my blog in my store which is of Nopcommerce and the size of my blog contents is greater than 4000 characters.
Now I want to change that limit but it does not allow me change the datatype or the size of current datatype which is string.
I have tried to change it from BlogPostMap file, but it does not work for me.
Can anyone suggest me how to solve this problem?
Thanks in anticipation.
There is no limit to blog post sizes, nor in the database nor in the code. The database definition for body is NVARCHAR(MAX) and you don't need to modify the BlogPostMap file.
The problem is somewhere else. Are you using the nopCommerce interface or creating blogs using a custom process?
Maybe a problem with Management Studio? Check this:
SQL Server Text Datatype Maxlength = 65,535?
My problem seems simple. But have not been able to solve till now. Any help would be appreciated.
I have a listgrid showing certain records from a datasource. One of the fields is a many to one. When I try to edit any record, I get a dropdown with all the possible values that the record can have. All fine thus far. The issue is that all the dropdown values are displayed as simple text. I wish them to be displayed as shown in this link.
The requirement is to have "A SelectItem with icons" on the listgrid.
Regards
Use ListGridField.setEditorType() to customize the editor shown for a field. This API takes a FormItem, so pass a SelectItem configured similarly to the sample you linked to.
I'm sure this is an easy fix but I can't seem to find it. I just have a form, that will be a subform of another, that needs to display the results of a query.
The query is simple enough, just displays all fields of records that fall between specified dates. The query works great, but when I attach it to the form as its record source it doesn't display the data. I can see the correct amount of record selectors so I know its understanding the query but its as if all fields are hidden!
I have also tried building a query to the forms record source that was simply Select query.* From query. Oddly I have had this working before but I had to specify every field. What I mean is:
Select title From query
Select type From query
Select date From query
...
And so on for all the fields but this seems foolish, can anyone think of what I may be doing wrong?
Thanks in advance!
Edit, forgot to mention I also tried the foolish solution that I mentioned above and it didn't work so its definitely some issue that I'm not seeing, some property that's probably not appropriately set
#sshekhar well its not really code at the moment I'm using Access 2010. I have a form that needs to display a subform that executes this query of displaying records that have a data field that fall between dates specified by the user. The query works and displays the correct records, but the form that it is attached to only shows the record selectors and all the fields appear to be "hidden." I thought it may be one of the form's properties set incorrectly but I checked on the test form from another database that I used and each have what appears to be identical settings. So I'm at a loss!
So it turns out even though I using a query that holds all the fields it will not display the content unless you go to the Add Existing Fields and add all the the fields you want to see. This seems really silly especially when the results in the query but at least its working now.
I had this problem and discovered that having the property DataEntry set to YES will only display new records. From Microsoft Help:
You can use the DataEntry property to specify whether a bound form
opens to allow data entry only. The Data Entry property doesn't
determine whether records can be added; it only determines whether
existing records are displayed. Read/write Boolean.
I'm attempting to create a Visual FoxPro standalone application that will take two inputs from a user (old location and new location). It will have two tables with a 1:M relationship with primary and foreign keys matching the old location. The application should then replace all instances in both tables of the old location with the new location.
I've put the form together and got the fields in both tables displaying in grids, both textboxes present and an "Update Records" submit button.
My problem is that my textboxes are greyed out when I select "Form">"Run Form" and I can't input anything.
Does anyone have any ideas why the boxes would be greyed out? I checked in Properties > Data > Read only and they are both marked as .F.
Thanks so much for your help!
*edit: Figured it out- Had ControlSource on because I thought that would bind the input to a specific field in a specific table. Never mind! :)
Figured it out- Had ControlSource on because I thought that would bind the input to a specific field in a specific table. Never mind! :)
Kate
Just as an aside. the text boxes can be greyed out for a number of reasons, the most obvious ones are property set to readonly = .t. or enabled = .f., but also if the text box is bound to a datasource and that source is not available.
i.e the table EMPTY or is EOF() or BOF()
I have a page that shows 3 Objects (they are the same class).
I want to save them.
Unfortunaly only the latest one gets updated. All other seems to be invalid.
So my idea was to give them unique names: testObject_1[text1], testObject_2[text1].
This works as I can see it in the source code.
But how can I pass this name to form->save() in order to get the POST-reply filtered by this name (testObject_1) and then save it?
Or is there something more easier?
Thank you
Tobias Kaminsky
I solved it:
$temp->bind($request->getParameter("testObject_$i"), $request->getFiles("testObject_$i"));
(where $i is an Index stored in the database)