I`m trying subscribe hook for public method convertListProductStruct of LegacyStructConverter.
Path \Shopware\Components\Compatibility\LegacyStructConverter
My code:
$this->subscribeEvent(
'LegacyStructConverter::convertListProductStruct::after',
'afterListProductStruct'
);
But event does not appear :( What I`m doing wrong ?
The LegacyStructConverter is not hookable.
Please see: https://developers.shopware.com/developers-guide/shopware-5-core-service-extensions/
Related
I scheduled a task but it doesn't invoke given callback like following code
public function registerSchedule($scheduler) {
\Log::debug('Scheduling task');
$scheduler->call(function(){
\Log::debug('i\'m inside');
})->everyMinute();
}
with above code it will always log "Scheduling task" but not "i'm inside" not sure why it isn't triggering callback function. There is no error thrown in logs. Can anyone please tell me in what cases this might happen? is it possible that other plugins are creating issues for callback?
So far i tried to debug and I saw that Schedule.php of laravel framework has a protected property called events where this callback gets stored but when dueEvents is called events property is empty. So, completely confused on what's happening here.
any help is appreciated. thank you :)
I am using Bitrise to run some Android espresso UI tests, but I cant seem to find a solution for this Perform Exception:
android.support.test.espresso.PerformException: Error performing 'single click' on view 'with id: com.selfcarecatalyst.healthstorylines.adda:id/male'.
at android.support.test.espresso.PerformException$Builder.build(PerformException.java:83)
Im testing a sign up page that has a few fields. If i skip clicking one field, I get the same error on the next click on this form. The relevant code is:
public void clickMale_onInfoPage(){
onView(withId(R.id.male)).perform(click());
}
public void setFirstName_onInfoPage(String name){
onView(withId(R.id.first_name)).perform(typeText(name));
closeSoftKeyboard();
}
setName is called first, and i added a softclosekeyboard thinking this would solve it but it did not :(
This is running through a CI, and sorry but Im a little new and not sure how to get a better error message/stacktrace. Any help would be much appreciated!
You should also try to call closeSoftKeyboard() before performing the click action.
I am currently using JSF 2.2 faces flow with WildFly8.2.0 as JAVA EE 7 server.
Can anyone has any idea of , how to use/configure method call node using XML file configuration ?
I know how to invoke it using FlowBuilder API , but haven't found any tutorial on how to use XML for the same . (flowname-flow.xml).
Can anyone please help ?
Below is the syntax for calling a method call node in FacesFlow -
<flow-definition id="someFlow">
<start-node>start</start-node>
<method-call id="start">
<method>#{bean.init}</method>
<default-outcome>success</default-outcome>
</method-call>
<view id="initSuccess">
<vdl-document>/pages/init.xhtml</vdl-document>
</view>
</flow-definition>
where #{bean.init} returns outcome as "initSuccess" upon which init.xhtml is rendered.
success is the default outcome if method doesn't return anything.
I want to access child data from server when we append parent. Now I am using
mygrid.attachEvent("onOpenStart", getSubElements );
When I am using getSubElements, this method then it is showing an error: inserNewChild is not a function.
I am using this line, please review this and let me know where I am doing wrong.
mygrid.insertNewChild("a0J9000000TTdLtEAL","a0J9000000TTdKz","CLASS.000010",0,0,0,0,"");
Please note that the insertNewChild() is the method of the dhtmlxTree, and won't work in dhtmlxTreegrid.
http://docs.dhtmlx.com/api__dhtmlxtree_insertnewchild.html
You may use the addRow() method:
http://docs.dhtmlx.com/api__link__dhtmlxtreegrid_addrow.html
Also please try to use the onOpenEnd event instead of onOpenStart:
http://docs.dhtmlx.com/api__dhtmlxtreegrid_onopenend_event.html
I'm getting an InvalidOperationException when using the following code to create a ShellTileSchedule:
ShellTileSchedule sch;
public void UpdateTile()
{
sch = new ShellTileSchedule();
sch.Recurrence = UpdateRecurrence.Interval;
sch.Interval = UpdateInterval.EveryHour;
sch.StartTime = DateTime.Now;
sch.RemoteImageUri = new Uri(#"http://winmilk.julianapena.com/Tile3.png");
sch.Start();
}
The exception occurs specifically when calling sch.Start();.
It's also happening whether I use interval or one-time updates.
Anyone have any idea on why this is happening?
Thanks in advance!
Doh, found the answer. Didn't add
<Capability Name="ID_CAP_PUSH_NOTIFICATION"/>
to the WMAppManifest.xml file.
A bit misleading, because the documentation for ShellTileSchedule says that it's updating the tile "without push notifications". At least it works now :)
I have had this same issue from not getting the properties of my schedule right.
If i set the schedule to "only update once" and then set its "interval" it errors.
If i remove the interval this issue goes away.