首页 \ 问答 \ SalesForce呈现为调用javascript函数(SalesForce rendered to call a javascript function)

SalesForce呈现为调用javascript函数(SalesForce rendered to call a javascript function)

有没有办法让渲染的属性调用javascript函数? 我希望它调用javascript函数的原因是我正在使用的页面没有控制器,因此我无法执行rendered="{!canRender}"

我正在使用apex:outputText来显示文本,我想要为某些用户隐藏此文本。

我尝试了以下操作并且没有使用它们。

rendered="javascript:myfucntion();"
rendered="myfunction();"

Is there a way I can make the rendered attribute call a javascript function? The reason I want it to call a javascript function is that the page I'm using doesn't have a controller so I can't do something like rendered="{!canRender}"

I'm using an apex:outputText to display a text and I want this text to be hidden for certain users.

I tried doing the following and non of them worked.

rendered="javascript:myfucntion();"
rendered="myfunction();"

原文:https://stackoverflow.com/questions/10745099
更新时间:2023-09-13 17:09

最满意答案

我终于找到了解决方案。 .so文件必须位于<project>/app/src/main/jniLibs/中才能包含在.apk 。 之前,我已将它们放入libs文件夹中。


I finally found a solution here. The .so file must be located in <project>/app/src/main/jniLibs/ to be included in the .apk. Before, I had put them into the libs folder instead.

相关问答

更多
  • 最简单的方法来做到这一点: 在Android Studio中右键单击您打开的项目,然后选择New > Module 在左侧窗格中选择Android库,然后单击下一步。 输入所有详细信息,取消创建活动,主题和全部(如果不需要)。 选择与您的项目相同的API级别,然后选择Next,Next,Next。 现在您将在您的项目中看到另一个目录,库的build.gradle将自动为您配置。 如果你的模块/库名称是“mylibrary” , include ':mylibrary' 会自动添加到项目根目录下的sett ...
  • 为了在Android环境中使用CMake加载你的库,你必须在native-lib CMakeLists.txt中添加下面的代码: 设置你的libs路径 set(LIBS_DIR ${CMAKE_SOURCE_DIR}/../jniLibs) 添加库来导入 add_library(DYNAMIC_LIB SHARED IMPORTED) 为每个ABI设置库位置 set_target_properties(DYNAMIC_LIB PROPERTIES IMPORTED_LOCATION ${LIBS_DIR}/ ...
  • 您可以从sdk \ extras \ android \ support \ design \ libs中找到来自sdk的android jars,如android-support-design ,并做更多。 外部罐子,如改造 , okhttp等 http://www.java2s.com/Code/Jar/ You can find android jars from your sdk like android-support-design from sdk\extras\android\support\ ...
  • 如果可以从npm获得,你可以执行npm install packageName --save然后使用'packages.js'中的import Package 请记住反应本机不是javascript和一些浏览器特定的功能将不会转换,换句话说,你正在使用的插件可能无法在本机反应。 顺便说一下,除了启动模拟设备以运行本机响应之外,不需要Android工作室。你应该能够做出反应原生的run-android并提供你正确设置模拟设备它将启动包管理器并在其上安装你的应用程序然后刷新保存。 你在使用反应原生cli吗? 在 ...
  • 创建新的文件夹project/app/src/main/jniLibs ,然后把你的*.so文件与他的abi文件夹放到这个位置。 已弃用的解决方案 将您的模块gradle.build文件中的两个代码片段添加为依赖关系: compile fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar') 如何创建这个自定义jar: task nativeLibsToJar(type: Jar, description: 'create a j ...
  • 我做了什么: 切换到:git 将我们的子项目从svn转换为git 使所有子项目成为主要项目的外部 在这篇文章的帮助下,将子项目包含在gradle中: Android Studio 0.8.1创建模块而不复制文件? 缺点: Android Studio无法完全管理 - 必须在Studio中执行一半提交,另一半+在控制台中推送 - 所以我完全抛弃了Studio并再次将所有内容移动到控制台。 可能这毕竟不是那么糟糕:) 我所做的是使用Blundell的建议 - 虽然我真的......真的......真的不想完全转 ...
  • 大多数Android应用都是用Java编写的。 谷歌发布了Native Developer Kit(NDK),以允许开发人员用C ++编写库。 但是,这些库通常级别很低,并且从定义UI和更高级别应用程序逻辑的Java代码调用。 您很可能需要为库编写一个包装器,以便可以从Java代码中调用它。 看起来这个博客是一个很好的起点。 Most Android apps are written in Java. Google has released the Native Developer Kit (NDK) in ...
  • 在你的build.gradle包含http://jcenter.bintray.com作为mavenCentral 之前的仓库,如下所示: repositories { maven { url "http://jcenter.bintray.com" } mavenCentral() } 像往常一样在你的项目依赖中使用: dependencies { compile 'com.github.amlcurran.showcaseview:library:5.0.0' } 为什么在m ...
  • 我终于找到了解决方案。 .so文件必须位于/app/src/main/jniLibs/中才能包含在.apk 。 之前,我已将它们放入libs文件夹中。 I finally found a solution here. The .so file must be located in /app/src/main/jniLibs/ to be included in the .apk. Before, I had put them into the libs folder in ...
  • 引用文档 : 如果您想使用此库,您只需下载MaterialDesign项目,将其导入您的工作区并将项目作为库添加到您的android项目设置中。 步骤1:下载项目,无论是通过GitHub提供的ZIP文件还是使用git克隆存储库 步骤2:将MaterialDesign/目录移动到项目目录中,作为现有app/模块的对等项 步骤3:修改项目目录中的settings.gradle以包含:MaterialDesign在要构建的模块列表中 步骤4:在app模块的build.gradle文件中,将compile proj ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)