Posts by Murilo Medeiros • 499 points
29 posts
-
1
votes1
answer251
viewsA: Pass parameter to Tab.Screen component
Izi pizi export default function Historico({ navigation, route }) { ... console.log(route.params); //provavelmente o valor ja vai estar // aqui, se nao estiver voce segue o exemplo abaixo tambem }…
-
0
votes3
answers720
viewsA: Nullpointerexception Java JPA CDI Tomcat
try this public class EspecialidadeWS { @Inject private EspecialidadesDAO dao; public String getEspecialidade(long codigo){ try{ String codigo = dao.getEspecialidadePorCodigo(codigo); return codigo;…
-
0
votes1
answer553
viewsA: Reading of Firebase data
export default class ProductSpotLight extends Component { constructor() { super() this.state = { publicadas: null } } componentDidMount() { if (!this.state.publicadas) { const publicadas =…
-
1
votes4
answers580
viewsA: Return Asyncstorage value in a constant
const AppNavigator = AsyncStorage.getItem('user').then(user => { if (user) { initialScreen = 'Home' this.user = user return createStackNavigator({ Home: { screen: Home, navigationOptions: {…
-
1
votes1
answer2142
viewsA: Reading barcode in React-Native
Documentation and api: React-Native-camera The rest is with Voce…
-
0
votes2
answers400
viewsA: JWT TOKEN authentication is not persisting
You can try using this example code import AsyncStorage from "@react-native-community/async-storage"; import { create } from "apisauce"; import { Constants } from "../constants"; import Reactotron…
-
0
votes1
answer61
viewsA: How do I access the iddoFeed and get all data independent of the logged in user
SE6 firebase.database().ref('feeds').once('value').then(snapshot => snapshot.map(s => console.log(s.id_user)) )
-
0
votes1
answer87
viewsA: How do I get the position the user wants?
// OBTÉM QUANTIDADE DE ROWS e itera no laço for (i = 0; i < sizeof(matriz) / sizeof(matriz[0]); i++) { //OBTÉM QUANTIDADE DE COLS for (j = 0; j < sizeof(matriz[0]) / sizeof(matriz[0][0]; j++))…
canswered Murilo Medeiros 499 -
2
votes1
answer687
viewsA: Calculator Bhaskara Javascript
Utilize Document.getElementById('x2').value= x2; and make changes to logic to disable the buttons using: Document.getElementById("myBtn"). disabled = true; as the example describes Button disabled…
-
0
votes2
answers1575
viewsA: How to run file . vbs on Windows Start
If the file runs normally after running the bat just copy it to C: Users Your User Appdata Roaming Microsoft Windows Start Menu Programs Startup\ Don’t forget to edit the path for the script in bat…
-
0
votes1
answer43
viewsA: Progress bar in java
I’ll just give you an idea instead of code... Why don’t you take the total number of lines that has in the document Number of Lines in a file in Java and the position of the current line who is…
javaanswered Murilo Medeiros 499 -
1
votes1
answer125
viewsA: Apply CSS using element class (JS)
To do this you can count on jQuery https://jquery.com/ With it you could just do $('.border_title_result').each(function (){ this.css('width', f) }) Now if you really want to use pure JS try:…
-
1
votes1
answer61
viewsA: Consume this JSON because I am encountering an error
You will not be able to get an answer from this WS as it does not specify the type of answer access ie the Access-Control-Allow-Origin: *, preventing you from having direct access to it as specified…
-
0
votes1
answer82
viewsA: A float x==0 includes values like 0.7. How to change this?
You should use the decimal part separator "." instead of ","
-
2
votes1
answer54
viewsA: Class pass function
class App extends Component { render(){ return( <View> <Button title="Abrir conta" onPress={()=> this._something()} /> </View> ) } } export default Button = (props) => (…
-
0
votes3
answers128
viewsA: Lines with two items according to screen size, is it possible?
class Teste extends Component { .... <View style={{ flex: 1 }}> <ScrollView style={{ flexDirection: 'row', justifyContent: 'space-between', alignContent: 'center' }}> {_renderExample()}…
-
0
votes1
answer73
viewsA: Problem with variable javascript with firebase
Try this... I didn’t have time to execute the code... It may be that the code does not work but it will serve as a basis to understand how the logic is made export const atualizadorChamados = ()…
-
1
votes1
answer173
viewsA: I’m starting to program in React Native. What is the best software to emulate android? and to edit lines of programming
You can use the Genymotion, he is the lightest of all and this hyperlink leads to the download of the free version(Funzone). You can also opt for the ADV(Android Virtual Device) provided by android…
-
0
votes2
answers153
viewsA: React-Native incompatibility 0.55.4
Be happy import firebase from '@firebase/app'; import '@firebase/auth' import 'firebase/database';
-
0
votes3
answers275
viewsA: Node App React Native Error
Try creating your project on C: Users**Your User**\ error while running React-Native init Awesomeproject and the mistake is something like "Unknow command React-Native.." suffice run npm install -g…
-
-1
votes3
answers72
viewsQ: Code reduction in sql query
I created a query with the following objective: Select all the tools which the inventories theirs nay are gifts in all businesses. One Tool has one or more stocks, a stockpile belongs to only one…
-
0
votes3
answers148
viewsA: Transform Jsonarray into Class Object
This is the code I use to be JSON and turn into object: public class JsonReader { static String secretKeyCaptcha = "6Ld5NXMUAAAAAOXPv-EbwycOMHfoxJrSSdLcLl-I"; private static String readAll(Reader…
-
10
votes3
answers789
viewsQ: How is a REGEX Javascript for Mail Tracking Code (AZ123456789AZ)
I need a Regex for the A-Z 1-9 A-Z standard validating AZ123456789AZ I’ve tried to /^[[A-Z]{2}[1-9]{9}[A-Z]{2}]/$
-
1
votes1
answer216
viewsA: Jpa does not create column @lob
Utilize @Lob @Type(type = "org.hibernate.type.TextType") @Column(length = 10000) In my case, the type used was Texttype, in the following documentation you will find the corresponding data type for…
-
2
votes0
answers42
viewsQ: Difficulty with JPA annotations for entity relationships
I have the following relationships: Categoriapeca, Subcategoriapeca and Peca. One Categoriapeca may have several Subcategoriapeca, and a Subcategoriapeca may have several Categoriapeca, a piece can…
-
2
votes1
answer126
viewsQ: JPA returning Object different from class object type
The following query returns java.lang.Classcastexception: [Ljava.lang.Object; cannot be cast to br.com.satisfacer.model.Client public List<Cliente> teste(Cliente cliente) { return…
-
0
votes1
answer100
viewsA: Keep Bean alive even after a redirect - JSF
You can place attributes and/or objects in the session that will be kept until it is destroyed. My code below refers to a method of a class that gets email from the client set by another method, all…
-
0
votes1
answer105
viewsA: Image in the Primefaces menubar
add this to your style sheet (like.css for example) .ui-menubar .ui-menubar-options { float: left !important; } .ui-menuitem { float: right !important }
-
4
votes1
answer193
viewsQ: JPA ordered return from the Many side of an @Onetomany entity using @Orderby
I have the following entity Cliente who owns Pedidos. The relationship between customers and orders is mapped with Cliente @OneToMany and Pedidos @ManyToOne. What I need is for the Customer Order…