Hello there,
I'm trying to enter data in two list with single form in sharepoint online.
I have one form and I want to achieve add popup box with some fields ( like form with in form). And when user click on popups save button data should be entered in that list.
After inserting data I want to display that data in current form.
Is there any way I can get this?
Most likely the issue is the language. The form is designed for one language, but List View for List or Library has a different name and cannot load. You can rename List View, to have the same name in this language.
Hello @mnikitina,
Thanks for quick response.....!
I am sorry i don't get your point,
I check my current view name and links for both users (one user's language is English and others is German), but i don't get any aspected result.
For English User it will not showing any error, but for German it shows above error,
Hello @mnikitina,
Yes, it is working fine now,
Can you tell me how can I achieve limitation of Fields that i was trying to enter with 'List or Library' Control,
For example, i have column 'hours' on my list and I want to allow each user can enter only four records in a list, and the total of these four records should be a maximum of 20.
Likewise, 'Hours' for first, second, third, and fours record is 5, so total is 20.
Now user can not enter the fifth record.
I think it will solve my problem, but is there any way that i can only show data of only current logged in users.
Like when i use list and library control, i can see all data of list, i don't want this, like is there any way that i can only see an entry that added by the current user or i can only see any particular entry that added by user?
I hope you get my point,
Thanks In Advance.
Have a good day.
Hello, @mnikitina
Here is code i am useing and its completely work,
fd.spRendered(function() {
var dt = fd.control('SPDataTable0');
dt.ready().then(function() {
filterDT();
});
//filter List or Library with new value when Search field changes
fd.field('Search').$on('change', function() {
filterDT();
});
function filterDT(){
dt.filter = "<Contains><FieldRef Name='Title'/><Value Type='Text'>"
+ fd.field('Search').value + "</Value></Contains>";
dt.refresh();
}
});
My problem is, it is showing all data even if it contains single latter/word, is there any way that i can check strictly and display only after complete match success.
also, I don't wan's use on change event, can i use some other jquery method for example blur, focusOut, focusIn like?
Also, can we set any value from form's field in List or Library control (list or library control's new item form)?
Hello @mnikitina,
is there any way we can change name of list column for different users language, i don't wont to change any thing in SharePoint list.
You can change the column headers using jQuery. Please see the code sample.
fd.control('SPDataTable1').ready().then(function(dt) {
var header = $(fd.control('SPDataTable1').$el).find('th');
//change header
//3 is a column index
$(header[3]).html('New header');
});
Hello @mnikitina,
I'm using list or library control, and filter it with use of CAML query,
My problem is when I open my form, some times it is not filtering the grid, code is as per below,
var dt = fd.control('Contracts');
dt.ready().then(function () {
//fd.field('myLogin').disabled = true;
filterDT();
});
//filter List or Library with new value when Search field changes
fd.field('Mytumlogin').$on('change', function () {
filterDT();
});
function filterDT() {
dt.filter = "<Contains><FieldRef Name='MyTUMid'/><Value Type='Text'>"
+ fd.field('Mytumlogin').value + "</Value></Contains>";
dt.refresh();
}
//disable new item button
fd.field('Mytumlogin').$on('change', function (value) {
if (value == "") {
fd.control('Contracts').buttons[0].disabled = true;
}
else {
fd.control('Contracts').buttons[0].disabled = false;
}
});
This code is completely working, but somehow in some case it shows all data and in console it shows form have no such control to disabled.
I am bit in trouble with of this, bcz it create a security issue, user can easily shows all data from list,
Please look into this, any help will be appreciated.