Posts

abap - How to suppress to perform a webdynpro-method from the pre-exit -

i want check condition in pre exit method, if condition false have come out of method, without calling original method. as far know cannot. however, have options: check original method , see if there variable can set in pre-exit logic in method not processed; use implicit enhancement @ top of method want skip, put code here planning put in pre-exit; use overwrite-exit call original method using me->method( ) whenever want call it. if remember correctly have create overwrite option have access global vars.

android webview javascript does not load sometimes -

i loading html data webview using loaddatawithbaseurl() method. html includes js file absolute path (file:///android_asset/myjs.js). if set base url "file:///android_asset/" or "fake://not_needed" in loaddatawithbaseurl method, javascript not loads. works of time , can see rendered html in webview. fails execute javascript included in html. have viewpager webview in each page. webviews being loaded @ same time. try : webview.getsettings().setjavascriptenabled(true); and before making call loadurl : webview.clearcache(true); webview.clearhistory();

javascript - autoload files conflict with jquery files -

i have jquery files. project sidebar menu item hide show on click of menu. when add autoload code select of requirement sidebar no work don't no why me plz. because struck. <script src="../plugins/jquery/jquery-2.2.3.min.js"></script> // have use in script file when dont add on mail.php file myautoload code not run. if add in mail.php select required field. <script src="../plugins/jquery/jquery-2.2.3.min.js"></script> <script src="../plugins/jqueryui/jquery-ui.js"></script> <script> ## heading ## $(document).ready(function () { $('#user').autocomplete({ source: 'autocomplete.php', minlength: 1,`enter code here` select: function (event, ui) { var selectedobj = ui.item; jquery("#user").val(selectedobj.label); jquery('#rowid').val(selectedobj.value); return false...

javascript - Libraries not loading on form load- CRM 2016 -

we upgrading crm 2011 crm 2016 on premise. have libraries added on form load in address entity form libraries aren't being loaded @ first time ans showing error message 'mscrm' undefined in below code snippet , page. <script language="javascript"> window.settimeout(ribbonrefreshforarticle, 2000); function ribbonrefreshforarticle() { var uri = mscrm.crmuri.create(window.location.href); if (uri.get_query() != null && uri.get_query()["etc"] == mscrm.internalutilities.entitytypecode.kbarticle) { refreshribbon(); } } </script> page- http://myorg/testdev/userdefined/edit.aspx?_createfromid= {447ae3ee-2727-e511-84e4-005056b33beb}&_createfromtype=2&_gridtype=1071&etc=1071&id={858c47d7-62ae-43de-a13b-2f648efd111e}&pagemode=iframe&rskey={03315b35-4585-4447-a4d2-059cf79ca0fd} need help.thanks in advance. i'm little confused snippet, you're showing js within context ...

java - Scanner InputMismatchException from file -

doing first steps java, here's problem: 1.) rawdata.txt can read: import java.util.scanner; import java.io.file; import java.io.filenotfoundexception; import static java.lang.system.out; class readandwrite { public static void main(string args[]) throws filenotfoundexception { scanner diskscanner = new scanner(new file("rawdata.txt")); string diskstring; diskstring = diskscanner.nextline(); out.println(diskstring); diskscanner.close(); } } the result in eclipse console : >19.5 5 so guess content can read. but: nextdouble() , nextint() won't work: import java.util.scanner; import java.io.file; import java.io.filenotfoundexception; class readandwrite { public static void main(string args[]) throws filenotfoundexception { scanner diskscanner = new scanner(new file("rawdata.txt")); double unitprice, quantity; ...

ubuntu - Apt-get version (build) sepecification -

could explain me "+build-ubuntu" part means? sudo apt-get install firefox=45.0.2+build1-0 sudo apt-get install firefox=28.0+build2-0ubuntu2 ubuntu has couple of patches make firefox run flawlessly on environment , play nicely versions of libraries (i.e. libc). theese patches not part of firefox, handled ubuntu maintainers. in order keep track of level of theese patches, ubuntu adds string original upstream version mozilla firefox. ubuntu maintainers can increment part of version changing suffix string +build2-0ubuntu2 +build2-ubuntu3. @ same time upstream firefox can increment main part of version - , new version bigger, independent ubuntu patch version. also might used add security patches in new firefox versions old versions of firefox (without updating whole firefox version). due nature of ubuntu not update versions of packages within release (i.e. ubuntu 16.04. sticks version of packages when released in april 2016).

Ways to pass 2D Array to function in C -

i started learning c language week ago. test decided write tictactoe game. i have field. int field[3][3]; and function printfield void printfield(int field[3][3]){ for(int = 0; < 3; i++){ for(int j = 0; j < 3; j++){ printf("%i", field[i][j]); } printf("\n"); }} it's working in main this: int main(){ printfield(field);} but if change void printfield(int field){...} or void printfield(int field[][]){...} it gives me bunch of errors: subscripted value neither array nor pointer nor vector passing argument 1 of ‘printfield’ makes integer pointer without cast note: expected ‘int’ argument of type ‘int (*)[3]’ why can't pass array this? there more ways pass it? the function independent of call function. function cannot guess rest of program array size is. in function body have have constants or variables represent dimensions. you can use variables instead of fixed size: voi...