problem with a submit and last powerApps 's folder modified in my APP - submit

I am currently building an app with PowerApps, but i have a problem...
In fact, i would like that my app be on several screens. So in the first edit screen i use a button with the following formula :
Patch(NAME_OF_MY_SHAREPOINT_LIST,First(Filter(NAME_OF_MY_SHAREPOINT_LIST,ID = idcourant )),{balise:idcourant});SubmitForm(EditForm1);EditForm(EditForm1_1);Navigate(EditScreen1_1)
So i create and use a variable (idcourant) to modify the current folder which is the first edit screen (EditForm1) and i put this variable in the field "balise". In fact the problem is when i click on the button : the application put the user on the last modified and recorded folder of the list SharePoint...So the current folder change of ID, and this is another folder with another ID which is opended in the second edit screen:(EditForm1_1). This is a big problem for me because my application is not available for the moment and i must to deploy it very soon.... Are there any solutions ?

In fact i have found a solution : Make a submit of the first form, and then go to the next edit form.... It was so easy ... lol
SubmitForm(EditForm1);EditForm(EditForm1_1);Navigate(EditForm1_1)

Related

When i add a node in my treeview something strange happen

It is my first time that i'm asking here for some help! Sorry about my bad english, but i will try to explain my problem...
I want to add a new node to my treeview, so i'm using the 'add' options from treeview documentation, here is the code:
var tree = $('#fileTreeId').treeview({prerendered: true});
var newSublist = $('<li><span id="'+id+'" class="folder" >'+nomePasta+'</span><ul><li><span class="file"> </span></li></ul></li>').appendTo($('#fileTreeId'));
$('#fileTreeId').treeview({add: newSublist});
So, it's works fine, but in my system i have a click event that when i click on the folder i check the parent "ul" to ckeck if it is "expandable" or "collapsable", if it is "collapsable" i get by ajax the date from database...
So after explain i will tell my doubt now. When i call the function "treeview", it reverts my logic, for example, previously when i click on the folder it gives me "expandable" when the folder is closed and give me "collapsable" when the folder is open, now, after i call the function "treeview", it gives the opposite result, it is, when the folder is closed the class is "collapsable" and when the folder is open the class of parent "ul" is "expandable", anyone have any idea of what it can be?

Unity3D and the iPhonekeyboard?

I'm trying to figure out how to use the iPhoneKeyboard function in Unity3D. I want to be able to run a function when a user hits the button "OK" in the keyboard. I just simply can't figure this out.
The second question in this matter is how I can change the "OK" to "Search"?
check out IPhoneKeyboard.Open in the Reference.. there is one example
After you can process the user input using the IPhoneKeybard.done attribute (also one example)

Symfony 1.4 and global variables

I've got a very old php application (1999) that has been worked on during the last ten years. At this point the app starts to show it's age so i'm in te progress of migrating to a "new" framework, symfony 1.4. But since the app is very large, i cannot do this at once. So i'm planning to wrap the old app into the new symfony app, and convert functionality by functionality.
First step in this transition was making the old app appear in the new symfony app. So, i've created the "frontend" application, added a "legacy" module, made it the default homepage, and i've put everyhting i had in my index.php (all pages went through this index.php) in the indexSuccess.php file for the indexAction. I've added the code in the "view" because there are also functions in it and changing that setup would take me more time than i want to spend on the old app.
Unfortunately i've now got an issue with global variables. Let me give you an example (i would have never made this register function like this, but it is, so please look past that.
$session = new ps_session;
$demo = "this is a demo variable";
$session->register('demo');
In ps_session i have this method
public function register($var) {
global $$var;
$_SESSION [$var] = $$var;
}
So it should put the content of $demo in a session var named "demo". Clever right :) Anyway, var_dumping shows me the that $$var is "null" and $demo is filled if i var_dump before and after calling the function. Exact same code without symfony and it returns the correct content.
What am i missing? The global call is spread out in all area's of this massive app so i really don't want to switch to something else, so i'm hoping for a quick fix :)
Maybe relevant, the all code except the index.php content are in frontend/lib/legacy/ folder, the index is in frontend/modules/legacy/ (if there is some scope issue i'm missing)
I think that since your indexSuccess.php file is included inside a function (more precisely, here : lib/vendor/symfony/lib/view/sfPHPView.class.php:185 ), this can't work, because $demo is no longer in the global scope. I don't see any easy workaround for this...
I think you should create a legacy folder in /web , and use routing to redirect to it if the url corresponds to something not migrated yet.
I went with putting the entire old site under web/legacy and redirecting from the default index action to the legacy folder. Most of the url's were made by mod_rewrite so easily fixed. The other url's went through a function so fixing was ok, and only a few were hardcoded. To make it totally transparant, i only need to redo the homepage to start from, so i don't have a visible /legacy/ in my url. Thanks for the help!
I agree with greg0ire that this is an issue with the way sfPHPView includes indexSuccess.
Could you simply require index.php in the default/index action?

Save Conflict Error when trying to add new List Items at the time of list creation

We have created a Custom List template programmatically using Feature.xml, Element.xml, Schema.xml AllItems.aspx, and 3 aspx forms. We have a code behind file for each of these aspx files. i.e. for the AllItems.aspx, DispForm.aspx, EditForm.aspx and NewForm.aspx.
Problematic file is AllItems.aspx. In the code behind for AllItems.aspx file we are deleting previous list items and adding new items to the list before showing them up to the user. As per expectations the code behind file for AllItems.aspx is derived from WebPartPage Class and we have tried to overload quite a few methods without much success.
Problem only occurs on the first time rendering i.e. when an instance of this list is created. When overriding OnLoad(), we get the Save conflict error, Similar is the case with OnInit(), CreateChildControls() method. However, when we override the Render() or RenderChildren() method no such error comes up but at the same time our new list items are also not visible. On browser refresh everything starts working fine as expected. It is only for the first time that the issue comes up.
What could be the possible cause for this? Any ideas, suggestions would be highly appreciated.
Best Regards,
Raghu
I had a problem with a custom EditForm.aspx. I have two lists that are linked together and a change in one causes an event handler to update the other. I have a custom control in EditForm.aspx that edits the linked list. This was causing the event handler to update the item displayed by EditForm.aspx. This in turn would cause the conflict error when the user saved the form.
I finally found that I could reset the context with:
SPContext.Current.ResetItem();
I am not sure if this will help in your case but it fixed my problem.

Fitnesse- Error refactoring a page

HI, Everytime I try to refactor a page I get the following error-
Cannot rename FitNesse.StoreProcedure to TestSuite.StoreProcedure
TestSuite.StoreProcedure is not a valid simple page name.
Due to this I am having trouble creating a test suite. Any help will be appreciated.
Are you trying to move the page from one sub-wiki to another rather than rename it?
The Refactor tab allows you to delete, rename or move a page.
To rename your FitNesse.StoredProcedure to FitNesse.TestStoredProcedure you enter TestStoredProcedure in the rename field.
To move your page to a different sub-wiki - say from FitNesse.StoredProcedure to TestSuite.StoredProcedure, enter TestSuite in the move field.

Resources